PYQ Vault

CDS Mathematics · Number System

Place Value & Digit Problems

Turning a number's written form into algebra — a two-digit number is 10a+b — so that reversals, cyclic shifts, repeated blocks and repunits all become identities you can quote instead of puzzles you have to solve.

Why this matters

Twenty-six PYQs, the second-largest block in the chapter and one of the most predictable: CDS reuses the same half-dozen identities year after year. Once you know that reversing a two-digit number changes the sum by nothing and the difference by a multiple of 9, and that XYZ plus YZX plus ZXY is always 111 times the digit sum, most of these are single-line questions.

Concept 1 of 8

Writing a number in expanded algebraic form

Intuition

Digits are not the number — they are coefficients of powers of ten. The instant you write a two-digit number as 10a+b10a+b, every sentence about its digits becomes an ordinary equation, and the whole family of CDS digit questions turns into simultaneous equations in two small unknowns.

Definition

Let the digits be named from the left.

  • A two-digit number is 10a+b10a+b, with 1a91 \le a \le 9 and 0b90 \le b \le 9.
  • A three-digit number is 100a+10b+c100a+10b+c.
  • The digit sum is a+ba+b (or a+b+ca+b+c), and the digit product is abab.

Two constraints are always in force and are the source of most eliminations: the leading digit cannot be 00, and every digit is an integer from 00 to 99.

Expanded form

ab=10a+b,abc=100a+10b+c\overline{ab} = 10a+b, \qquad \overline{abc} = 100a+10b+c
  • aleading digit, never 0
  • b, cfollowing digits, 0 to 9

Worked example

A two-digit number is 4 times the sum of its digits. Find the number.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 1Number SystemEASY
The value of a 2-digit number is 5 times the sum of the digits. What is the product of the digits ?

[Q20 · CDS (II) 2022 — Elementary Mathematics · 2022]

The digit constraints are part of the problem, not an afterthought

An equation like b=2ab=2a has infinitely many integer solutions and exactly four digit solutions. Most wrong answers on this concept come from solving the algebra correctly and then forgetting that a0a \ne 0 and b9b \le 9. Impose both before you count.

Concept 2 of 8

Reversing a two-digit number: the 11 and 9 identities

Intuition

Reverse a two-digit number and two things happen that do not depend on the digits at all: the sum becomes 11 times the digit sum, and the difference becomes 9 times the digit difference. That is why so many of these questions give you a sum and a difference — they are handing you a+ba+b and aba-b in disguise.

Definition

For N=10a+bN = 10a+b with reversal N=10b+aN' = 10b+a:

  • N+N=11(a+b)N + N' = 11(a+b) — always a multiple of 11;
  • NN=9(ab)N - N' = 9(a-b) — always a multiple of 9;
  • so N=NN=N' exactly when a=ba=b, and the difference is 0, 9, 18, ... only.

Given a sum and a difference you recover the digits immediately, because you then know a+ba+b and aba-b.

Reversal sum and difference

N+N=11(a+b),NN=9(ab)N+N' = 11(a+b), \qquad N-N' = 9(a-b)

Worked example

The sum of a two-digit number and its reversal is 121, and their difference is 9. Find the number.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 2Number SystemEASY
The sum of the digits of a two digit number is 13 and the difference between the number and that formed by reversing the digits is 27. What is the product of the digits of the number ?

[Q36 · CDS (II) 2020 — Elementary Mathematics · 2020]

Decide which way the difference runs before using it

9(ab)9(a-b) is positive when the leading digit is larger. If the question says the number increases on reversal, the quantity you know is 9(ba)9(b-a), and getting the sign backwards produces the reversal of the intended answer — which is usually also in the option list.

A difference that is not a multiple of 9 means no such number exists

Since NN=9(ab)N-N'=9(a-b) always, a question offering a difference of 20 or 15 has no solution. Occasionally CDS uses this as the point of the question, so treat it as information rather than a misprint.

Concept 3 of 8

Reversing a three-digit number and swapping just two digits

Intuition

With three digits, reversing leaves the middle digit alone — it sits in the tens place both times and cancels. So the difference depends only on the two outer digits, and it is always a multiple of 99. Swapping a different pair gives a different multiplier, so read carefully which two digits moved.

Definition

For N=100X+10Y+ZN = 100X+10Y+Z:

  • full reversal: NZYX=99(XZ)N - \overline{ZYX} = 99(X-Z), so the difference is a multiple of 99 and the middle digit is irrelevant;
  • swapping the first two digits: NYXZ=90(XY)N - \overline{YXZ} = 90(X-Y);
  • swapping the last two digits: NXZY=9(YZ)N - \overline{XZY} = 9(Y-Z).

Every multiple of 99 below 1000 — namely 99, 198, ..., 891 — has middle digit 99 and outer digits summing to 99, which is a fact CDS has used directly.

Three-digit reversal difference

XYZZYX=99(XZ)\overline{XYZ} - \overline{ZYX} = 99\,(X-Z)

Worked example

A three-digit number exceeds its reversal by 297. What is the difference between its hundreds and units digits?
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 3Number SystemMODERATE
Let XYZXYZ be a 3-digit number. Let DD be the difference between XYZXYZ and ZYXZYX. What is the remainder when DD is divided by 99?

[Q19 · CDS (II) 2025 — Elementary Mathematics · 2025]

99, 90 and 9 are three different swaps

Only the full reversal gives 99. Swapping the first two digits gives 90 and swapping the last two gives 9. Students who memorise "the answer is a multiple of 99" get the 90-case wrong every time, and CDS sets both.

Concept 4 of 8

The cyclic sum of a three-digit number is 111 times its digit sum

Intuition

Take a three-digit number and add the two numbers you get by cycling its digits round. Every digit visits the hundreds, tens and units place exactly once, so each contributes 100+10+1=111100+10+1 = 111 times itself. The total is 111 times the digit sum — and 111=3×37111 = 3 \times 37, which is where the divisors come from.

Definition

For XYZ+YZX+ZXY\overline{XYZ} + \overline{YZX} + \overline{ZXY}:

S=111(X+Y+Z)=3×37×(X+Y+Z).S = 111\,(X+Y+Z) = 3 \times 37 \times (X+Y+Z).
Consequently SS is always divisible by 3, by 37, by 111 and by the digit sum X+Y+ZX+Y+Z itself. It is divisible by 9 only when 3(X+Y+Z)3 \mid (X+Y+Z), which is the usual planted false statement.

Cyclic sum identity

XYZ+YZX+ZXY=111(X+Y+Z)\overline{XYZ} + \overline{YZX} + \overline{ZXY} = 111\,(X+Y+Z)

Worked example

For the number 247, compute 247+472+724247 + 472 + 724 using the identity, and name three divisors of the result that hold for any starting number.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 4Number SystemMODERATE
Let XYZXYZ be a 3-digit number. Let S=XYZ+YZX+ZXYS = XYZ + YZX + ZXY. Which of the following statements is/are correct? 1. SS is always divisible by 3 and (X+Y+Z)(X + Y + Z) 2. SS is always divisible by 9 3. SS is always divisible by 37 Select the correct answer using the code given below:

[Q43 · CDS (I) 2020 — Elementary Mathematics · 2020]

Divisible by 3 does not upgrade to divisible by 9

111111 carries exactly one 3. The statement "SS is always divisible by 9" is the standard planted falsehood in this question, and 100100 (giving S=111S=111) is the one-line counterexample. Keep 37 in mind too — it is the divisor students never think to check, and it is always there.

Concept 5 of 8

Numbers built by repeating a block of digits

Intuition

A number like 372372 is not a random six-digit number — it is 372×1001372 \times 1001. Repeating a block is the same as multiplying by a fixed constant, and that constant factorises once and for all. So every number of that shape shares a guaranteed set of divisors.

Definition

Repeating a block is multiplication by a repunit-style constant:

  • XYXYXY=XY×10101\overline{XYXYXY} = \overline{XY} \times 10101, and 10101=3×7×13×3710101 = 3 \times 7 \times 13 \times 37;
  • abcabc=abc×1001\overline{abcabc} = \overline{abc} \times 1001, and 1001=7×11×131001 = 7 \times 11 \times 13;
  • abab=ab×101\overline{abab} = \overline{ab} \times 101, and 101101 is prime.

For a block that is repeated but not cleanly — XXYXX=11011X+100Y\overline{XXYXX} = 11011X + 100Y, where 11011=7×112×1311011 = 7 \times 11^2 \times 13 — expand rather than guess, then use divisibility on the pieces.

Repeated-block constants

abcabc=abc×1001,XYXYXY=XY×10101\overline{abcabc} = \overline{abc}\times 1001, \qquad \overline{XYXYXY} = \overline{XY}\times 10101

Worked example

Show that every number of the form abcabc\overline{abcabc} is divisible by 7, 11 and 13.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 5Number SystemMODERATE
Consider a 6-digit number of the form XYXYXY. The number is divisible by :

[Q23 · CDS (I) 2023 — Elementary Mathematics · 2023]

1001 and 10101 factorise differently

A repeated three-digit block gives 1001=7×11×131001 = 7\times11\times13 — which contains 11. A repeated two-digit block over six digits gives 10101=3×7×13×3710101 = 3\times7\times13\times37 — which does not contain 11 but does contain 3 and 37. Reaching for the wrong constant is the whole failure mode here; count the block length first.

Concept 6 of 8

Strings of repeated ones and nines

Intuition

A run of nn nines is exactly 10n110^n - 1, and a run of nn ones is that divided by 9. Once you can convert a digit string into a closed form, enormous-looking numbers become ordinary algebra — a 20-digit monster becomes a single fraction you can square.

Definition

Write RnR_n for the repunit with nn ones:

999n=10n1,Rn=111n=10n19.\underbrace{99\cdots9}_{n} = 10^n - 1, \qquad R_n = \underbrace{11\cdots1}_{n} = \frac{10^n-1}{9}.

  • A string of nn copies of the digit dd is d×Rnd \times R_n.
  • The digit sum of 10n110^n-1 is 9n9n, because it is nn nines.
  • R2n=Rn×(10n+1)R_{2n} = R_n \times (10^n+1), which is the identity behind the xy2x-y^2 question.

Repunit closed form

Rn=111n ones=10n19R_n = \underbrace{11\cdots1}_{n\text{ ones}} = \frac{10^{n}-1}{9}

Worked example

Let xx be the number written with 12 ones and yy the number written with 6 ones. Show that xy2x - y^2 is a multiple of yy, and find xy2y\dfrac{x-y^2}{y}.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 6Number SystemMODERATE
If the sum of the digits of a number 10n110^{n} - 1, where nn is a natural number, is equal to 3798, then what is the value of nn ?

[Q6 · CDS (I) 2020 — Elementary Mathematics · 2020]

A repunit is not a power of ten

Rn=10n19R_n = \frac{10^n-1}{9}, not 10n10^n and not 10n110^{n-1}. The number of ones is nn, and the number of digits of 10n110^n-1 is also nn — but 10n10^n itself has n+1n+1 digits. Off-by-one here silently changes the answer on every question of this type.

Concept 7 of 8

Only the last few digits decide the last few digits

Intuition

If you only want the last three digits of a huge product, you can throw away everything above the hundreds place in each factor. Higher places contribute multiples of 1000, which cannot reach the last three digits. This turns a ten-digit multiplication into a three-digit one.

Definition

Working modulo 10k10^k keeps exactly the last kk digits, and modular arithmetic respects addition and multiplication. So:

  • to get the last kk digits of a product, reduce each factor mod 10k10^k first, multiply, then reduce again;
  • the same holds for sums and for powers.

A useful special case: for n3n \ge 3, powers of 5 settle into a pattern on their last three digits (54=6255^4 = 625, and every even power from the fourth onwards ends in 625625), which is why the hundreds digit of 251025^{10} can be read off without computing the number.

Last k digits

last k digits of AB  =  (Amod10k)(Bmod10k)mod10k\text{last } k \text{ digits of } AB \;=\; (A \bmod 10^{k})(B \bmod 10^{k}) \bmod 10^{k}

Worked example

What are the last three digits of 87654321×1234567887654321 \times 12345678?
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 7Number SystemMODERATE
What are the last three digits in the multiplication of 4321012345×987667894321012345 \times 98766789 ?

[Q5 · CDS (II) 2024 — Elementary Mathematics · 2024]

Keep as many digits as the question asks for, and no fewer

For the last three digits you must keep three digits of each factor. Keeping two and multiplying gives the last two digits correctly but the hundreds digit wrongly, because a carry from the dropped place can reach it. Match kk to the question exactly.

Hundreds place is not the hundredth digit

CDS has printed a question asking for "the digit at the 100th place" of a number with only 95 digits. Read whether the paper means a place value (hundreds) or a position counted from one end; if the position does not exist, the intended reading is the place value.

Concept 8 of 8

Solving equations whose unknowns are single digits

Intuition

When a sum or product is printed with letters standing for digits, expand everything into place-value form. The letters almost always collect into one neat linear combination, and the digit bounds then leave only a handful of possibilities to test.

Definition

Procedure:

  • Expand every numeral into place-value form so the unknown digits appear as ordinary variables.
  • Collect terms. A column sum usually produces something like 10(P+Q+R)+constant10(P+Q+R) + \text{constant}.
  • Apply the digit bounds 0digit90 \le \text{digit} \le 9 and any leading-digit restriction, then test the survivors.

For a product with a near-round multiplier, use the complement trick: 999×n=1000nn999 \times n = 1000n - n, which makes the tail of the product easy to control.

Complement trick for near-round multipliers

999×n=1000nn,99×n=100nn999 \times n = 1000n - n, \qquad 99 \times n = 100n - n

Worked example

In 4P6+2Q8=7744P6 + 2Q8 = 774, where PP and QQ are digits, what is the largest possible value of QQ?
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 8Number SystemMODERATE
What would be the maximum value of QQ in the equation 5P9+3R7+2Q8=11145P9 + 3R7 + 2Q8 = 1114 ?

[Q5 · CDS (II) 2016 — Elementary Mathematics · 2016]

Maximising one digit means minimising the others, within bounds

Once you reach something like P+R+Q=9P+R+Q = 9, the largest QQ needs the other letters as small as their own constraints permit — which is 0 for an interior digit but 1 for a leading digit. Assuming 0 everywhere is the standard slip and inflates the answer by one.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (8)

Watch out for (10)

Drill every past-year question on this subtopic

26 questions from the bank — paginated, with cart and Word-export support.

Related notes