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 ( 10 a , q ) = 1 , and that k is the order of 10 ( mod q ) . Show that the decimal expansion of the rational number a q is periodic with least period k .

Answers

Proof. Here q > 1 . Let k be the order of 10 modulo q . The order is well defined, because 10 q = 1 .

Consider the rational a q . The Euclidean division gives integers m , r such that a = mq + r , where 0 r < q . Moreover r 0 , otherwise q r , and q r = q > 1 . So 0 < r < q . Then

a q = m + r q , 0 < r q < 1 , r q = 1 .

The decimal expansion of a q if composed of the decimal expansion of m = a q , followed by a dot and the decimal expansion of r q < 1 . Now we prove that the decimal expansion of r q is periodic with least period k .

Define inductively the sequence ( r i ) i by r 0 = r , and for all i ,

10 r i = a i + 1 q + r i + 1 , 0 r i < q , (1)

where a i + 1 , r i + 1 are the quotient and remainder of the division of 10 r i by q . Note that a i + 1 q < 10 r i < 10 q , thus 0 a i + 1 < 10 , so the a i are decimal digits.

(The a i are the digits of the result of the usual algorithm of division seen in primary school. For instance, for 7 13 ,

r 0 : 7 13 _ _ _ _ _ _ _ _ _ _ _ _ _ r 1 : 5 0.538 r 2 : 11 0 . a 1 a 2 a 3 )

Using (1), we obtain by induction that

1 0 n r = ( i = 1 n 1 0 n i a i ) q + r n .

Then

r q = i = 1 n a i 1 0 i + r q 1 0 n ,

thus

i = 1 n a i 1 0 i < r q < i = 1 n a i 1 0 i + 1 0 n .

This show that i = 1 n a i 1 0 i = 0 . a 1 a 2 a n is a default approximation to within 1 0 n of r q : the algorithm of primary school is not so bad...

From (1) we deduce r i + 1 10 r i ( mod q ) for all i , therefore, by immediate induction, for all n ,

r n 1 0 n r ( mod q ) . (2)

Since 1 0 k 1 ( mod q ) , r k r 0 = r mod q , where 0 r 0 < q , 0 r k < q , hence r k = r 0 . The unicity of the remainder shows that r k + 1 = r 1 , r k + 2 = r 2 , and more generally r k + j = r j for all j . This shows that k is a period of the sequence ( r i ) i . Moreover r k + j = r j implies by unicity of the quotient that a k + j + 1 = a j + 1 , so that k is a period of the decimal expansion of r q (or a q ). (Note that the periodicity begins with the first digit, and not after some time.)

We must show now that k is the least period.

Let h be any period of the decimal expansion of r q . Then

r q = ( a 1 1 0 1 + + a h 1 0 h ) + ( a h + 1 1 0 ( h + 1 ) + + a 2 h 1 0 2 h ) + = ( a 1 1 0 h 1 + + a h ) 1 0 h + ( a 1 1 0 h 1 + + a h ) 1 0 2 h + = a 1 0 h + a 1 0 2 h +

where a = a 1 1 0 h 1 + + a h is an integer. Then

r q = j = 1 a 1 0 jh = a 1 0 h 1 1 0 h = a 1 0 h 1 .

Then r ( 1 0 h 1 ) = aq , so q r ( 1 0 h 1 ) , where r q = 1 . Therefore q 1 0 h 1 , so 1 0 h 1 ( mod q ) . The order of 10 is k , thus k h . This proves that k is the least period of the decimal expansion of r q or a q . □

User profile picture
2024-09-21 09:15
Comments