Unit 5: Introduction to Number Theory
Introduction to Number Theory
Number theory is a branch of mathematics focused on the study of integers and the relationships between them. It has a rich history and finds applications in cryptography, coding theory, and algorithms. In this unit, we will explore key concepts such as divisibility, greatest common divisor (GCD), Euclidean algorithms, prime factorization, modular arithmetic, and key theorems like Fermat’s Little Theorem, Euler’s Theorem, and the Chinese Remainder Theorem. The primary objective of this unit is to build a strong understanding of integers and their properties through the study of divisibility, primes, and modular arithmetic.
Divisibility of Integers
Properties of Divisibility
Divisibility refers to one integer being divisible by another without leaving a remainder. Formally, for two integers and , we say that divides (written as ) if there exists an integer such that . The properties of divisibility include:
- Reflexive Property: Any integer divides itself, i.e., .
- Transitive Property: If and , then .
- Antisymmetric Property: If and , then .
These properties are fundamental in understanding the structure of integers and are used throughout number theory.
Division Algorithm
The division algorithm states that for any two integers and (with ), there exist unique integers and such that:
Here, is called the quotient, and is the remainder. This is the foundation of many number-theoretic algorithms, including the Euclidean algorithm for finding the greatest common divisor (GCD).
Greatest Common Divisor (GCD) and its Properties
Definition of GCD
The greatest common divisor (GCD) of two integers and is the largest integer that divides both and . It is denoted as . For example:
Properties of GCD
- Commutative Property:
- Associative Property:
- Distributive Property:
The GCD plays a critical role in solving problems related to divisibility, fractions, and modular arithmetic.
Euclidean Algorithm
The Euclidean algorithm is an efficient method for finding the greatest common divisor (GCD) of two integers. It is based on the principle that:
Where is the remainder when is divided by . The algorithm proceeds by repeatedly applying this rule until the remainder is zero. The last non-zero remainder is the GCD.
Example: To find using the Euclidean algorithm:
Thus, .
Extended Euclidean Algorithm
The extended Euclidean algorithm not only computes the GCD of two integers and but also expresses the GCD as a linear combination of and . Specifically, it finds integers and such that:
This is useful in solving Diophantine equations and finding modular inverses.
Example: For and , the extended Euclidean algorithm gives:
Thus, and .
Prime Factorization Theorem
The prime factorization theorem, also known as the fundamental theorem of arithmetic, states that every integer greater than 1 can be uniquely factored into prime numbers, up to the order of the factors. For example:
This theorem underpins much of number theory, including the study of divisibility, GCD, and LCM (least common multiple).
Importance of Prime Factorization
Prime numbers are the building blocks of integers, and their unique factorization property is essential in various algorithms, including cryptographic algorithms like RSA.
Congruence Relation
Definition of Congruence
For integers , , and (with ), we say that is congruent to modulo , written as:
If divides . In other words, and leave the same remainder when divided by .
Properties of Congruences
- Reflexive Property:
- Symmetric Property: If , then
- Transitive Property: If and , then
Congruence relations are essential in modular arithmetic and number-theoretic algorithms.
Modular Arithmetic
Modular arithmetic is a system of arithmetic for integers, where numbers "wrap around" after reaching a certain value called the modulus. It is often described as "clock arithmetic."
Basic Operations
- Addition:
- Subtraction:
- Multiplication:
- Exponentiation:
These operations obey many of the same rules as regular arithmetic but are constrained by the modulus. Modular arithmetic is widely used in cryptography, particularly in algorithms like RSA.
Euler Phi Function
The Euler Phi function counts the number of integers less than or equal to that are relatively prime to . If is a prime number , then:
For example, , since the numbers 1, 2, 3, and 4 are all relatively prime to 5.
If is a product of two distinct primes and , then:
The Euler Phi function is used in Euler’s Theorem and many other applications in number theory.
Euler’s Theorem
Euler’s Theorem states that if is an integer coprime to , then:
This theorem is a generalization of Fermat’s Little Theorem and is crucial in modular arithmetic and cryptography.
Fermat's Little Theorem
Fermat’s Little Theorem states that if is a prime number and is an integer not divisible by , then:
This theorem is widely used in number theory, especially in primality testing and cryptographic algorithms.
Additive and Multiplicative Inverses
Additive Inverse
For any integer , the additive inverse is the integer that, when added to , results in zero. In modular arithmetic, the additive inverse of is .
Multiplicative Inverse
The multiplicative inverse of an integer modulo is an integer such that:
The multiplicative inverse exists if and only if and are coprime ().
Chinese Remainder Theorem
The **Chinese Remainder
Theorem** provides a way to solve systems of simultaneous congruences with different moduli. It states that if are pairwise coprime, then the system:
has a unique solution modulo .