Enter a prime number

Enter b


Is 3 a primitive root of 7?

If p is prime, then b is a primitive root if

Powers of b include all residue classes mod p

Primitive Root Table:

nn - 1bn - 1bn - 1 mod p
1030 = 130 mod 7 = 1
2131 = 331 mod 7 = 3
3232 = 932 mod 7 = 2
4333 = 2733 mod 7 = 6
5434 = 8134 mod 7 = 4
6535 = 24335 mod 7 = 5

Final Evaluation:


3 is a primitive root of 7