Mathematical Fundamentals
Mathematical Fundamentals
fundamentals
Om Pal
[email protected]
07/03/2010
© Centre for Development of Advanced Computing, Mumbai.
Why mathematical fundamentals ?
• Example-
(a) Since 3|(82 − 1), 82 ≡ 1 (mod 3).
(b) Since 11|(16 − (−6)), 16 ≡ −6 (mod 11).
(c) Since 7 (10 − 2), 10 2 (mod 7).
(d) For any a, b ε Z, a ≡ b (mod 1), since 1|(a − b).
b = x mod n
If n = 4 and b = 0 then x ε {. . . ,−4, 0, 4, . . .}
If n = 4 and b = 1 then x ε {. . . ,−3, 1, 5, . . .}
= {. . . ,−4, 0, 4, . . .},
= {. . . ,−3, 1, 5, . . .},
= {. . . ,−2, 2, 6, . . .},
= {. . . ,−1, 3, 7, . . .},
• Wilson Theorem-
If p is a prime, then (p−1)! ≡ −1 (mod p).
• Fermat Theorem-
If a ε Z, and p is a prime such that gcd(a, p) = 1, then
ap−1 ≡ 1 (mod p).
• Euler’s φ-Function-
For any n ε N the Euler φ-function, also known as Euler’s Totient,
φ(n) is defined to be the number of m ε N such that m < n and
gcd(m, n) = 1.
• Examples:
If p=7, then 3 is a primitive root for p because the powers of 3 are 1,
3, 2, 6, 4, 5---that is, every number mod 7 occurs except 0.
There are 6 congruence classes (except 0) and every element of
every class is the power of 3 under mode 7 operation.
• 2. Let (Zn, *n) is a group under multiplicative operator and 1 identity element
(Zn, *n) = (A*B) mod n, Zn={1,2,3,…. N-1}
Here (Zn, *n) = {1,2,…. N-1} if n is prime
(Z7,*7) = {1,2,…..6}
• Cyclic group- A group is a cyclic group if there exists generator for the group.
21=2, 2*2 mod 13 =4 or 22=4, 23=8, 24=3, 25=6, 26=12, 27=11, 28=9,
29=5, 210=10, 211= 7, 212=1, 213= 21
• Non cyclic group- Z*8 = {1,3,5,8} is a non-cyclic group because none element of
this group is the generator.
• Theorem 1: The number of generators of < Z*n, *n > is φ(n-1). Euler totient function.
For example- Let n=13 then φ(12)=4.
• Theorem 2: g is a generator of < Z*n, *n > iff g(n-1)/k ≠ 1 mod n for all
distinct prime factors of n-1.
• Example- Let n=13 then distinct prime factors of n-1 are K={2,3}
• For g=2 :
k=2 we have 2(13-1)/2 ≠ 1 mod 13 because 2(13-1)/2 =26=12 ≠ 1
k=3 we have 2(13-1)/3 ≠ 1 mod 13 because 2(13-1)/3 =24=3 ≠ 1
Hence g=2 is a generator.
• For g=3:
k=3 we have 3(13-1)/3 ≡ 1 mod 13, so theorem fails for g=3 hence 3 is
not a generator.
Some Basics
• Monoid: A monoid is a set, S, together with a binary operation “•”
that satisfies the following axioms:
Closure: If a, b in S, then a · b is also in S.
Associativity: For all a, b and c in S,
the equation (a • b) • c = a • (b • c) holds.
Identity element: There exists an element e in S, such that for all
elements a in S, the equation e • a = a • e = a holds.
• To qualify as a ring, the set together with its two operations must
satisfy certain conditions (below two conditions).
• Finite Field: (also called Galois fields) are fields with finitely many
elements.
• Number of elements (order) in a field are always prime or power of
prime.
• Minimum possible number of elements in a filed are two.
• GF( p) is called the prime field of order p , and is the field of residue
classes modulo p , where the p elements are denoted 0, 1, ...,p-1.
y2 = x3+ax+b (mod p)
T (x1, y1)
R’
or
y2(mod p) = (x3+ax+b) mod p R is a mirror of R’
R=T+Q
If T ≠ Q then slop (λ) = (y2 – y1)/(x2 – x1)
R’
If T = Q then slop (λ) = (3x12 + a)/(2y1)
• Now Point R (x3, y3) R is a mirror of R’
2. http://en.wikipedia.org/wiki/Group_theory
3. http://en.wikipedia.org/wiki/Ring_(mathematics)
4. http://en.wikipedia.org/wiki/Group_(mathematics)
5. http://mathworld.wolfram.com/FiniteGroup.html
6. http://www.tataelxsi.com/whitepapers/ECC_Tut_v1_0.pdf?pdf_id=public_
key_TEL.pdf
7. http://www.pascgalois.org/
Contact: [email protected]