UPSC CSAT 2024 Q9: Trailing Zeros in a Power Product — Solved

How many consecutive zeros are there at the end of the integer obtained in the product 1² × 2⁴ × 3⁶ × 4⁸ × ⋯ × 25⁵⁰?

  1. 50
  2. 55
  3. 100
  4. 200

Answer: (d) 200

Solution

  1. Write the general term. The product is 1² × 2⁴ × 3⁶ × 4⁸ × ⋯ × 25⁵⁰. In each term the exponent is twice the base, so the general term is n^(2n), for n = 1 to 25.

  2. What makes a trailing zero. Each zero at the end of a number comes from one factor of 10, and 10 = 2 × 5. So the number of trailing zeros is the smaller of two counts: the total power of 2 and the total power of 5 in the product.

  3. Find which bases carry a 5. Only multiples of 5 contain the prime 5. Between 1 and 25 these are 5, 10, 15, 20 and 25.

  4. Count the 5s from each of these terms. - 5¹⁰: 5 has one 5, so it gives 1 × 10 = 10 fives. - 10²⁰: 10 = 2 × 5 has one 5, so it gives 1 × 20 = 20 fives. - 15³⁰: 15 = 3 × 5 has one 5, so it gives 1 × 30 = 30 fives. - 20⁴⁰: 20 = 2² × 5 has one 5, so it gives 1 × 40 = 40 fives. - 25⁵⁰: 25 = 5² has two 5s, so it gives 2 × 50 = 100 fives.

  5. Add them. Total power of 5 = 10 + 20 + 30 + 40 + 100 = 200.

  6. Check that there are more 2s than 5s. Count the 2s from a few even bases: - 2⁴ gives 4. - 4⁸ = (2²)⁸ gives 16. - 6¹² gives 12. - 8¹⁶ = (2³)¹⁶ gives 48. - 10²⁰ gives 20. - 12²⁴ = (2² × 3)²⁴ gives 48. - 14²⁸ gives 28. - 16³² = (2⁴)³² gives 128. These alone add to 4 + 16 + 12 + 48 + 20 + 48 + 28 + 128 = 304. That is already more than 200, and more even bases are still left. So the 2s are not the limit.

  7. Conclude. The number of 10s is limited by the 5s, so the number of trailing zeros = 200.

Answer: 200

Option-wise explanation

  • a: incorrect — 50 is just the exponent on 25 in the last term. A student who reads 25⁵⁰ as 'fifty 5s' forgets that 25 = 5², and also leaves out the 5s from 5, 10, 15 and 20.
  • b: incorrect — No consistent way of counting gives 55. The true count of 5s is 10 + 20 + 30 + 40 + 100 = 200. This option is a filler that sits near 50.
  • c: incorrect — 100 is a half-count. It is the 5s from 25⁵⁰ alone (2 × 50), and it is also the 5s from 5, 10, 15 and 20 alone (10 + 20 + 30 + 40). The trap is to stop after one group, or to treat 25 as having only one 5.
  • d: correct — The total power of 5 is 10 + 20 + 30 + 40 + 100 = 200. The power of 2 is much larger, so 200 pairs of 2 × 5 form 200 tens.

How to eliminate

Look at the last term first. 25⁵⁰ = (5²)⁵⁰ = 5¹⁰⁰, so that one term already gives 100 fives. The other terms 5¹⁰, 10²⁰, 15³⁰ and 20⁴⁰ add more 5s on top. So the answer must be more than 100, which rules out 50, 55 and 100 at once. Only 200 is left. You can also confirm it in a few seconds: 10 + 20 + 30 + 40 = 100, and 100 + 100 = 200. The 2s are clearly more plentiful (16³² alone gives 128 twos), so the 5s decide the count. About 30–45 seconds once you see that 25 = 5². Attempt this one first; it is a sure mark.

Know more

Trailing zeros = number of (2 × 5) pairs

A number ends in k zeros when 10ᵏ divides it, and 10 = 2 × 5. So:

  • Trailing zeros = min(power of 2, power of 5) in the prime factorisation.
  • In most products the 2s outnumber the 5s, so you usually only need to count the 5s. Check this quickly anyway.
  • For a term aᵐ, the power of 5 is (power of 5 in a) × m.
  • Watch for higher powers of 5. 25 = 5² gives two 5s, and 125 = 5³ gives three.
Base 5s in base 2s in base
5, 10, 15, 20 1 0, 1, 0, 2
25 2 0
50 2 1
125 3 0

Worked variant: How many trailing zeros does 1¹ × 2² × 3³ × ⋯ × 10¹⁰ have?

  • 5s: 5⁵ gives 5 and 10¹⁰ gives 10. Total = 15.
  • 2s: 2² gives 2, 4⁴ gives 8, 6⁶ gives 6, 8⁸ gives 24 and 10¹⁰ gives 10. Total = 50.
  • Trailing zeros = min(50, 15) = 15.

Related idea: For n!, the number of trailing zeros is ⌊n/5⌋ + ⌊n/25⌋ + ⌊n/125⌋ + ⋯ (Legendre's formula). For example, 100! has 20 + 4 = 24 trailing zeros.