Choose an integer whose reduction is a primitive root modulo . At least one of satisfies , because the binomial theorem gives
and the added coefficient is nonzero modulo . Both choices still generate the multiplicative group modulo . Choose such a and write with .
For and , another binomial expansion shows
The intermediate binomial coefficients are divisible by , and the final term also has valuation at least because is odd. Induction therefore gives
Thus has order exactly modulo . The order of itself is divisible by , by reduction modulo , and divides the number of invertible residue classes. Its order must consequently be precisely that number. This proves the lifting a primitive root to odd prime powers result and
For the requested example choose . Modulo , and , excluding the proper divisors of ten, so its order is ten. Also , which is not divisible by . Hence
We prove that (i) implies (ii). Since is primitive modulo , write
Being primitive modulo is equivalent to . The binomial theorem then gives inductively
It follows that the order modulo is exactly
so is primitive modulo every . This is lifting a primitive root to odd prime powers. The implication (ii)(i) is immediate by taking .
By lifting a primitive root to odd prime powers, it is enough to test primitivity modulo . The positive integers below eight either fail to be units or have orders
whereas
Therefore the three smallest required integers are