Integer Divisibility: Lecture 1 (Out of Seven)
Integer Divisibility: Lecture 1 (Out of Seven)
Integer Divisibility: Lecture 1 (Out of Seven)
Adamchik 1
Integer Divisibility
Victor Adamchik
Fall of 2005
Plan
1. Basics of divisibility
2. Prime numbers
3. Perfect numbers
Notations
- set of integers
- set of positive integers (also , also )
- set of nonnegative integers (also 0 )
- logical AND
- logical OR
- exist (existential quantifier)
! - exist exactly one (unique existential quantifier)
- any (universal quantifier)
x - integer part of x (or the floor function)
Basics of divisibility
In this chapter, we will discuss the divisibility of integers, the set of integers is denoted by . We
will give a few detailed proofs of some of the basic facts about divisibility. Most of the properties
are quite obvious, but it is still a good idea to know how to prove them.
Definition.
An integer b 0 divides another integer a iff k that a k b.
V. Adamchik 21-127: Concepts of Mathematics
Example. 3 12 but 5 12
Exercise. Let a and b be positive integers and a b. How many positive integers not
exceeding a are divisible by b? In other words, find such c that b c a and b c
Solution. All numbers divisible by b are in the form b k, where k . They are positive and do
not exceed a,
a
0 b k a or 0 k b
(1) 1 a, 1 a and a 0.
(2) Reflexivity: a a.
(3) Transitivity: a b b c a c.
(4) Not-quite antisymmetry: a b b a a b a b.
(5) if a b a c a n b m c for any integers n and m
Proof.
a a a 1 a a
and therefore x y 1 (there are no zero-divisors in the integers). It follows that either y x 1
or y x 1. But x 1 implies a b, and x 1 implies b a.
V. Adamchik 3
Consider n b m c
nb mc xan y am a xn ym a nb mc
It follows
a nb mc
Application of Theorem 2.
Do there exist integers x, y, and z such that 6 x 9y 15 z 107?
Since 3, 6 and 9 has a common divisor 3 than 3 must divide its linear combination
3 6x 9y 15 z 3 107 which is wrong.
20
15
10
Primes
Observation. Every positive integer has at least two divisors: 1 and itself
Definition. Integer p 1 is called a prime if its only positive divisors are 1 and p.
Otherwise it is called a composite.
V. Adamchik 21-127: Concepts of Mathematics
The number 1 is a special case which is considered neither prime nor composite
Define
p p1 p2 … pn 1.
But then, there is some prime that divides p. Since our list is supposedly complete that prime must
be, say, pr .
We have that pr p
pr p
pr p p1 p2 … pn pr 1
pr p1 p2 … pn
But then pr 1.
A contradiction.
QED - end of proof ("quod erat demonstrandum").
Sieve of Eratosthenes:
(Greek astronomer, 195BC)
Write down the integers from 2 to the highest number n you wish to include in the table. Cross out
all numbers 2 which are divisible by 2. Cross out all numbers 3 which are divisible by 3,
then by 5 and so on. Continue until you have crossed out all numbers divisible by n .
V. Adamchik 5
Why do we stop at n ?
Because the next number to cross must be n since we cross all numbers with divisors n .
Observation:
6 3 3
7 5 2
8 5 3
9 7 2
10 7 3
18 11 7
Goldbach made the conjecture that every odd number > 5 is equal to the sum of three primes.
Euler replied that Goldbach's conjecture was equivalent to the statement that every even number >
2 is equal to the sum of two primes.
p1 p2 2n
It is known to be true for for numbers through 6 1016 (checked numerically in 2003)
Mersenne numbers
For some years, people believed that if p is prime, then so is 2 p 1:
22 1, 23 1, 25 1, ...
211 1 2047 23 89
Mersenne Conjecture (15 century, by French monk Marin Mersenne) 2 p 1 is prime for
p 2, 3, 5, 7, 13, 17, 19, 31, 67, 127 , 257 and composite for all other positive integers p < 257.
V. Adamchik 21-127: Concepts of Mathematics
It took a few of centuries to show that the conjecture was wrong. Only in 1947 the range up to 258
was checked! It turned out that
225,964,951 1
Proof. By contradiction - we assume that 2 p 1 is prime, but p is not prime. Let p be a composite
number, p r s. Consider the following polynomial
xr s
1
It can be written as
xr s 1 xs 1 xs r 1 xs r 2 ... xs 1
Perfect numbers
Definition. An positive integer is a perfect number if it equals the sum of its proper divisors (not
including itself).
6=1+2+3
28 = 1 + 2 + 4 + 7 + 14
496 = 1 + 2 + 4 + 8 + 16 + 31 + 62 + 124 + 248
8128 = ...
V. Adamchik 7
Question. What is the next perfect number? It seems it should not be a problem to answer this by
writing Java or C program.
This question is much much harder.... It is not known if any odd perfect numbers exist.
6=1+2+3 =2*3
28 = 1 + 2 + 3 + 4 + 5 + 6 +7 = 4 * 7
496 = 1 + 2 + 3 +... + 31 = 16 * 31
Generally,
2n 1
2n 1 , when n is prime
This is a relation between the perfect and the Mersenne primes. So the search for Mersenne primes
is also the search for even perfect numbers!