Euler's Theorem - Any number a relatively prime to m there exists the congruence a
(m) = 1 mod(m)
Where
(m) equals Euler's Totient Function.
Proof:
Let r1, r2, r2, . . . , r
(m) equal the remainders less than and relatively prime to m.
Multiply each remainder by a and divide by m.
ria = qim + ri'
Where ri' is a positive integer less than m
ri' is then relatively prime to m because any common factor of qim and ri', would be a factor of ria.
ria = ri' mod(m)
Two different remainders ri and rj cannot have the same congruence.
Therefore, ri and ri' run through the same set of remainders.
Example:
Let m = 12 , a = 5
(12) = 4, Numbers less than m that are relatively prime to m: 1, 5, 7, 11
Multiply all remainders by a = 5 and congruence mod(m = 12)
| 1a | = | 5 | mod(12) |
| 5a | = | 1 | mod(12) |
| 7a | = | 11 | mod(12) |
| 11a | = | 7 | mod(12) |
Multiplying all congruences together:
| a4(1)(5)(7)(11) | = | (5)(1)(11)(7) mod(m) |
| a4 | = | 1 mod(m) |
| a |
= | 1 mod(m) |