Some Special Numbers
Some Special Numbers
Some Special Numbers
NUMBER THEORY
UNIT 4 SOME SPECIAL NUMBERS
1. Introduction
In the previous units we have come across various properties of the integers. The theory is so
rich that many variations are possible and many questions can be asked. One of the most famous
problems in contemporary mathematics is the fascinating Fermat’s Last Theorem, which we
introduced in the previous unit.
As we remarked in the introduction, there are many different ways to classify integers, into
primes and composites, according to divisibility, etc. In this unit we shall briefly look at some
special types of numbers. We will also state some unsolved problems and conjectures.
2. Triangular Numbers
The triangular numbers are so called because of the following arrangement of dots which
forms triangular arrays:
Page 1 of 11
Mathematical Database
Using the formula for the sum of the terms of an arithmetic sequence, we see that the n-th
triangular number is equal to
n(n + 1)
.
2
Example 2.1.
Prove that the sum of two consecutive triangular numbers is a perfect square.
Solution.
Consider the n-th and (n + 1) st triangular numbers. They are equal to
n(n + 1) (n + 1)(n + 2)
and
2 2
The fact that the sum of two consecutive triangular numbers is a perfect square can be
illustrated geometrically as follows:
Example 2.2.
Prove that infinitely many triangular numbers are perfect squares.
Solution.
We want to find positive integers n for which
n(n + 1)
= k2
2
for some positive integer k. Suppose such n exists, then replacing n by 4n 2 + 4n , we have
Page 2 of 11
Mathematical Database
2 2
which is also a perfect square. Now when n = 1 , we get the triangular number 1 which is a perfect
square. Replacing n by 4n 2 + 4n successively, we get infinitely many triangular numbers which are
perfect squares, with n = 1, 8, 288, 332928, …
3. Twin Primes
Illustrations. 5 and 7 are twin primes. 101 and 103 are twin primes.
The question of whether there are infinitely many twin primes remains an open problem. The
largest twin primes known to date are
665551035 × 280025 ± 1 ,
Example 3.1.
The number 5 appears in two pairs of twin primes, since 3, 5 are twin primes, and 5, 7 are twin
primes. Is there another number with the same property?
Solution.
The answer is no.
Suppose there is such a number p.
Then p − 2 and p are twin primes, and p and p + 2 are twin primes.
Page 3 of 11
Mathematical Database
4. Fermat Primes
Suppose 2m + 1 is a prime number for some positive integer m. What can we say about m? For
example, can m be divisible by 3? Well, if m = 3k , then we have
2m + 1 = 23k + 1 = ( 2k + 1)( 22 k − 2k + 1)
22 + 1
n
for some non-negative integer n. If a Fermat number is prime, then it is called a Fermat prime.
primes.
The Fermat numbers are so-called because Fermat once conjectured that all numbers of the
form 22 + 1 are prime numbers, and this is illustrated above for the cases n = 0, 1, 2, 3, 4.
n
Unfortunately, these are the only known Fermat primes so far. In fact, we have
22 + 1 = 641× 6700417 ,
5
Page 4 of 11
Mathematical Database
Example 4.1.
Let Fn denote the Fermat number 22 + 1 . Show that there are infinitely many n such that Fn + 2 is
n
not prime.
Solution.
We will show that 7 | Fn + 2 whenever n is odd.
Note that 23 ≡ 1 (mod 7). When n is odd, 2n ≡ (−1) n = −1 ≡ 2 (mod 3), so 22 ≡ 22 = 4 (mod 7).
n
Example 4.2.
Let Fn denote the Fermat number 22 + 1 . Show that for n > 1 , the unit digit of Fn is 7.
n
Solution.
When n > 1 , 2n = 4k for some integer k.
5. Perfect Numbers
Things are rarely perfect, and perfect numbers are rare. In fact, the next four perfect numbers
already get enormously large: 496, 8128, 33550336, 8589869056. Whether there are infinitely
Page 5 of 11
Mathematical Database
many perfect numbers remains an open problem, but it can be shown (which we leave as an
exercise) that if
1 + 2 + 22 + " + 2k −1 = 2k − 1
is prime, then 2k −1 (2k − 1) is a perfect number. Moreover, it has been proved that every even perfect
number can be expressed in this form.
So far no odd perfect number is known, nor has it been proved that no odd perfect numbers
exist.
Example 5.1.
(IMO 1998 HK Team Selection Test 2) Recall that n is perfect if the sum of the divisors of n is 2n.
Suppose now n is an odd perfect number, show that n has at least 3 distinct prime factors.
Solution.
For positive integer k, let σ (k ) denote the sum of the positive factors of k.
Suppose n only has one prime factor, say n = p a . Then we have
σ ( n) σ ( p a ) 1 + p + " + p a 1 1 1 p
2= = = = 1+ +" + a < = < 2,
n p a
p a
p p 1 p −1
1−
p
which is a contradiction. Similarly, if n has only two prime factors, say n = p a q b , then
which is again a contradiction. It follows that n must have at least three distinct prime factors.
6. Mersenne Primes
1 + 2 + 22 + " + 2k −1 = 2k − 1
is prime, then 2k −1 (2k − 1) is a perfect number. Moreover, every even perfect number is of this form.
Hence, searching for even perfect numbers is equivalent to searching for primes of the form 2n − 1 .
Page 6 of 11
Mathematical Database
We also remarked that whether there are infinitely many perfect numbers remains unknown. This
essentially means that whether there are infinitely many primes of the form 2n − 1 is also unknown.
2n − 1
where n is a positive integer. If a Mersenne number is prime then it is called a Mersenne prime.
Hence, if we can find a Mersenne prime, we can find a perfect number. In Section 4, we
studied primes of the form 2m + 1 , and remarked that it is prime only if m is a power of 2. By a
similar reasoning, we can deduce that if 2n − 1 is prime, then n itself must be prime. The details are
left as an exercise.
Till February 2003 only 39 Mersenne primes are known. The largest Mersenne prime known
to date is 213466917 − 1 , discovered in November 2001, and this corresponds to the perfect number
213466916 (213466917 − 1)
It might be interesting to note that the majority of known large primes are Mersenne primes.
This is because there exists an efficient algorithm, known as the Lucas-Lehmer test, to test
whether a Mersenne number is prime. This is given below.
Page 7 of 11
Mathematical Database
a1 = 4 , an +1 = an 2 − 2 for n ≥ 1 .
The simplicity of the test lies in the fact that we need only compute the sequence {an } (mod
M p ). For instance, when p = 7 , we have M p = 27 − 1 = 127 , and we check that
a1 ≡ 4 (mod 127)
a2 ≡ 42 − 2 = 14 (mod 127)
a3 ≡ 142 − 2 ≡ 67 (mod 127)
a4 ≡ 67 2 − 2 ≡ 42 (mod 127)
a5 ≡ 422 − 2 ≡ −16 (mod 127)
a6 ≡ (−16) 2 − 2 ≡ 0 (mod 127)
7. Pythagorean Triples
In the exercises of Unit 3, we came across the Pythagorean triples and studied some of their
properties. Here we give more details and we will look at some more examples.
The origin of the name ‘Pythagorean triples’ should be clear, for if (a, b, c) is a Pythagorean
triple, then we can form a right-angled triangle of sides a, b and c, and the relation a 2 + b 2 = c 2
follows from the Pythagoras’ Theorem. Having a right-angled triangle is nothing special, but it
would be more fascinating if all its sides have integer length. Conversely, if we have a right-angled
triangle of integer side lengths a, b, c, where c is the hypotenuse, then (a, b, c) is a Pythagorean
triple.
Page 8 of 11
Mathematical Database
It would be desirable if we can find a way of generating Pythagorean triples. The steps below
show one of these ways.
(4) The original number in (1) together with the two ‘parts’ in (3) form a Pythagorean
triple and is a primitive solution, i.e. (3, 4, 5) is a Pythagorean triple and is a
primitive solution.
We leave it to the readers to verify that such a procedure indeed generates what we want. Since
we can start with any odd positive integer greater than 1, we can have as many Pythagorean triples
as we want.
Unfortunately, the above procedure does not give us all the primitive solutions. For instance,
(8, 15, 17) is a primitive solution, but it cannot be generated from the above procedure. (Why not?)
where u, v are relatively prime integers of opposite parity and u > v , is a primitive solution.
Conversely, every primitive solution is of this form. Readers who did not attempt this problem
should try it at this point. Indeed, the primitive solution (8, 15, 17) corresponds to u = 4 and v = 1 .
Finally, we illustrate the power of Pythagorean triples by one famous example of Diophantine
equations.
Example 7.1.
Find all positive integers (x, y, z) for which 3x + 4 y = 5z .
Page 9 of 11
Mathematical Database
Solution.
Clearly, x = y = z = 2 is one solution. We will show that no other solution exists.
As the two factors on the right differ by 2 and are both powers of 3, they must be 1 and 3.
Hence we must have 2 y−1 = 2 , and thus the only solution is x = y = z = 2 .
8. Exercises
Page 10 of 11
Mathematical Database
3. Let p and q be twin primes other than 3 and 5. Prove that pq + 1 is a perfect square and is
divisible by 36.
Using the fact that 5 × 27 ≡ −1 (mod 641), or otherwise, show that 22 + 1 is divisible by 641.
5
5.
7. Show that if
1 + 2 + 22 + " + 2k −1 = 2k − 1
is prime, then 2k −1 (2k − 1) is a perfect number.
8. (a) Show that an even perfect number must have unit digit 6 or 8.
(b) We have seen that the first two perfect numbers are 6 and 28. Show that any other even
perfect number must either end with 6 or 28.
13. Find a right-angled triangle whose side lengths are relatively prime integers between 1000 and
2000.
Page 11 of 11