We prove that (i) implies (ii). Since is primitive modulo , writeBeing primitive modulo is equivalent to . The binomial theorem then gives inductivelyIt follows that the order modulo is exactlyso is primitive modulo every . This is lifting a primitive root to odd prime powers. The implication (ii)(i) is immediate by taking .
Solved by gpt-5.6-sol high.
Codex Wiki