MathCastle
Number TheoryEasyOrders and Primitive Roots

Orders and Primitive Roots · Easy problem

An integer aa satisfies a12≡1(modp)a^{12} \equiv 1 \pmod p for a prime pp, but a4≢1a^4 \not\equiv 1 and a6≢1(modp)a^6 \not\equiv 1 \pmod p. What is the order of aa modulo pp?