Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 2.8.31* (Least period of the decimal expansion of $1/p$)
Exercise 2.8.31* (Least period of the decimal expansion of $1/p$)
Show that the decimal expansion of has period if and only if is a primitive root of . (It is conjectured that if is not a square, and if , then there are infinitely many primes of which is a primitive root.)
Answers
Proof. If or , then , so is not a primitive root modulo . Now we can suppose that . By Problem 30, the order of modulo is equal to the least period of the decimal expansion of . Thus this least period is if and only if the order of is , if and only if is a primitive root modulo .
For instance the least period of the decimal expansion of is . □