Why does 13/40 terminate as a decimal while 7/24 does not? The answer comes from place value and divisibility rather than repeated long division. This original proof exercise is intended for readers developing UKMT-style reasoning; it is not presented as an official competition problem.
Need help choosing a next step? Scan the contact QR code below or contact Hanlin on WeChat. Send UKMT-TERMINATING-1125 and tell us your school year and question.
Translate a terminating decimal into a fraction
A decimal that stops after at most k places can be written as N/10^k for an integer N. Suppose a positive fraction p/q is already in lowest terms and equals such a decimal. Cross multiplication gives p times 10^k = Nq. Therefore q divides p times 10^k. The lowest-terms condition is essential to the next deduction.
Use coprimality to restrict the denominator
Because p and q have no common prime factor, every prime factor of q must come from 10^k. But 10^k = 2^k times 5^k. Thus a reduced denominator of a terminating decimal can contain only the primes two and five. A factor three or seven in the reduced denominator cannot be removed by adding more decimal places.
Prove the converse as well
If q = 2^a times 5^b, choose k to be the larger of a and b. Then q divides 10^k, and multiplying numerator and denominator appropriately rewrites p/q with denominator 10^k. It therefore has a terminating decimal. The reasoning now works in both directions, which is needed for a test described as if and only if.
Apply it to two examples
For 13/40, the denominator is 2^3 times 5, so three decimal places suffice. Multiplying by 25 gives 325/1000 = 0.325. For 7/24, the denominator is 2^3 times 3 and the fraction is reduced. The remaining factor three prevents termination, regardless of how long division is continued. This conclusion says nonterminating, not that the number is irrational.
Reduce before inspecting the prime factors
The fraction 21/84 initially displays factors three and seven in its denominator, but cancellation gives 1/4 = 0.25. A test applied to the unreduced denominator would give a false conclusion. In lowest terms, the smallest number of decimal places needed is the larger exponent of two and five; otherwise a numerator cancellation might reduce that number.
Explain what changes in another base
The same place-value argument works with a base B by replacing powers of ten with powers of B. A reduced denominator must divide some power of that base. This extension follows from the proof structure rather than a new list of memorised decimal rules. Before extending an argument, identify which step used the base ten and which step used only coprimality.
Continue reading: UKMT Number Reasoning: Find the Largest Square Tile with a Common Divisor.
Contact Hanlin
Planning a first attempt or reviewing a topic you find difficult? Scan the QR code and send UKMT-TERMINATING-1125. 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
