Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 2.8.30* (Period of the decimal expansion of a rational number)
Exercise 2.8.30* (Period of the decimal expansion of a rational number)
Suppose that , and that is the order of . Show that the decimal expansion of the rational number is periodic with least period .
Answers
Proof. Here . Let be the order of modulo . The order is well defined, because .
Consider the rational . The Euclidean division gives integers such that , where . Moreover , otherwise , and . So . Then
The decimal expansion of if composed of the decimal expansion of , followed by a dot and the decimal expansion of . Now we prove that the decimal expansion of is periodic with least period .
Define inductively the sequence by , and for all ,
where are the quotient and remainder of the division of by . Note that , thus , so the are decimal digits.
(The are the digits of the result of the usual algorithm of division seen in primary school. For instance, for ,
Using (1), we obtain by induction that
Then
thus
This show that is a default approximation to within of : the algorithm of primary school is not so bad...
From (1) we deduce for all , therefore, by immediate induction, for all ,
Since , , where , hence . The unicity of the remainder shows that , and more generally for all . This shows that is a period of the sequence . Moreover implies by unicity of the quotient that , so that is a period of the decimal expansion of (or ). (Note that the periodicity begins with the first digit, and not after some time.)
We must show now that is the least period.
Let be any period of the decimal expansion of . Then
where is an integer. Then
Then , so , where . Therefore , so . The order of is , thus . This proves that is the least period of the decimal expansion of or . □