Primitive Roots
Primitive Roots
Theory
Chapter 8
Modular Arithmetic
Remainder of a Large Number
Prime Numbers
Prime numbers only have divisors of 1 and self
2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59
61 67 71 73 79 83 89 97 101 103 107 109 113 127
131 137 139 149 151 157 163 167 173 179 181 191
193 197 199
Relatively Prime Numbers &
GCD
Two numbers a and b are relatively prime if
have no common divisors apart from 1
e.g.
ø(37) = 36
ø(21) = (3–1)x(7–1) = 2x6 = 12
Euler's Theorem
A generalisation of Fermat's Theorem
aø(n) = 1 (mod n)
e.g.
a = 3;n = 10; ø(10) = 4;
hence 34 = 81 = 1 mod 10
a = 2;n = 11; ø(11) = 10;
hence 210 = 1024 = 1 mod 11
Primitive Roots
From Euler’s theorem have aø(n)modn=1
Consider am =1 (mod n), GCD(a,n)=1
must exist for m = ø(n) but may be smaller
once powers reach m, cycle will repeat