Number Theory: Discrete Mathematics
Number Theory: Discrete Mathematics
THEORY
DISCRETE MATHEMATICS
Number theory is a branch of pure
mathematics devoted primarily to the study
of the integers and integer-valued functions.
German mathematician Carl Friedrich Gauss
said, "Mathematics is the queen of the
sciences—and number theory is the queen of
mathematics."
DIVISIBILIT
Y
NUMBERT THEORY
The concept of addition, subtraction and
multiplication are basic but lead to more
complicated concepts, like Divisibility.
Divisibility is an statement about two integers
a and b
Informally, an integer a divides b if a goes
“exactly” into b
Geometric idea of Divisibility
(only for positive integers)
Represent numbers by rectangle, like so
1
2
Example 3 divides 12
or 12 divisible by 3
3 3 3 3
12
Example 5 divides 15
or 15 divisible by 5
5 5 5
5 goes into
15 three 15
times
Definition (Divisibility)
Let a ≠ 0 and b be integers.
We say that a divides b, denoted by a | b, if
and only if
There is an integer k such that
b = ka
Notation
Example:
a b b k a
1. It is true that 4 | 20, because 20 = 54
a b b k a
2. It is true that -3 | 21, because 21 = (-7)
(-3).
3. It is FALSE that 5 | 12 , because there is
NO integer k such that 12 = k 5.
Notation: If it is false that a | b, we write a | b
Example:
It is true that 2 | 3 because there is no integer
k such that 3 = k 2.
1) If a | b and b | c, then a | c.
2) If a | b and b | c, then a (xb + yc).
₼
To obtain that 3 | 45
Lets prove the statement
2) If a | band a | c, then a | (xb + yc).
Proof: We assume that a | b and a | c. Then
means
b = ka for some k is integer (1)
c = ta for some t is integer (2)
Goal: a | (xb + yc) or
(xb + yc) = (some integer) a
xb + yc = xka + yta
= (xk + yt) a
We can say that
Let b be an integer.
6743132157654121246513252064632146436
6446546431564654356546464788899878
Divisible by
2
DIVISIBILIT
Y for 4, 5, 6, 7
and 8
NUMBERT THEORY
Theorem: (criterion of Divisibility by 4)
Let b be an integer
4 | b if an only if the number formed by last
two digits of b is divisible by 4.
Let b be an integer
4 | b if an only if the number formed by last
two digits of b is divisible by 4.
65719346652124321316576125756
Let b be an integer.
5 | b if and only if the last digits of b is 0 or 5.
Example: Check whether 5 | b, where
b = 2971356431246313165410
Let b be an integer.
6 | b if and only if 2 | b and 3 | b.
b = 28844548423436046
We first check 2 | b. We only need to check the
last digit. The last digit is 6.
We now check that 3 | b. We add the digits of b =
28844548423436046 distinct from 0, 3, 6, and 9
2+8+8+4+4+5+4+8+4+2+4+4=57
Then 3 | b.
28844548423436046
Theorem: (Criterion of Divisibility by 7)
Let b be an integer.
7 | b if and only if the number x-2y is
divisible by 7 where
273 3 27 21
Theorem: (Criterion of Divisibility by 8)
Let b be an integer.
8 | b if and only if the number by last three
digits of b is divisible by 8.
Example: Check whether 8 | b, where 8 | b,
where b = 3978469376
We look at the three digits of b : 376
376/2=188 188/2=94 94/2=47
Automaton of
Divisibility by
3
NUMBERT THEORY
We can check for divisibility graphically using
an automaton.
There are several components of this
“automaton”
₼
Step 5: Label the edges in step 4 with “x10”.
Example: Construct an automaton of divisibility by 4
Step1: Draw n=4 distinct notes and label them 0, 1, 2, 3.
3 1
2
Example: Construct an automaton of divisibility by 4
Step 2: the directed edges are 0 → 1, 1 → 2, 2 → 3, 3 → 0
3 1
2
Example: Construct an automaton of divisibility by 4
Step 3: Label the edges in step 2 with “+1”.
0
+1 +1
3 1
+1 2 +1
Example: Construct an automaton of divisibility by 4
Step 4: Draw a directed edge (arrow) i → (10 i) mod n for i
{0, 1, 2, …, (n-1)}
₼
In this case n = 4, so i → (10 i) mod 4 For i {0, 1, 2, 3}
0
+1 +1
3 1
+1 2
+1
Example: Construct an automaton of divisibility by 4
Step 5: Label the edges in the step 4 with “x10”.
x10
0
+1 +1
x10
3 1
x10 x10
+1 2
+1
Example: Determine whether 4 | 12 using the Automation of
Divisibility of 4.
x10
0
+1 +1
x10
3 1
x10 x10
+1 2
+1
Fundamental
Theorem of
Arithmetic
NUMBERT THEORY
Given any integer n > 1, there exist a positive integer k.,
distinct prime numbers p1, p2, p3, …,pk, and positive integers
e1, e2, e3, … , ek such that
n = p1e1●p2e2 ●p3e3…..pkek
and any other expresion for n as a product of prime numbers is
identical to this except, perhaps, for the order in whcich the
factors are written.