Numbertheorynotes PDF
Numbertheorynotes PDF
Abstract. This paper presents theorems proven by the Number Theory class of the
2013 Summer Program in Mathematical Problem Solving. An appendix is included with
a table giving the number of divisors of various natural numbers. The ideas in this paper
were created by Tiffany Baez, Seth Guasp, Janequa Mason, Felix Perez, Vielka Rankin,
Agustin Read, Jayden Reaves, Christian Rosado, Thalyia Thompson, and Pamela Vargas.
The paper was edited by Ben Blum-Smith.
1. Divisor Counting
Proof. If the number is not a square, then the factors all come in pairs, thus there are an
even number of them.
If the number is a square, all of the factors are in pairs except the square root. So the total
number of factors is odd.
Theorem 2. 1 is the only natural number with only one divisor.
Proof. First, 0 has infinitely many divisors because every nonnegative integer is a divisor
of zero, because for all x, 0 · x = 0.
Secondly, if n 6= 0, then for any m > n, m is not a divisor of n. Therefore, all the divisors
of n lie between 1 and n. So there cannot be infinitely many.
2. Squares
Theorem 4. The differences between consecutive square numbers are consecutive odd num-
bers. More specifically,
(n + 1)2 − n2 = n + (n + 1) = 2n + 1
1
2 BY THE SPMPS 2013 NUMBER THEORY CLASS
Proof.
(n + 1)2 = (n + 1)(n + 1)
= n2 + n + n + 1
= n2 + 2n + 1
Therefore,
(n + 1)2 − n2 = (n2 + 2n + 1) − n2 = 2n + 1
Since every odd number 3 and up has the form 2n + 1 for some natural number n, this
means every odd number 3 and up occurs as a difference of squares.
Here is a consequence of this:
Theorem 5. There are infinitely many square numbers that are the sum of two other
square numbers.
Proof. Each odd square number will eventually occur as the difference between two con-
secutive squares because all odd numbers 3 and up occur this way because of theorem 4.
In other words, if m is odd and at least 3, then m2 is odd, so that
m2 = 2n + 1
for some nonnegative integer n.
But then by the last result, (n + 1)2 − n2 = 2n + 1 = m2 , so
m2 + n2 = (n + 1)2
Since this works for any choice of odd m ≥ 3, this gives us an infinite list of squares (n+1)2
that are sums of two other squares.
3. Primes
Proof. For any choice of n, one of n or n + 1 will be even. The only even prime number
is 2. Every other even number is composite. So, if n > 2, then so is n + 1, therefore, the
even one is composite.
Theorem 7. Except for 2 and 3, all prime numbers are 1 or 5 mod 6.
NUMBER THEORY 3
Proof. Suppose x ≥ n/2 but x 6= n. Then x · 2 > n because x > n/2. And x · 1 6= n
because x 6= n. And x · anything bigger than 2 > x · 2 > n. Also, x · 0 6= n because n 6= 0.
Therefore there is no number that times x is n. Therefore x is not a factor of n.
Corollary 1 (First primality test). To check if a number n is prime, divide n by every
natural number > 1 and ≤ n/2. If each division gives a non-whole answer, then n is prime.
Proof. Theorem 8 shows that no natural number > n/2 can be a divisor of n except n
itself. If all the divisions in the test give a non-whole answer, this also shows that no
natural number from 2 to n/2 can be a divisor. This implies that the only divisors of n
can be 1 and n. Therefore n is prime.
Theorem 9. 127 is prime.
This shows that 947 is not divisible by any number from 2 to 30. Thus the smallest possible
proper factorization a · b that is possible is 31 · 31. But this is 961, which is bigger than
947. So no proper factorization is possible. Thus 947 is prime.
The method used in these proofs can be generalized to create a better primality test than
the one described in corollary 1.
Theorem 11 (Existence of factorizations). Every composite number can be expressed as
a product of two or more prime numbers.
4. Appendix