- Primes
- Fundamental Theorem of Arithmetic
- Congruences
- Additive Number Theory
- Recreational Number Theory
- Algebraic Number Theory
- Combinatorial Number Theory
Primes
Primes are numbers divisible by 1 and itself, such as 2, 3, 5.
How many primes are there? There are infinitely many primes. Proven as follows:
- Suppose there are finitely many
- Find .
- Let be a prime factor of this number. It cant divide any prime known so far, because that would mean it should divide 1 too. So, is a new prime.
How can we find large primes? Mersenne primes are in the form for prime . There are also Fermat primes, of the form . Gauss discovered that regular polygons with the number of sides equal to a Fermat prime can be constructed using a ruler and compass.
Note that
If odd, then divides .
Is there an easy way to generate large primes? In other words, is there a non-constant polynomial such that the result is a prime? NO! To prove, suppose you have . If then is composite. If , then you can find that has the same argument.
How many primes are there up to a given value? This is famously shown as . Gauss found that . Informally, a number has a chance of being prime with probability .
Suppose we want to find prime powers too, where is counted as . Denote this as . Let (limit integral). Riemann amazingly found that:
where is the zeros of the Zeta function! By the way, throughout this course always refers to the natural logarithm.
Fundamental Theorem of Arithmetic
Every integer is a product of primes in a unique way (up to order). Euler interpreted this as a factorization of the Zeta function:
This makes a lot of sense if you think the geometric series of the product terms:
You can choose for example , and 1 everywhere else, to obtain . This also provides a proof or infinitude of primes: is a diverging harmonic series. So, the product should also be infinite, which requires infinitely many primes!
Diophantine Equations
These are the equations where we seek integer solutions.
- (Pythagoras)
- which means find . This surprised ancient Greek people who thought all numbers were rational!
- for and . (Fermat's Last Theorem)
It turns out that finding solutions to most Diophantine Equations are hard.
Hilbert's 10th problem asks: Is there an algorithm to solve all Diophantine Equations?
The answer turned out to be no! (Robinson, Davies, Putnam, and later Matiyasevich).
Congruences
Question: Is 1234567 a square?
No, because the last digit is not possible to be 7 for square numbers. So we kind of look at the number in modulo 10. Modulo is really useful in these kind of questions. We write them as:
This notation is by Gauss, and it means that is divisible by . In other words, .
Question: Can you solve ?
You can realize that . Then . So, the number can not have 3 as the last digit, thus the equation does not have any integer solutions.
Fermat's Little Theorem
Fermat's little theorem is an awesome little theorem, that states:
Euler also found that for coprime and number of integers less than an coprime to . For example:
Suppose you want to test if is prime for very large . We can check if (which can be done efficiently).
- If not, then is definitely not a prime.
- If yes, then we do not know, but it could be a prime.
For Diophantine equations, if then . The reverse is not always true, and Hasse Principle describes that. If the latter turns out to be true for all , then most likely .
Quadratic Residue
Can we solve for some prime ? Here, we refer to as the quadratic residue. Legendre symbol is a pretty useful notation about this:
Quadratic Reciprocity
Euler found a relationship between and for odd primes.
- if has an integer solution.
- if has an integer solution.
What Euler discovered is that:
- if or .
- if and and of course .
This indicates that there is an amazing hidden structure in this seemingly unrelated equations. Such a feeling happens a lot in Number Theory!
Question: Is 3 quadratic residue of 71?
This is asking if . We can check instead if . This is easy to find, as and 2 is not a square, so .
Additive Number Theory
Goldbach Conjecture: Is every even number a sum of 2 primes? Examples are , and so on. The answer: we don't know! Chen managed to show that every even number is a sum of prime and a product of two primes (),
Twin Prime Conjecture: Are there infinitely many primes such that is also prime? We don't know this too, but Zhang proved that and for in the order of millions will always have a prime.
Arithmetic Progressions: Can you find arithmetic progressions of primes, such as ? Dirichlet has shown that any arithmetic progression in the form has infinitely many primes.
Recreational Number Theory
Perfect Numbers: A perfect number is equal to the sum of its proper divisors. Example: .
Amicable Numbers: Two numbers are amicable if the sum of their proper divisors give each other, such as 220 and 284.
Collatz Conjecture: Suppose you map for odd and for even . Doing this repeatedly, do you always reach to 1 in the end for all ? We do not know yet!
Sum of Digits: Many examples are there for recreational mathematics concerning digit sums. For example, .
Algebraic Number Theory
As an example of algebraic number, consider for . These are called Gaussian Integers and they have a unique factorization. For example, . Notice that . Sum of squares turn out to be quite special.
Fermat has shown that a prime can be written as . Quite surprising.
Combinatorial Number Theory
An example would be partitioning. is the number of partitions that you can write as a sum of smaller integers. because there are 7 different ways to write
It turns out that is divisible by 5, for seemingly no reason at all. Looking at the sum of:
Euler discovered that this is equal to: