Exercise 71Number theory › IrrationalityHigh schoolAdded 3 Nov 2026
Decimal expansions and rationality
#decimal expansion#rational#periodic
Statement
Show that a real number is rational iff its decimal expansion is eventually periodic.
Hint
Forward: long division produces periodic remainders. Converse: compute as a geometric series.
Show solutionHide solution
Solution
Forward. For , long division: remainders mod are among , so by pigeonhole some remainder repeats within steps. From that point the decimal is periodic. (If the remainder is hit, the decimal is finite, considered periodic with period .)
Converse. Up to adding an integer to , we can assume . Multiplying by and subtracting gives , so .
Conclusion. Rationals are exactly the eventually periodic decimals.