How many trailing decimal zeros does the integer one hundred choose fifty have? This original SASMO number-theory extension uses the factorial expression one hundred factorial divided by the square of fifty factorial. It is important to count factors after cancellation: the fact that the numerator factorial has many zeros does not mean that its integer quotient must end in zero.
Need help choosing a next step? Scan the contact QR code below or contact Hanlin on WeChat. Send SASMO-S3-1130 and tell us your school year and question.
Translate a decimal zero into prime factors
Each factor of ten requires one factor of two and one factor of five. The trailing-zero count is therefore the smaller of the total exponents of two and five in the final integer. Counting the written zeros in separate factorials and subtracting them without checking both prime exponents can obscure why cancellation works.
Count fives in the numerator factorial
The exponent of five in one hundred factorial is floor of one hundred divided by five plus floor divided by twenty-five, equal to twenty plus four, or twenty-four. Multiples of twenty-five contribute an extra five beyond their first contribution. No multiple of one hundred twenty-five occurs in this factorial, so there is no further term.
Subtract the denominator five counts
For fifty factorial, the exponent is ten plus two, or twelve. The denominator contains two copies, contributing twenty-four fives. The binomial coefficient therefore has twenty-four minus twice twelve, or zero factors of five. This alone is enough to conclude that the coefficient has no trailing decimal zero, even before computing its exact large value.
Check twos as an independent valuation calculation
The exponent of two in one hundred factorial is fifty plus twenty-five plus twelve plus six plus three plus one, equal to ninety-seven. In fifty factorial it is twenty-five plus twelve plus six plus three plus one, equal to forty-seven. The quotient has ninety-seven minus ninety-four, or three factors of two. Its lack of fives, rather than a lack of twos, controls the decimal ending.
Understand why factorial zeros are misleading evidence
One hundred factorial has twenty-four trailing zeros and fifty factorial has twelve, but the correct answer is not based on the visual size of those factorials. The prime-exponent calculation proves exactly what survives in the integer quotient. The quotient can be very large and still have no trailing zero; number of digits and number of terminal zeros measure different properties.
Retain the integer and number-base assumptions
A binomial coefficient is an integer, so the net prime valuations are valid nonnegative exponents. A general quotient of factorials need not be an integer unless that is established. A different writing base would also require that base prime factors rather than just two and five. State the decimal base, compute valuations and take the minimum only after cancellation.
Continue reading: SASMO Lattice Counting: Ordered Factor Pairs Below a Product Boundary Need Floor Values.
Contact Hanlin
Planning a first attempt or reviewing a topic you find difficult? Scan the QR code and send SASMO-S3-1130. 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
