Skip to the page

Number properties: question 26 of 29

An ACT® Math practice question. Pick an answer to check it, or open the answer and the worked explanation.

The question

Number propertiesHarder

The product 1⋅2⋅3⋅…⋅301 \cdot 2 \cdot 3 \cdot \ldots \cdot 30 of all the integers from 1 through 30 is written out in full. How many zeros are at the end of this number?
  1. A3
  2. B6
  3. C7
  4. D15

Choose an answer, then open the answer below to check it.

A place to start

A zero at the end of a number means a factor of 10. Which two primes make 10, and which of them is scarcer in this product?

Another hint

Count the factors of 5 in the numbers from 1 through 30, looking carefully at every multiple of 5.

One more hint

Six numbers in the range are multiples of 5, and one of them contains 5 twice.

Show the answer and explanation

Answer: C.7

Why C works

  1. Each zero at the end comes from a factor of 10, which is 2⋅52 \cdot 5. The product has far more factors of 2 than factors of 5, so the number of 5s decides the count.
  2. The multiples of 5 from 1 through 30 are 5, 10, 15, 20, 25 and 30, which gives 6 factors of 5. But 25=5⋅525 = 5 \cdot 5 supplies a second 5.
  3. So the product has 6+1=76 + 1 = 7 factors of 5, each pairs with a factor of 2 to make a 10, and the number ends in 7 zeros.

Why the other choices are wrong

  • A. This counts only the multiples of 10 (10, 20 and 30). A 5 from a number such as 15 also pairs with a spare 2 from an even number to make another 10.
  • B. This counts the six multiples of 5 but misses that 25=5⋅525 = 5 \cdot 5 contributes two factors of 5, not one.
  • D. This counts the 15 even numbers as if each factor of 2 made a zero. A 10 needs both a 2 and a 5, and there are far fewer 5s, so the 5s set the limit.

The rule

The number of zeros at the end of a whole number equals the number of factors of 10 it contains, which is the smaller of its count of 2s and its count of 5s.

Spot it next time

To count the end zeros of a long product, count the factors of 5, and remember that 25, 50 and 75 each contribute an extra 5.