Professional Documents
Culture Documents
Sma3043 Elementary Number Theory SEMESTER 2 2020/2021: The Theory of Congruence
Sma3043 Elementary Number Theory SEMESTER 2 2020/2021: The Theory of Congruence
Sma3043 Elementary Number Theory SEMESTER 2 2020/2021: The Theory of Congruence
SEMESTER 2 2020/2021
Theorem 3
Example.
2
Some Applications of Congruence
Converse of Theorem 2 (e) - Part Two (Multiplication)
Proof.
3
Some Applications of Congruence
Converse of Theorem 2 (e) - Part Two (Multiplication)
Corollary 1
Example.
Let 14 84 (mod 7)
Where,
2(7) 2(42) mod 7 gcd (2,7) = 1
Then, 7 42 mod 7
4
Some Applications of Congruence
Converse of Theorem 2 - Part Two
Corollary 2
Example.
Let 14 84 (mod 7)
Where,
2(7) 2(42) mod 7 7 | 2, 7 is a prime
Then, 7 42 mod 7
5
Some Applications of Congruence
Congruence and Least Common Multiple (LCM)
Theorem 4
Example.
Let 24 16 mod 2
24 16 mod 4
24 16 mod 8
6
Some Applications of Congruence
Congruence and Least Common Multiple (LCM)
Corollary 3
Example
Let 60 30 mod 2
60 30 mod 3
60 30 mod 5
Where gcd(2,3,5) = 1
Then, 60 30 mod (2 . 3. 5)
30 mod 30.
7
Some Applications of Congruence
Arithmetic Inverse
Example.
i.
ii.
8
Representation of Positive Integers
Definition 3
9
Representation of Positive Integers
Decimal and Binary Representations of Positive Integers
• Up to now in your life, you’ve represented numbers using a decimal representation (the ten digits from 0,1, ... 9).
The reason 10 is special is that we have ten fingers. There is no other reason for using decimal. There is nothing
special otherwise about the number ten.
• Computers don’t represent numbers using decimal. Instead, they represent numbers using binary.
• In decimal, we write numbers using digits {0,1, . . . ,9}, in particular, as sums of powers of 10 (Example i).
• In binary, we represent numbers using bits {0,1}, in particular, as a sum of powers of two (Example ii.).
Example.
i.
ii.
10
Representation of Positive Integers
• To convert from a binary number to a decimal number we need to write the powers of 2 as
decimal numbers and then add up these decimal numbers.
11
Representation of Positive Integers
Decimal and Binary Representations of Positive Integers
• When m is already represented as binary number (i.e. “base 2”), the quotient and remainder
are trivial to obtain.
• The remainder is the right most bit – called the least significant bit (LSB).
• The quotient is the number with the LSB chopped off.
• Note that writing a positive integer as an n bit binary number means that we write it as a sum
of powers of 2,
Example
12
Representation of Positive Integers
Decimal and Binary Representations of Positive Integers
Solution.
Thus,
13
Representation of Positive Integers
Decimal and Binary Representations of Positive Integers
Example.
Compute 311 .
Solution.
Given the computations above,
only 3 more modular multiplications
produce 311 (mod m)
14
Representation of Positive Integers
Polynomial Functions
Theorem 5
Proof.
15
Representation of Positive Integers
Polynomial Functions
Note:
Corollary 4
16
Representation of Positive Integers
Integers Divisible by 9
Theorem 6
Proof. Example.
Note that,
117 =9 + 27 + 81
Since 9 + 27 + 81 0 mod 9,
Then
9 | 117.
17
Representation of Positive Integers
Integers Divisible by 3
Corollary 5
18
Representation of Positive Integers
Integers Divisible by 11
Theorem 7
19
Representation of Positive Integers
Integers Divisible by 9,3, and 11
Example.
20
Representation of Positive Integers
Integers Divisible by 9,3, and 11
Example.
Example.
21
Representation of Positive Integers
Decimal Digits
Example.
Solution.
22