UPSC CSAT 2023 Q46: Sum of Repeated-Digit Numbers — Solved

Let pp, qq and rr be 2-digit numbers where p < q < r. If pp + qq + rr = tt0, where tt0 is a 3-digit number ending with zero, consider the following statements:

1. The number of possible values of p is 5.

2. The number of possible values of q is 6.

Which of the above statements is/are correct?

  1. 1 only
  2. 2 only
  3. Both 1 and 2
  4. Neither 1 nor 2

Answer: (c) Both 1 and 2

Solution

  1. Write each number in terms of its digit. A 2-digit number with both digits equal is a multiple of 11: - pp = 10p + p = 11p - qq = 11q - rr = 11r p, q and r are digits from 1 to 9. The tens digit cannot be 0, or pp would not be a 2-digit number.

  2. Write the result the same way. tt0 = 100t + 10t + 0 = 110t, where t is a digit from 1 to 9.

  3. Set up the equation. 11p + 11q + 11r = 110t 11(p + q + r) = 110t p + q + r = 10t So the sum of the three digits must be a multiple of 10.

  4. Find the range of p + q + r. The digits are different, because p < q < r. - Smallest sum: 1 + 2 + 3 = 6 - Largest sum: 7 + 8 + 9 = 24 The only multiples of 10 between 6 and 24 are 10 and 20. So t = 1 (giving 110) or t = 2 (giving 220).

  5. List every triple with p + q + r = 10 and p < q < r. - p = 1: q + r = 9 with 1 < q < r gives (2, 7), (3, 6), (4, 5). Triples: (1, 2, 7), (1, 3, 6), (1, 4, 5). - p = 2: q + r = 8 with 2 < q < r gives (3, 5). Triple: (2, 3, 5). - p = 3: q + r = 7 with 3 < q < r has no solution, because the smallest option is 4 + 5 = 9. That gives 4 triples. Check one: 11 + 22 + 77 = 110 ✓

  6. List every triple with p + q + r = 20 and p < q < r ≤ 9. - p = 3: q + r = 17 gives (8, 9). Triple: (3, 8, 9). - p = 4: q + r = 16 gives (7, 9). (8, 8) is not allowed because q < r. Triple: (4, 7, 9). - p = 5: q + r = 15 gives (6, 9), (7, 8). Triples: (5, 6, 9), (5, 7, 8). - p = 6: q + r = 14 with 6 < q < r would need (7, 7). Not allowed. - p = 1 or 2: q + r would be 19 or 18. With r ≤ 9 and q < r, the largest possible q + r is 8 + 9 = 17. So no triples. That gives 4 triples. Check one: 55 + 77 + 88 = 220 ✓

  7. All 8 triples:

Sum Triples (p, q, r) Total
10 (1,2,7), (1,3,6), (1,4,5), (2,3,5) 110
20 (3,8,9), (4,7,9), (5,6,9), (5,7,8) 220
  1. Count the distinct values of p. {1, 2, 3, 4, 5}, which is 5 values. Statement 1 is correct.

  2. Count the distinct values of q. From the first group: 2, 3, 4. From the second group: 8, 7, 6. The set is {2, 3, 4, 6, 7, 8}, which is 6 values. Statement 2 is correct.

  3. Answer: Both statements are correct.

Option-wise explanation

  • a: incorrect — Statement 1 is true: p takes 5 values. But q also takes 6 values, {2, 3, 4, 6, 7, 8}, so Statement 2 is true too. You get this option if you count q from only one group, or count repeated q values only once within a group and then forget the other group.
  • b: incorrect — Statement 2 is true, but so is Statement 1: p can be 1, 2, 3, 4 or 5. The usual slip is to check only the sum 10 (where p is 1 or 2) and miss the sum 20, which adds p = 3, 4 and 5.
  • c: correct — Since pp + qq + rr = 11(p + q + r) and tt0 = 110t, the digit sum p + q + r must be 10 or 20. The 8 triples give p ∈ {1, 2, 3, 4, 5} (5 values) and q ∈ {2, 3, 4, 6, 7, 8} (6 values). Both statements hold.
  • d: incorrect — You get this if you count triples instead of distinct values (8 triples), or if you treat tt0 as 110 only. Counting distinct p and q across both sums gives exactly 5 and 6.

How to eliminate

Factor out 11 straight away: pp + qq + rr = 11(p + q + r), and tt0 = 110t. So p + q + r = 10t. With three different digits, the sum lies between 6 and 24, so it can only be 10 or 20. Don't list full numbers. List digit triples by the smallest digit and stop when the next one is impossible. For sum 10, p goes 1, 2 (stop at 3, since 3 + 4 + 5 > 10). For sum 20, p starts at 3, because 1 or 2 would need q + r ≥ 18 > 17. Then p goes 3, 4, 5 (stop at 6, since 6 + 7 + 8 > 20). That already gives p ∈ {1, …, 5}, so Statement 1 is confirmed without writing every q. For q, write the 8 middle digits (2, 3, 4, 3 and 8, 7, 6, 7) and remove duplicates: 6 values. The common trap is forgetting the 220 case. If you only found the 110 case you would get 2 values of p and 3 of q, and you might pick 'neither'. Time: about 90–120 seconds once you see the factor of 11. It is a good one to attempt in the first round, because the listing is short and easy to check.

Know more

Repdigits and place value

A number with repeated digits factors neatly. Write it as digit × a fixed multiplier, and the puzzle becomes an equation about digit sums.

Form Value Multiplier
aa 10a + a 11a
aaa 100a + 10a + a 111a = 3 × 37 × a
aa0 100a + 10a 110a
aba 101a + 10b —

Method

  1. Turn every repdigit into multiplier × digit.
  2. Cancel the common factor to get a condition on the digit sum.
  3. Bound the sum. Distinct digits 1–9: three of them sum to between 6 and 24, two of them to between 3 and 17.
  4. List the cases in order of the smallest digit, and stop when the minimum possible sum is too large.
  5. Count distinct values when the question asks for them. Don't count cases.

Worked variant aa + bb = 99, where a < b. Find the number of pairs.

  • 11a + 11b = 99, so a + b = 9.
  • With 1 ≤ a < b: (1, 8), (2, 7), (3, 6), (4, 5). That is 4 pairs.
  • a takes 4 values {1, 2, 3, 4}, and b takes 4 values {5, 6, 7, 8}.

Watch for

  • More than one valid total, such as 110 and 220 here. Always check every multiple inside the bound.
  • Zero as a leading digit is not allowed.
  • Strict inequalities (<) rule out repeated digits.