UPSC CSAT 2023 Q28: Digit Sum of a Squared Repunit — Solved

Each digit of a 9-digit number is 1. It is multiplied by itself. What is the sum of the digits of the resulting number?

  1. 64
  2. 80
  3. 81
  4. 100

Answer: (c) 81

Solution

  1. The number is 111111111, which has nine 1s. We need the sum of the digits of 111111111 × 111111111.
  2. Square smaller numbers made only of 1s and look for the pattern: - 1 × 1 = 1 - 11 × 11 = 121 - 111 × 111 = 12321 - 1111 × 1111 = 1234321 - 11111 × 11111 = 123454321

  3. Why the pattern holds: in long multiplication, each column adds up a number of 1s. With k ones, column totals rise 1, 2, 3, … up to k in the middle, then fall back to 1. When k ≤ 9, no column total goes above 9, so nothing carries and each column total is a digit of the answer.

  4. With nine 1s, the middle column total is 9, so there is still no carry: 111111111 × 111111111 = 12345678987654321

  5. Add the digits. Rising side: 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 = 36. Middle digit: 9. Falling side: 8 + 7 + 6 + 5 + 4 + 3 + 2 + 1 = 36.

  6. Total = 36 + 9 + 36 = 81.

  7. Shortcut check: before any carrying, the digit sum is the total of all column sums, and that total is the number of 1×1 products, 9 × 9 = 81. There are no carries here, so the digit sum is 81.
  8. Cross-check with divisibility by 9: 111111111 has digit sum 9, so it is divisible by 9. Its square is divisible by 81. So the digit sum of the square must be a multiple of 9, and 81 is one.

Answer: 81

Option-wise explanation

  • a: incorrect — 64 = 8², the digit sum for eight 1s (11111111² = 123456787654321). The trap is miscounting the 1s, or using n² with n = 8. It is also not a multiple of 9, but the square of a multiple of 9 must have a digit sum that is a multiple of 9.
  • b: incorrect — 80 comes from an addition slip, such as taking the middle digit as 8 (36 + 8 + 36) or dropping a 1 at one end. It is not a multiple of 9, so it is out at once.
  • c: correct — 111111111² = 12345678987654321, and its digits add to 36 + 9 + 36 = 81 = 9². With nine 1s no column total goes above 9, so the 'n ones gives digit sum n²' pattern holds exactly.
  • d: incorrect — 100 = 10², which you get by assuming there are ten 1s or that the n² pattern keeps going without limit. With ten 1s the square is 1234567900987654321 because of carrying, and its digit sum is 82, not 100. Also, 100 is not a multiple of 9.

How to eliminate

Fastest route: divisibility by 9. 111111111 has digit sum 9, so it is a multiple of 9 and its square is a multiple of 81. Any multiple of 9 has a digit sum that is a multiple of 9. Of 64, 80, 81 and 100, only 81 is a multiple of 9. No multiplication is needed. If you remember the pattern instead, 11² = 121 and 111² = 12321 give n ones → digit sum n², so nine 1s gives 81. About 15–30 seconds. Attempt this first; it is a sure mark.

Know more

Squares of repunits

A repunit Rₙ is a number made of n ones (11, 111, 1111, …). When you square it in long multiplication, column k collects k ones. The column totals rise 1, 2, …, n and then fall back to 1.

  • For n ≤ 9, no column total is above 9, so there is no carrying. The square is the palindrome 123…n…321, and its digit sum is 1 + 2 + … + n + … + 2 + 1 = n².
  • For n ≥ 10, carries appear, the palindrome breaks, and the digit sum is no longer n².
Ones (n) Square Digit sum
3 12321 9
5 123454321 25
7 1234567654321 49
9 12345678987654321 81
10 1234567900987654321 82 (not 100)

Worked variant: what is the digit sum of 1111111²? There are seven 1s and 7 ≤ 9, so there are no carries. The square is 1234567654321, and its digit sum is 7² = 49. Check: 2 × (1 + … + 6) + 7 = 42 + 7 = 49.

Check that always works: a number and its digit sum leave the same remainder when divided by 9. If N is divisible by 3, N² is divisible by 9, so the digit sum of N² is a multiple of 9. Use this to rule out options before you calculate anything.