Professional Documents
Culture Documents
Overview
Part 7: Number Theory Part 2. This chapter provides an in-depth exploration of various
fundamental concepts in number theory. It delves into modular exponentiation, a crucial
technique for efficiently computing large powers in modular arithmetic. The chapter also
focuses on the study of primes, discussing their unique characteristics and importance in
encryption algorithms and other areas. Furthermore, it explores the concepts of greatest
common divisors and least common multiples.
BACK NUMBER THEORY 02
Objectives
After completing this chapter, you should be able to :
• Employ modular exponentiation as a crucial technique for efficiently computing large powers
in modular arithmetic.
• Appreciate the significance of prime numbers in encryption algorithms and other relevant
areas.
• Apply knowledge of greatest common divisors and least common multiples to solve related
mathematical problems.
BACK NUMBER THEORY 03
• Modular Exponentiation
Content
• Primes
• Greatest Common Divisors
• Least Common Multiples
BACK NUMBER THEORY 25
Modular Exponentiation
BACK NUMBER THEORY 26
Modular Exponentiation
• In cryptography it is important to be able to find b n mod m efficiently
without using an excessive amount of memory, where b, n, and m are
large integers.
• It is impractical to first compute bn and then find its remainder when
divided by m, because bn can be a huge number and we will need a huge
amount of computer memory to store such numbers.
• Instead, we can avoid time and memory problems by using an algorithm
that employs the binary expansion of the exponent n.
BACK NUMBER THEORY 27
Example :
Find 3644 mod 645.
BACK NUMBER THEORY 28
This shows that following the steps of the Algorithm produces the result 3 644 mod 645 = 36.
BACK NUMBER THEORY 30
Primes
BACK NUMBER THEORY 31
Primes
• Every integer greater than 1 is divisible by at least two integers, because a
positive integer is divisible by 1 and by itself. Positive integers that have
exactly two different positive integer factors are called primes.
• A positive integer that is greater than 1 and is not prime is called
composite.
BACK NUMBER THEORY 32
Primes
Example :
The integer 7 is prime because its only positive factors are 1 and 7, whereas
the integer 9 is composite because it is divisible by 3.
BACK NUMBER THEORY 34
Solution :
The positive common divisors of 24 and 36 are 1, 2, 3, 4, 6, and 12. Hence,
gcd(24, 36) = 12
BACK NUMBER THEORY 37
Solution :
A = 287, B = 91
287 mod 91 = 14; A = 91, B = 14
91 mod 14 = 7; A = 14, B = 7
14 mod 7 = 0; A = 7, B = 0
Solution :
We have
lcm(233572, 2433) = 2max(3, 4)3max(5, 3)7max(2, 0) = 243572
BACK NUMBER THEORY 34
Unit Summary
You should now be able to :
• Employ modular exponentiation as a crucial technique for efficiently computing large powers
in modular arithmetic.
• Appreciate the significance of prime numbers in encryption algorithms and other relevant
areas.
• Apply knowledge of greatest common divisors and least common multiples to solve related
mathematical problems.
Question & Answer
BACK 2023