PDF Document
PDF Document
What is Infinity?
... it's not big ...
ENDLESS
Infinity has no end
Infinity is the idea of something that has no
end.
In our world we don't have anything like it. So
we imagine traveling on and on, trying hard to
get there, but that is not actually infinity.
1
/3 is a finite number (it is not infinite). But
written as a decimal number the digit 3 repeats
forever (we say "0.3 repeating"):
0.3333333... (etc)
There's no reason why the 3s should ever stop:
they repeat infinitely.
Infinite
We say a set A is countably infinite if N≈A, that is, Aand
N has the same cardinality as the natural numbers. We
say A is countable if it is finite or countably infinite
.If A is a countably infinite set and
f:N→A is a bijection, then
A={f(1),f(2),f(3),…}.
In other words, a set is countably infinite if and only if it can be
arranged in an infinite sequence.
Ans.: Infinite.
We can’t map Set of Natural numbers to Real numbers
because there is really no order (even though we can
always say which real number is greater than the other but
still there can be infinite real numbers between the two)
Natural Numbers
⚫ Is Zero (0) a natural numbers?
Answer: ????
N0 ={0,1,2,3,4, …..}
Addition:
a+0 = a
a + S(b)= S(a+b)
Multiplication
a.0=0
a.S(b)= a + a.b
a.1 = a.S(0)= a+ a.0 = a+0 =a
Integers
Integer is a Latin word for whole numbers.
I = {…….,-3,-2, -1,0,1,2,3,………}
Proof:
i)
Suppose that a | b and a | c.
Then there are integers ‘s’ and ‘t’ with b = as and c =
at .
b + c = as + at
= a(s + t)
Therefore, a divides b + c.
ii)
Suppose that a | b .
Then there is integer ‘s’ with b = as.
Mutiplying both sides by an integer c
bc = a(sc)
Therefore, a divides bc.
iii)
Suppose that a | b and b | c.
Then there are integers ‘s’ and ‘t’ with b = as and c =
bt .
c=(as)t
= a(st)
Therefore, a divides c.
Corollary
If a, b, and c are integers, where a ≠ 0, such that a | b
and a | c, then a | mb + nc whenever
m and n are integers.
Proof:
Given that a | b and a | c.
Therefore, by part (ii) above theorem a |mb and a | nc
Now from part (i) of the above theorem it follows that
a|(mb+nc).
The Division Algorithm
Let a be an integer and d a positive integer.
Then there are unique integers q and r, with
0 ≤ r < d, such that a = dq + r.
17 = 5⋅3 + 2.
• 17 is the dividend,
• 5 is the divisor,
• 3 is called the quotient, and
• 2 is called the remainder.
When we divide -11 by 3 , we have
-11 = 3⋅(-4) + 1.
Proof:
If a ≡ b(mod m) then m | (a − b).
This means that there is an integer k such that a − b = km.
Therefore a = b + km.
Conversely, suppose there is an integer k such that a= b +
km, then km = a − b.
Hence, m divides a − b,
Therefore a ≡ b(mod m).
Theorem:
Let m be a positive integer.
If a ≡ b (mod m) and c ≡ d (mod m),
then a + c ≡ b + d (mod m) and ac ≡ bd (mod m).
Proof:
We know that a ≡ b (mod m) and c ≡ d (mod m) implies
that there are integers s and t with b = a + sm and d = c
+ tm.
Therefore,
b + d = (a + sm) + (c + tm)
= (a + c) + m(s + t)
And bd = (a + sm)(c + tm)
= ac + m(at + cs + stm).
Hence, a + c ≡ b + d (mod m) and ac ≡ bd (mod m).
Arithmetic Modulo m
We can define arithmetic operations on Zm, the set of
nonnegative integers less than m, that is, the set {0, 1,...,m
− 1}.
Addition of these integers, denoted by +m is defined by
⚫ a +m b = (a + b) mod m,
where the addition on the right-hand side of this equation is
the ordinary addition of integers.
Solution:
7 +11 9 = (7 + 9) mod 11
= 16 mod 11
=5
7 ·11 9 = (7 · 9)mod 11
= 63 mod 11
=8
Primes:
⚫A positive integer p greater than 1 is called prime if
the only positive factors of p are 1 and p.
Examples:
⚫Are 15, 17, and 27 pairwise relatively prime?
⚫No, because gcd(15, 27) = 3.
lcm(3, 7) = 21
lcm(4, 6) = 12
lcm(5, 10) = 10
Using prime factorizations:
Suppose that the prime factorizations of the positive
integers a and b are
a = p1a1 p2a2 … pnan , b = p1b1 p2b2 … pnbn ,
where p1 < p2 < … < pn and ai, bi ∈ N for 1 ≤ i ≤ n
⚫lcm(a, b) = p1max(a1, b1) p2max(a2, b2) … pnmax(an, bn)
Example:
a = 60 = 22 31 51
b = 54 = 21 33 50
lcm(a, b) = 22 33 51 = 4⋅27⋅5 = 540
a = 60 = 22 31 51
b = 54 = 21 33 50
gcd(a, b) = 21 3 1 5 0 =6
lcm(a, b) = 22 3 3 5 1 = 540
Theorem:
Let a and b be positive integers. Then
ab = gcd(a, b) · lcm(a, b)
Euclidean Algorithm:
The Euclidean Algorithm finds the greatest common
divisor of two integers a and b.
procedure gcd(a, b: positive integers)
x := a
y := b
while y ≠ 0
begin
r := x mod y
x := y
y := r
end {x is gcd(a, b)}
The Euler Phi Function
Definition
Given an integer n, Φ(n) is the number of all
numbers a such that 0 < a < n and a is
relatively prime to n (i.e., gcd(a, n)=1).
Theorem:
If gcd(m,n) = 1, Φ(mn) = Φ(m) Φ(n)
42
The Euler Phi Function
Theorem: Formula for Φ(n)
Let p be prime, e, m, n be positive integers
1) Φ(p) = p-1
2) Φ(pe) = pe – pe-1
3) If then
43
Example:
n=72=23 * 32
Φ(n)=72*(1-1/2)(1-1/3)
=
72 *1/2*2/3
=24
1,5,7,11,13,17,19,23,25,29,31,35,37,41,43,47,53,55,59
,61,65,67,71,73
Residue Classes
• Given positive integer n, congruence modulo n is
an equivalence relation.
• This relation partition all integers into equivalent
classes; we denote the equivalence class
containing the number x to be [x]n, or [x] when n
is clear from the context
• These classes are called residue classes modulo
n
• E.g., [1]7=[8]7={…, -13,-6,1,8,15,22,…}
45
Modular Arithmetic in Zn
46
Properties of Modular Addition and
Multiplication
Let n be a positive integer and Zn be the set of residue
classes modulo n. For all a, b, c ∈ Zn
1. a + b = b + a addition is commutative
2. (a+b)+c = a+(b+c) addition is associative
3. a + [0] = a exists addition identity
4. [x] + [–x] = [0] exists additive inverse
5. a × b = b × a multiplication is commutative
6. (a×b)×c = a×(b×c) multiplication is associative
7. a×(b+c) = a×b+ a×cmult. distributive over add.
8. a×[1] = a exists multiplicative identity
47
Multiplicative Inverse
• What is Z15*?