Trailing zeroes are created by factors of the base, not by a universal rule about factors of five. Moving from decimal notation to another base makes that dependency explicit. This original number-theory exercise supports structured AMC 10 to AIME preparation; it is not an official AMC problem or a prediction of a contest threshold.
Need help choosing a next step? Scan the contact QR code below or contact Hanlin on WeChat. Send AMC10-FACTORIAL-ZEROS-BASE-TWELVE-1121 and tell us your school year and question.
Translate a trailing zero into divisibility
In base twelve, one trailing zero means divisibility by twelve, and k trailing zeroes mean divisibility by twelve to the power k. Since twelve equals two squared times three, each zero consumes two factors of two and one factor of three. We want the largest k for which the complete base factor can be removed from the integer.
Count the factors in ten factorial
In 10 factorial, the exponent of two is floor of 10/2 plus floor of 10/4 plus floor of 10/8, giving five plus two plus one, or eight. The exponent of three is floor of 10/3 plus floor of 10/9, giving three plus one, or four. Multiples of a prime power contribute additional copies, which is why counting just even numbers or multiples of three would be incomplete.
Find the limiting prime supply
The eight factors of two permit four groups of two squared. The four factors of three also permit four groups, so 10 factorial has four trailing zeroes in base twelve. The general expression is the smaller of floor of the exponent of two divided by two and the exponent of three. Having extra factors of only one prime would not create another complete factor of twelve.
Check by removing the proposed base power
Numerically, 10 factorial is 3628800, and twelve to the fourth power is 20736. The quotient is 175, which is not divisible by twelve. Thus four complete base factors can be removed, but a fifth cannot. This direct arithmetic confirms that the prime count gives the exact number of trailing zeroes, rather than merely a lower bound.
Use the method for a threshold extension
What is the smallest n for which n factorial has at least five base-twelve trailing zeroes? It needs at least ten factors of two and five of three. At n = 11 the exponents remain eight and four, while at n = 12 they become ten and five. Factor exponents never decrease as n increases, so twelve is the minimum. State the base first, factor it, count each required prime and test the limiting supply.
Continue reading: AMC 10 to AIME Number Theory: Combine Two Remainders to Find the Last Two Digits.
Contact Hanlin
Planning a first attempt or reviewing a topic you find difficult? Scan the QR code and send AMC10-FACTORIAL-ZEROS-BASE-TWELVE-1121. Include your school year, country or competition region, experience and the question you want to discuss.

On your phone, use the button or save the QR image and scan it within WeChat.
Official information and further reading: Source 1
