Theorem
When a rational number's decimal expansion terminates
Arithmetic • Number System • Rational Numbers
Statement
A rational number in lowest terms has a terminating decimal expansion if and only if for some integers ; otherwise the expansion is non-terminating and repeating.
How to use it
- 1Reduce the fraction first, then factorise only the denominator — the numerator is irrelevant.
- 2Scan the denominator's prime factors: a single prime other than or is enough to force a repeating expansion.
- 3Every rational is either terminating or repeating, so 'not terminating' and 'repeating' are the same verdict here.
Worked example
Does have a terminating decimal expansion?
Step-by-step
- 1
Why: Cancel the common factor before judging the denominator.
- 2
Why: Only the prime appears, so the expansion terminates.
- 3
Answer
Yes, it terminates:
Watch out
The test is invalid before reduction: has the prime in its printed denominator yet still terminates, because that cancels.