AMC 10 Number Theory: Count Factors of Five to Find a Factorial's Trailing Zeros

A trailing decimal zero comes from a factor of ten, and ten is two times five. In a factorial, factors of two are more abundant, so the number of available factors of five controls the zero count.

Need help choosing a next step? Scan the contact QR code below or contact Hanlin on WeChat. Send AMC10 FACTORIAL ZEROS 1101 and tell us your school year and question.

Count the first factor of five

In this original problem, find the number of trailing zeros in 75!. The multiples of five from five through seventy-five supply at least one factor of five each.

There are floor(75/5) = 15 such multiples. Stopping here misses numbers that contribute more than one factor of five.

Count the additional factors

The numbers 25, 50 and 75 each contain a second factor of five. They supply floor(75/25) = 3 additional factors. No number in this factorial is a multiple of 125, so there is no third layer.

The total is 15 + 3 = 18. Counting 25 in both layers is intentional: one count represents its first five and the other its second five. It is not an accidental duplicate of the same prime factor.

Check that twos do not limit the pairs

Even the thirty-seven even numbers up to seventy-five supply more than eighteen factors of two. Several of them contain additional twos as well.

Thus every counted five can be paired with a two to make ten, giving exactly eighteen trailing zeros. After all eighteen fives are used, a nineteenth ten cannot be formed merely from the remaining twos.

State the general counting rule

For a positive integer n, add floor(n/5), floor(n/25), floor(n/125) and further powers until the terms are zero. For example, 100! gives 20 + 4 = 24 trailing zeros.

This counts zeros at the end of the decimal representation, not all zero digits anywhere inside the number. It also differs from asking for the final nonzero digit.

This is an original AMC 10 practice problem, not an official question. The factor-counting explanation is useful preparation for more extended number theory, including AIME learning, without requiring the enormous factorial to be written out.

Continue reading: AMC 10 Number Theory: Use a Cycle to Find a Large Power's Units Digit.

Contact Hanlin

Planning a first attempt or reviewing a topic you find difficult? Scan the QR code and send AMC10 FACTORIAL ZEROS 1101. Include your school year, country or competition region, experience and the question you want to discuss.

Scan to contact Hanlin on WeChat. Send AMC10 FACTORIAL ZEROS 1101.

Contact Hanlin on WeChat

On your phone, use the button or save the QR image and scan it within WeChat.

Official information and further reading: Source 1

AMC 10 Probability: Knowing the First Colour Changes the Remaining Sample Space

A second draw does not have one universal probability independent of the information supplied. If the first colour is known and the counter is not replaced, the contents relevant to the next draw have changed.

Need help choosing a next step? Scan the contact QR code below or contact Hanlin on WeChat. Send AMC10 COLOUR CONDITION 1031 and tell us your school year and question.

Specify the drawing model

An original fictional bag contains three red and two blue counters. Counters are selected uniformly without replacement. Given that the first counter was blue, what is the probability that the second is red?

After the known blue draw, four counters remain: three red and one blue. The required probability is therefore 3/4. The condition has already happened in the probability question, so it is not another factor to multiply into this answer.

Separate the joint event

The probability that the first is blue and the second is red, before either colour is known, is (2/5)(3/4) = 3/10.

This joint probability differs from the conditional probability 3/4. Dividing the joint probability by the probability 2/5 of the stated condition recovers 3/4, providing a second way to check which event is being asked about.

Compare a different known first colour

If the first counter is known to be red, two red and two blue counters remain. The probability of red on the second draw is then 1/2.

If no first-colour information is supplied, the unconditional probability of a red second counter is 3/5. It can be checked by splitting into the two first-colour cases: (2/5)(3/4) + (3/5)(1/2) = 3/5.

Record information as part of the model

Replacing the first counter would create a different model: the original counts would be restored before the second draw. Also, 'at least one of two counters is blue' is a different condition from 'the first is blue.'

This is an original AMC 10 learning exercise, not an official question. For later AIME preparation, explaining the conditional sample space is useful practice beyond recognising an answer choice. It does not establish invitation eligibility; current official AMC and AIME information should be checked separately.

Continue reading: AMC 10 Probability: Count the Overlap Before Adding Divisibility Cases.

Contact Hanlin

Planning a first attempt or reviewing a topic you find difficult? Scan the QR code and send AMC10 COLOUR CONDITION 1031. Include your school year, country or competition region, experience and the question you want to discuss.

Scan to contact Hanlin on WeChat. Send AMC10 COLOUR CONDITION 1031.

Contact Hanlin on WeChat

On your phone, use the button or save the QR image and scan it within WeChat.

Official information and further reading: Source 1

Online Customer Service
Contact Customer Service