UPSC CSAT 2024 Q10: Sum of Odd Numbers, Square and Cube — Solved

On January 1st, 2023, a person saved ₹ 1. On January 2nd, 2023, he saved ₹ 2 more than that on the previous day. On January 3rd, 2023, he saved ₹ 2 more than that on the previous day and so on. At the end of which date was his total savings a perfect square as well a perfect cube?

  1. 7th January, 2023
  2. 8th January, 2023
  3. 9th January, 2023
  4. Not possible

Answer: (b) 8th January, 2023

Solution

  1. Write down the daily savings. Day 1: ₹1. Each day he saves ₹2 more than the day before. So the daily amounts are 1, 3, 5, 7, 9, … These are the odd numbers in order.
  2. Find the total after n days. The sum of the first n odd numbers is n². Check: 1 = 1², 1 + 3 = 4 = 2², 1 + 3 + 5 = 9 = 3², 1 + 3 + 5 + 7 = 16 = 4².
  3. Use the formula: Sum = (n/2) × [2 × 1 + (n − 1) × 2] = (n/2) × 2n = n².
  4. So the total at the end of the nth day of January is n². It is already a perfect square on every day.
  5. Now add the second condition. n² must also be a perfect cube. A number that is both a perfect square and a perfect cube is a perfect sixth power: 1, 64, 729, …
  6. n² = k⁶ means n = k³. So n itself must be a perfect cube: n = 1, 8, 27, …
  7. n = 1 gives a total of 1 on 1st January. This is trivial and is not among the choices.
  8. The next value is n = 8. The total is 8² = 64. Check: 64 = 8² and 64 = 4³. Both conditions hold.
  9. Check the nearby dates. 7th January: 7² = 49. Cubes near 49 are 27 and 64, so 49 is not a cube. 9th January: 9² = 81. Cubes near 81 are 64 and 125, so 81 is not a cube.
  10. Answer: 8th January, 2023 (total savings ₹64 = 8² = 4³).

Option-wise explanation

  • a: incorrect — The total on 7th January is 7² = 49. That is a square but not a cube, since it lies between 3³ = 27 and 4³ = 64. This option catches students who only check that the total is a square.
  • b: correct — The total on 8th January is 1 + 3 + … + 15 = 8² = 64. Also 64 = 4³, so it is both a perfect square and a perfect cube. 8 is the first non-trivial perfect cube value of n.
  • c: incorrect — The total on 9th January is 9² = 81 = 3⁴. It is a square, and a fourth power, but not a cube, since it lies between 4³ = 64 and 5³ = 125. The trap is treating a 'nice' power of 3 as if it were a cube.
  • d: incorrect — It is possible: the total reaches 64 on 8th January, and 1 is also both a square and a cube. 'Not possible' only tempts students who add the savings day by day and give up before they see the n² pattern.

How to eliminate

Spot the pattern: 1, 3, 5, … are odd numbers, and their running total is always n². So the total is a square on every day. The question then becomes 'which of 7, 8, 9 gives a square that is also a cube?' Run through the options: 49 is not a cube, 64 = 4³ is a cube, 81 is not a cube. A quicker route: n² is a cube only when n is a cube, and among 7, 8 and 9 only 8 = 2³ is a cube. You can pick the answer without working out any totals. About 30–45 seconds once you know the sum of the first n odd numbers is n². Attempt this one first.

Know more

Square and cube at once = sixth power

A number is a perfect square and a perfect cube together only when every prime exponent in it is a multiple of both 2 and 3, so a multiple of LCM(2, 3) = 6. Such numbers are perfect sixth powers: 1, 64, 729, 4096, …

Sum of the first n odd numbers

1 + 3 + 5 + … + (2n − 1) = n². So any 'start at 1, add 2 more each day' series always totals a square.

Combine the two facts. If the total is n², it is also a cube only when n is a perfect cube.

n (day) Total n² Square? Cube?
1 1 Yes Yes (1³)
7 49 Yes No
8 64 Yes Yes (4³)
9 81 Yes No
27 729 Yes Yes (9³)

General rule: n^a is a perfect b-th power when n is a perfect (b ÷ gcd(a, b))-th power.

Worked variant: A person saves ₹1, ₹3, ₹5, … every day. On which day after day 8 is the total both a square and a cube? n must be the next cube after 8, so n = 27. Total = 27² = 729 = 9³. Answer: day 27.

Variant 2: If the total were n³ (say, from a sum of cubes formula giving a perfect cube), it would also be a square only when n is itself a perfect square.