Professional Documents
Culture Documents
example
Exercise
example
Write
gcdex(a, b, ’s’, ’t’)
in Python
Exercise
Multiplicative inverse
• Proof
Exercise
example
Write
a^(-1) mod b in
Python
Chinese Remainder Theorem
Write function
chrem([a1, …, ar],[m1, …, mr]) in Python
Exercise
The order of a group element
The order of group elements
• Definition: The order of an element g in G is the
smallest positive integer m such that gm = 1.
Write function
order(3,7) in Python
• The order of an element g in Z7* must divides 6,
ord(g) is in{1, 2, 3, 6}.
• The order of an element g in Z11* must divides 10,
ord(g) is in{1, 2, 5, 10}.
Facts
Primitive element
5
15
30 3
60 2
2
60 = 2 * 2 * 3* 5.
The three most effective algorithms
1. The Quadratic Sieve
2. The Elliptic Curve Factoring Algorithm
3. The Number Field Sieve