Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 2.8.1 (Primitive roots modulo 3, 5, 7, 11, 13)
Exercise 2.8.1 (Primitive roots modulo 3, 5, 7, 11, 13)
Find a primitive root of the prime ; the prime ; the prime ; the prime 11; the prime .
Answers
Proof.
-
, and , thus
is is primitive root modulo .
-
, and , thus
is is primitive root modulo .
-
(Fermat’s theorem), and , thus
is is primitive root modulo .
-
(Fermat), and , thus
is a primitive root modulo .
-
(Fermat), and , thus
is a primitive root modulo .
With Sage
for p in range(14): ....: if is_prime(p): ....: Fp = GF(p) ....: print(p, ’=>’, Fp.primitive_element()) (2, ’=>’, 1) (3, ’=>’, 2) (5, ’=>’, 2) (7, ’=>’, 3) (11, ’=>’, 2) (13, ’=>’, 2) a = Mod(2, 7) a.multiplicative_order() 3