Chapter 2-2
Chapter 2-2
Security
Number Theory
Divisibility
● A nonzero b divides a if a = mb for some m, where a, b, and m are integers. The notation b | a
is commonly used to mean b divides a
E.g 2|10 ; 2 (b) divides 10 (a) ; 10 (a) =5 (m) * 2 (b)
2
Number Theory
3
Number Theory
4
Number Theory
Relatively Prime
● In number theory, two integers a and b are said to be relatively prime, mutually prime, or coprime (also
written co-prime) if the only positive integer (factor) that divides both of them is 1.
5
Number Theory
6
Number Theory
7
Number Theory
● First consider the case in which r1 = 0. Therefore b divides a and clearly no larger number divides both b
and a, because that number would be larger than b. So we have d = gcd(a, b) = b
● The other possibility is r1 ≠ 0. For this case, we can state that d | r1. This is due to the basic properties of
divisibility: the relations d | a and d | b together imply that d | (a - q1b), which is the same as d | r1
8
Number Theory
9
Number Theory
10
Number Theory
11
Number Theory
The Modulus
● If a is an integer and n is a positive integer, we define a mod n to be the remainder when a is divided by n.
The integer n is called the modulus.
● Two integers a and b are said to be congruent modulo n, if (a mod n) = (b mod n). This is written as
12
Number Theory
Properties of Congruences
13
Number Theory
14
Number Theory
15
Number Theory
16
Number Theory
17
Number Theory
● Of all the integers in a residue class, the smallest nonnegative integer is the
one used to represent the residue class. 18
Number Theory
19
Number Theory
20
THANKS!
Any questions?
21