Академический Документы
Профессиональный Документы
Культура Документы
Number Theory
Proof of DP 4) :
if b|g , then g is of the form g = b x g1 for some integer g1
a = q1 x b + r1, 0 r1 < b
If r1 = 0,
If r1 0,
a = q1 x b + r 1, 0 r1 < b
b = q2 x r1 + r2, 0 r2 < r1
r1 = q 3 x r 2 + r 3, 0 r 3 < r 2
...
Euclid(a,b){
rn-2 = qn x rn-1 + rn, 0 rn < rn-1 r1 = a; r2 = b;
while(r2>0){
rn-1 = qn+1rn + 0 => d = gcd(a,b) = rn q = r1/r2;
r = r1 – q * r2;
r1 = r2; r2 = r;
}
return r1;
}
8
Euclid(a,b){
r1 = a; r2 = b;
while(r2>0){
q = r1/r2;
r = r1 – q * r2;
r1 = r2; r2 = r;
}
return r1;
}
9
10
11
12
13
= (ra + rb ) mod n
14
15
17
18
19
20
21
23
Extended Euclidean Algorithm not only finds the gcd but also represent
the gcd of a, and b in terms of sum of a and b using two integers.
24
...
rn-1 = qn+1rn + 0
25
ri = ri-2 – qi ri-1
= axi + byi
26
27
28
29
30
operation.
32
Example:
1) The set of integers (positive, negative, and 0) under addition is an
abelian group.
2) The set of nonzero real numbers under multiplication is an abelian
group.
3) The set Sn from the preceding example is a group but not an abelian
33
35
36
38
result in all residues of Zp. So, the element with residue 1 is the multiplicative
39
then y = b-1
40
i ri qi xi yi
-------------------------------------------------------------------
-1 29 - 1 0
0 11 - 0 1
1 7 2 1 -2
2 4 1 -1 3
3 3 1 2 -5
4 1 1 -3 8
-------------------------------------------------------------------- 41
Inverser of 11 exist and is equals to 8.
Dr. Alekha Kumar Mishra
Finite Field Examples
GF(2) = {0,1}
42
43
44
If the coefficient set is the integers, then (5x2)/(3x) does not have a solution,
Because, a coefficient with a value of 5/3, is not in the coefficient set.
However, the same polynomial division over Z7. Then, we have
45
f(x) + g(x)
f(x) - g(x)
46
f(x) g(x)
f(x) g(x)
47
48
49
50
51
52
53
54
55
57
58
59
we have
8 7 6 5 4 3 2
x * f(x) = (b7x + b6x + b5x + b4x + b3x + b2x + b1x + b0x) mod m(x)
If b7 0, then reduction is achieved by using the equation (xn mod p(x) = [p(x) – xn])
as
7 6 5 4 3 2 4 3
x * f(x) = (b6x + b5x + b4x + b3x + b2x + b1x + b0x) + (x + x + x + 1)
60
= (b6b5b4b3b2b1b0 )(00011011), if b7 = 1
61
62
63
64
65
66