Pint Prev
Pint Prev
PRIME NUMBERS 25
3. Prime Numbers
(135) Using computer software, write a program
(a) to generate all Mersenne primes up to 2525 − 1;
(b) to determine the smallest prime number larger than 10100 + 1.
(136) Write a program that generates prime numbers up to a given number N .
One can, of course, use Eratosthenes’ sieve.
(137) Use a computer to find four consecutive integers having the same number
of prime factors (allowing repetitions).
(138) (a) By reversing the digits of the prime number 1009, we obtain the num-
ber 9001, which is also prime. Write a program to find the prime numbers
in [1,10000] verifying this property.
(b) By reversing the digits of the prime number 163, we obtain the number
361, which is a perfect square. Using computer software, write a program
to find all prime numbers in [1, 10000] with this property.
(139) Using a computer, find all prime numbers p ≤ 10 000 with the property
that p, p + 2 and p + 6 are all primes.
(140) Let pk be the k-th prime number. Show that pk < 2k if k ≥ 2.
(141) If a prime number pk > 5 is equally isolated from the prime numbers
appearing before and after it, that is pk − pk−1 = pk+1 − pk = d, say, show
that d is a multiple of 6. Then, for each of the cases d = 6, 12 and 18, find,
by using a computer, the smallest prime number pk with this property.
(142) Prove that none of the numbers
practical interest:
⎡⎡ ⎤1/n ⎤
2n
⎢⎣
pn = 1 + ⎣
n
⎦ ⎥ ⎦,
m (j−1)!+1 (j−1)!
m=1 1+ j=2 j − j
where as usual [x] stands for the largest integer ≤ x. Prove this formula.
(149) Develop an idea used by Paul Erdős (1913–1996) to show that, for each
integer n ≥ 1,
p ≤ 4n .
p≤n
His idea was to write
p= p· p
p≤n p≤ n+1
2
n+1
2 <p≤n
and to use the fact that each prime number p > (n+ 1)/2 appears in the
n
factorization of the binomial coefficient . Provide the details.
(n + 1)/2
(150) Show that if four positive integers a, b, c, d are such that ab = cd, then the
number a2 + b2 + c2 + d2 is necessarily composite.
(151) Show that, for each integer n ≥ 1, the number 4n3 + 6n2 + 4n + 1 is
composite.
(152) Show that if p and q are two consecutive odd prime numbers, then p + q
is the product of at least three prime numbers (not necessarily distinct).
(153) Does there exist a positive integer n such that n/2 is a perfect square, n/3
a cube and n/5 a fifth power?
(154) Given any integer n ≥ 2, show that n42 − 27 is never a prime number.
(155) Let θ(x) := p≤x log p. Prove that Bertrand’s Postulate follows from the
fact that
c1 x < θ(x) < c2 x,
where c1 = 0.73 and c2 = 1.12.
(156) Use Bertrand’s Postulate to show that, for each integer n ≥ 4,
p2n+1 < p1 p2 · · · pn ,
where pn stands for the n-th prime number.
(157) Certain integers n ≥ 3 can be written in the form n = p + m2 , with p
prime and m ∈ N. This is the case for example for the numbers 3, 4, 6, 7,
8, 9, 11, 12, 14, 15, 16, 17, 18, 19, 20, 21. Let q r be a prime power, where
r is a positive even integer such that 2q r/2 − 1 is composite. Show that
q r cannot be written as q r = p + m2 , with p prime and m ∈ N.
(158) Show that if p and 8p − 1 are primes, then 8p + 1 is composite.
(159) Show that all positive integers of the form 3k + 2 have a prime factor of
the same form, that all positive integers of the form 4k + 3 have a prime
factor of the same form, and finally that all positive integers of the form
6k + 5 have a prime factor of the same form.
(160) A positive integer n has a Cantor expansion if it can be written as
n = am m! + am−1 (m − 1)! + · · · + a2 2! + a1 1!,
where the aj ’s are integers satisfying 0 ≤ aj ≤ j.
(a) Find the Cantor expansion of 23 and of 57.
3. PRIME NUMBERS 27
(b) Show that all positive integers n have a Cantor expansion and more-
over that this expansion is unique.
(161) If p > 1 and d > 0 are integers, show that p and p + d are both primes if
and only if
1 (−1)d d! 1 1
(p − 1)! + + +
p p+d p p+d
is an integer.
(162) Find all prime numbers p such that p + 2 and p2 + 2p − 8 are primes.
(163) Is it true that if p and p2 + 8 are primes, then p3 + 4 is prime? Explain.
(164) Let n ≥ 2. Show that the integers n and n + 2 form a pair of twin primes
if and only if
(177) Let p be a prime number and r a positive integer. What are the possible
values of (p, p + r) and of [p, p + r]?
(178) Let p > 2 be a prime number such that p|8a − b and p|8c − d, where
a, b, c, d ∈ Z. Show that p|(ad − bc).
(179) Show that, if {p, p + 2} is a pair of twin primes with p > 3, then 12 divides
the sum of these two numbers.
(180) Let n be a positive integer. Show that if n is a composite integer, then
n|(n − 1)! except when n = 4.
(181) For which positive integers n is it true that
n
n
j j?
j=1 j=1
(182) Let π = 3.141592 . . . be Archimede’s constant, and for each positive real
number x, let π2 (x) be the function that counts the number of pairs of
twin primes {p, p + 2} such that p ≤ x. Show that
π n! π (n − 2)!
π2 (x) = 2 + sin (n + 2) · sin n ,
2 n+2 2 n
7≤n≤x
where pj stands for the j–th prime number, are prime numbers for 1 ≤
k ≤ 5 and composite numbers for k = 6, 7. What about M8 , M9 and
M10 ?
(199) Use the proof of Euclid’s Theorem on the infinitude of primes to show
r−1
that, if we denote by pr the r-th prime number, then pr ≤ 22 for each
r ∈ N.
(200) In Problem 199, we obtained an upper bound for pr , the r-th prime num-
r−1
ber, namely pr ≤ 22 . Use this inequality to obtain a lower bound for
π(x), the number of prime numbers ≤ x. More precisely, show that, for
x ≥ 3, π(x) ≥ log log x.
(201) Show that there exist infinitely many prime numbers of the form 4n + 3.
(202) Show that there exist infinitely many prime numbers of the form 6n + 5.
(203) Let f : N → R be the function defined by
f (x) = ar xr + ar−1 xr−1 + · · · + a1 x + a0 ,
where ar = 0 and where each ai , 0 ≤ i ≤ r, is an integer. Show that, by
an appropriate choice of ai , 0 ≤ i ≤ r, the set {f (n) : n ∈ N} contains at
least r prime numbers.
(204) Consider the positive integers which can be written as an alternating
sequence of 0’s and 1’s. The number 101 010 101 is such a number and
observe that 101 010 101 = 41 · 271 · 9091. Besides 101, do there exist other
prime numbers of this form?
n
(205) Find all prime numbers of the form 22 + 5, where n ∈ N. Would the
question be more difficult if one replaces the number 5 by another number
of the form 3k + 2? Explain.
(206) The largest gaps between two consecutive prime numbers pr < pr+1 < 100
occur successively when
pr+1 − pr = 5 − 3 = 2,
pr+1 − pr = 11 − 7 = 4,
pr+1 − pr = 29 − 23 = 6,
pr+1 − pr = 97 − 89 = 8.
Is it true that these constantly increasing gaps always occur by jumps of
length 2? In other words, does the first gap of length 2k always occur
before the first gap of length 2k + 2?
∞
1
(207) Show that < 1, where the inner sum runs over all the prime
α=2 p
pα
numbers p.
(208) Let
1 1 1
f (x) = π(x) + π(x1/2 ) + π(x1/3 ) + π(x1/4 ) + · · · ,
2 3 4
be a series which is in fact a finite sum for each real number x ≥ 1 since
π(x1/n ) = 0 as soon as n > log x/ log 2. Show that
∞
µ(n)
π(x) = f (x1/n ).
n=1
n
3. PRIME NUMBERS 31
N + 2, N + 3, N + 4, . . . , N + p
are composite.
(215) Let n > 1 be an integer with at least 3 digits. Show that
(a) 2|n if and only if the last digit of n is divisible by 2;
(b) 22 |n if and only if the number formed with the last two digits of n is
divisible by 4;
(c) 23 |n if and only if the number formed with the last three digits of n
is divisible by 8.
Can one generalize?
(216) For each integer n ≥ 2, let
1
P (n) = 1− .
p
p|n
p>log n
in order to prove that if P (n) stands for the largest prime factor of n, then
1 √ 9 1
(3) #{n ≤ x : P (n) > x} = log 2 + T (x) with |T (x)| < .
x 2 log x
Use this result to show that more than 23 of the integers have their largest
prime factor larger than their square root, or in√ other words that the
density of the set of integers n such that P (n) > n is larger than 23 .
(221) Prove the following formula (due to Adrien-Marie Legendre (1752–1833)):
√ x
π(x) = π( x) + µ(n) − 1,
n
n|p1 ···pr
√
where r = π( x).
(222) Consider the following two conjectures:
A. (Goldbach Conjecture) Each even integer ≥ 4 can be written as the
sum of two primes.
B. Each integer > 5 can be written as the sum of three prime numbers.
Show that these two conjectures are equivalent.
(223) Show that π(m), the number of prime numbers not exceeding the positive
integer m, satisfies the relation
m
(j − 1)! + 1 (j − 1)!
π(m) = − ,
j=2
j j
Show that
d A = d A.
(226) We say that a sequence of natural numbers A is primitive if no element of
A divides another one. Examples of such sequences are: the sequence of
prime numbers, the sequence of natural numbers having exactly k prime
factors (k fixed), and finally the sequence of integers n belonging to the
interval ]k, 2k] (k fixed). Show that if A is a primitive sequence, then
d A ≤ 12 .
(227) Let A be a primitive sequence (see Problem 226). Show that
1
< +∞.
a log a
a∈A
√
(228) Let E = {a + b −5 | a, b ∈ Z}.
(a) Show that the sum and the product of elements of √ E are in E.
(b) Define the norm of an element z ∈ E by z = a+b −5 = a2 +5b2 .
We say that an element p ∈ E is prime if it is impossible to write
p = n1 n2 , with n1 , n2 ∈ E, n1 > 1, n2 > 1; we say that it is
composite if it is not prime. Show that, in E, 3 is a prime number
and 29 is a composite number.
(c) Show that the factorization of 9 in E is not unique.
(229) Let A be a set of natural numbers and let A(x) = #{n ≤ x : n ∈ A}.
Show that, for all x ≥ 1,
1 A(n) A(x)
= + .
n n(n + 1) [x] + 1
n≤x n≤x
n∈A
128 1001 PROBLEMS IN CLASSICAL NUMBER THEORY
Then,
n
(1)
n
(1) (3)
n
(2) (1)
n
(2) (3)
S= (aj )2 + aj aj + aj aj + aj aj = n.
j=1 j=1 j=1 j=1
∞
∞ r−1
8 · 9r−1 9
= =8 = 80,
r=1
10r−1 r=1
10
from which the result follows.
(134) If a > b, it is clear that a − b ≥ (a, b), and we know that (a, b)[a, b] = ab.
Hence, since
(un+1 − un )[un+1 , un ] ≥ (un+1 , un )[un+1 , un ] = un+1 · un ,
we obtain
1 un+1 − un 1 1
≤ = − .
[un+1 , un ] un+1 · un un un+1
Therefore the series is bounded above by a convergent series and this is
why it converges.
(135) (a) With Maple, we have > for i from 3 by 2 to 525 do
> if isprime(2∧ i-1)
> then print(2∧ i-1, ‘ is a prime number ‘)
> else fi; od;
(b) With Maple, we may use
> nextprime(10∧(100)+1);
We thus obtain the integer 10100 + 267.
(136) With Maple, the program below enumerates the first N (here N = 120)
prime numbers.
> for i to 120 do
> p.i :=ithprime(i) od;
For example, p.(1..120) gives the first 120 prime numbers.
SOLUTIONS 129
(137) In order to find four consecutive integers with the same number of prime
factors, we must use the function Ω. First we type in
> readlib(ifactors): with(numtheory):
and thereafter, we type in the following instructions:
> Omega:=n->sum(ifactors(n)[2][i][2],
> i=1..nops(factorset(n))):
> for n to 1000 do if Omega(n)=Omega(n+1) and
> Omega(n+1)=Omega(n+2) and Omega(n+2)=Omega(n+3)
> then print(n) else fi; od;
To find four consecutive integers having the same number of divisors, it
is enough to type in the instructions
> with(numtheory):
> for n to 1000 do
> if tau(n)=tau(n+1) and tau(n+1)=tau(n+2)
> and tau(n+2)=tau(n+3)
> then print(n) else fi; od;
(138) (a) With the procedure “return”, the search is easily done:
> return:=proc(n::integer)
> local m,s;
> m:=n; s:=0;
> while m<>0 do
> s:=10*s+irem(m,10);
> m:=iquo(m,10) od; s end:
And for our problem, we have the following procedure:
> invp:=proc(N::integer) local n;
> for n from 1 to N do if isprime(n)
> and isprime(return(n)) then
> print (n) fi; od; end:
Without the procedure “return”, we may proceed as follows:
> invp:=proc(N)
> for j from 169 to N do
> L:=convert(ithprime(j),base,10);# N <= 1229
> if type(1000*L[1]+100*L[2]+10*L[3]+L[4],prime)=true
> then print(ithprime(j)) else fi; od; end:
nk ≈ k log nk ≈ k log k,
which gives a starting point for the computation of the exact value of nk .
Using Mathematica and the program
Do[k = 10^j; n = Floor[N[k*Log[k]]];
While[r = Floor[N[Log[n]/Log[2]]];
s=Sum[PrimePi[n^(1/i)],{i,1,r}];(a=k-s)!=0,n=n+a];
Print[j,"->", n,"=",FactorInteger[n]],{j,3,10}]
we finally obtain the following table:
132 1001 PROBLEMS IN CLASSICAL NUMBER THEORY
α n10α α n10α
1 16 6 15 474 787
2 419 7 179 390 821
3 7 517 8 2 037 968 761
4 103 511 9 22 801 415 981
5 1 295 953 10 252 096 677 813
(145) If n is even, then 2n + n2 is also even and therefore not a prime. It follows
that n ≡ 1, 3 or 5 modulo 6. If n = 6k + 1 for a certain nonnegative
integer k, then 2n = 26k+1 ≡ 2 (mod 3) and n2 ≡ 1 (mod 3); in this case,
we have that 2n + n2 ≡ 2 + 1 ≡ 0 (mod 3). Similarly, if n = 6k + 5 for a
certain nonnegative integer k, we easily show that 3|2n + n2 . Therefore,
the only way that 2n + n2 can be a prime number is that n ≡ 3 (mod 6).
Thus, by considering all the positive integers n < 100 of the form
n = 6k + 3 and using a computer, we easily find that the only prime
numbers of the form 2n + n2 , with n < 100, are those corresponding to
n = 1, 9, 15, 21, 33.
(146) We will show that if n is of the form n = 3k + 1 or n = 3k + 2 with k ≥ 1,
then 7|an . Moreover, we will show that if n is of the form n = 3(3k + 1)
or n = 3(3k + 2) with k ≥ 1, then 73|an . Finally, since 3|an if n is even,
it will follow that, for an to be prime, n must be an odd multiple of 9.
So let n = 3k + a, with a = 1 or 2. Since 8k ≡ 1 (mod 7) for each
integer k ≥ 1, we have
an = 2n (2n + 1) + 1 = 23k+a (23k+a + 1) + 1
= 8k 2a (8k 2a + 1) + 1 ≡ 2a (2a + 1) + 1 (mod 7).
But
a a 7 ≡ 0 (mod 7) if a = 1,
2 (2 + 1) + 1 =
21 ≡ 0 (mod 7) if a = 2,
which establishes our first statement.
Let us now assume that n = 3(3k + a) with a = 1 or 2. Since 29 ≡ 1
(mod 73), we have
an = 2n (2n + 1) + 1 = 29k+3a (29k+3a + 1) + 1
= (29 )k 23a ((29 )k 23a + 1) + 1 ≡ 23a (23a + 1) + 1 (mod 73).
But
3a 3a 23 (23 + 1) + 1 = 73 ≡ 0 (mod 73) if a = 1,
2 (2 + 1) + 1 =
26 (212 + 1) + 1 = 4161 ≡ 0 (mod 73) if a = 2,
which establishes our second statement.
Having observed that an is prime for n = 1, 3 and 9, and then con-
sidering all the numbers of the form n = 9(2k + 1), we obtain using a
computer that an is composite for each integer n, 10 ≤ n < 1000.
(147) That number is n = 9; we then have a9 = 326981 = 79 · 4139.
(148) First observe that it follows from Wilson’s Theorem that
⎧
⎪⎨1 if j is prime,
(j − 1)! + 1 (j − 1)!
− =
j j ⎪
⎩
0 if j is composite.
SOLUTIONS 133
Hence, to obtain the formula of Minác and Willans, we only need to prove
that %
2n 1/n &
n
pn = 2 + .
m=2
1 + π(m)
But we easily prove that
⎧
% 1/n & ⎪
n ⎨1 if π(m) ≤ n − 1,
=
1 + π(m) ⎪
⎩
0 otherwise.
Now, as m varies from 2 to 2n , we have that π(m) ≤ n − 1 for m =
2, 3, . . . , pn − 1, that is a total of pn − 2 numbers. Therefore,
% 1/n &
2n
n
2+ = 2 + pn − 2 = pn ,
m=2
1 + π(m)
as was to be shown.
(149) We use an induction argument. The result is true for n = 1 and for n = 2.
So let n ≥ 3. Assume that the result is true for all natural numbers
≤ n − 1 and let us show that it implies that it must be true for n. Let
Pn = p≤n p. First of all, if n is even, then Pn = Pn−1 , so that the result
is true for n. Let us examine the case where n is odd, that is n = 2k + 1
for a certain positive integer k. It follows that each prime number p such
that k + 2 ≤ p ≤ 2k + 1 is a divisor of the number
2k + 1 (2k + 1)(2k)(2k − 1)(2k − 2) · · · (k + 2)
(∗) = .
k 1· 2 · 3···k
Since
2k + 1 2k + 1 2k + 1
22k+1 = (1 + 1)2k+1 > + =2 ,
k k+1 k
we obtain
2k + 1
< 4k .
k
It follows that the product of all the prime numbers p such that k + 2 ≤
2k + 1
p ≤ 2k + 1 is a divisor of and therefore smaller than 4k . On the
k
other hand, using the induction hypothesis, we have that Pk+1 ≤ 4k+1 .
This is why
Pn = P2k+1 = p· p < 4k+1 · 4k = 42k+1 = 4n ,
p≤k+1 k+2≤p≤2k+1
as was to be shown.
(150) Let m = (a, c). Then, there exist two integers u and v such that (u, v) = 1
and such that a = mu and c = mv. Hence, since ab = cd, we have
mub = mvd and therefore ub = vd. Since (u, v) = 1, we have u|d and this
is why there exists an integer n such that d = nu. Since ub = vnu, we
therefore have b = nv. It follows from these relations that
a2 + b2 + c2 + d2 = m2 u2 + n2 v 2 + m2 v 2 + n2 u2 = m2 (u2 + v 2 )
+n2 (u2 + v 2 ) = (u2 + v 2 )(m2 + n2 ),
134 1001 PROBLEMS IN CLASSICAL NUMBER THEORY
(161) (TYCM, Vol. 19, 1988, p. 191). The expression in the statement can be
written as
(p − 1)! + 1 (−1)d d!(p − 1)! + 1
+ .
p p+d
Since (p + d − 1)! = (p + d − 1)(p + d − 2) · · · (p + d − d)(p − 1)!, we
have (p + d − 1)! ≡ (−1)d d!(p − 1)! (mod p + d), and it follows that the
expression in the statement is an integer if and only if
(p − 1)! + 1 (p + d − 1)! + 1
(1) +
p p+d
is an integer. From Wilson’s Theorem, if p and p + d are two prime
numbers, then each of the terms of (1) is an integer, which proves the
necessary condition.
Conversely, assume that expression (1) is an integer. If p or p + d is
not a prime, then by Wilson’s Theorem, at least one of the terms of (1) is
not an integer. This implies that none of the terms of (1) is an integer or
equivalently neither of p and p + d is prime. It follows that both fractions
of (1) are in reduced form.
It is easy to see that if a/b and a /b are reduced fractions such that
a/b + a /b = (ab + a b)/(bb ) is an integer, then b|b and b |b.
Applying this result to (1), we obtain that (p + d)|p, which is impossi-
ble. We may therefore conclude that if (1) is an integer, then both p and
p + d must be primes.
(162) If p = 3, then p + 2 = 5 is prime and p2 + 2p − 8 = 7 is prime. It is the only
number with this property. Indeed, p = 2 does not have this property,
while if p > 3, then
p2 + 2p − 8 ≡ 1 + 2p − 2 ≡ 2(p + 1) ≡ 0 (mod 3) ⇐⇒ 3|(p + 1).
But for p > 3, p = 3k ± 1, and in each of the cases it is easily seen that at
least one of the two numbers p + 2 and p2 + 2p − 8 is not a prime.
(163) The answer is YES. If p = 3, then p2 + 8 = 17 is prime and p3 + 4 = 31 is
prime. It is the only prime number with this property. Indeed, p = 2 does
not have this property, while if p > 3, then p ≡ ±1 (mod 3), in which
case p2 ≡ 1 (mod 3), that is p2 + 8 ≡ 9 ≡ 0 (mod 3), so that p2 + 8 is not
a prime. Thus the result.
(164) (Ribenboim [28], p. 145). First assume that the congruence is satisfied.
Then n = 2, 4 and (n − 1)! + 1 ≡ 0 (mod n). Thus, using Wilson’s
Theorem, n is prime. Moreover, 4(n − 1)! + 2 ≡ 0 (mod n + 2); thus,
multiplying by n(n + 1) we obtain
4[(n + 1)! + 1] + 2n2 + 2n − 4 ≡ 0 (mod n + 2)
and therefore
4[(n + 1)! + 1] + (n + 2)(2n − 2) ≡ 0 (mod n + 2);
hence, 4[(n + 1)! + 1] ≡ 0 (mod n + 2). This is why, using Wilson’s
Theorem, n + 2 is also prime.
Conversely, if n and n + 2 are prime, then n = 2 and
(n − 1)! + 1 ≡ 0 (mod n),
(n + 1)! + 1 ≡ 0 (mod n + 2).
SOLUTIONS 137
But n(n + 1) = (n + 2)(n − 1) + 2, and this is why 2(n − 1)! + 1 = k(n + 2),
where k is an integer. From the relation (n − 1)! ≡ −1 (mod n), we
obtain 2k + 1 ≡ 0 (mod n). Now, 2(n − 1)! + 1 = k(n + 2) is equivalent to
4(n − 1)! + 2 ≡ 0 ≡ −(n + 2) (mod n + 2). Moreover, 4(n − 1)! + 2 ≡ 4k ≡
−2 ≡ −(n Hence, 4(n − 1)! + 2 ≡ −(n + 2) (mod (n(n + 2));
+ 2) (mod n).
that is 4 (n − 1)! + 1 + n ≡ 0 (mod n(n + 2)).
(165) The prime number p = 3 is the only one with this property, because if
p > 3, then p = 2k + 1 for a certain integer k ≥ 2, in which case
2p = 22k+1 = 4k · 2 ≡ 2 (mod 3)
while
p2 ≡ 1 (mod 3),
so that
2p + p2 ≡ 0 (mod 3).
(166) The answer is p = 19. Indeed, 17p + 1 = a2 ⇒ 17p = (a − 1)(a + 1). We
then have 17 = a − 1 and p = a + 1 or 17 = a + 1 and p = a − 1. The
first case yields a = 18 and p = 19, while the second case yields a = 16
and p = 15, which is to be rejected. Thus the result.
(167) (a) The possible values of (a2 , b) are p and p2 .
(b) The only possible value of (a2 , b2 ) is p2 .
(c) The possible values of (a3 , b) are p, p2 and p3 .
(d) The possible values of (a3 , b2 ) are p2 and p3 .
(168) (a) The only possible value is p3 .
(b) The only possible value is p.
(c) The only possible value is p.
(d) The possible values are p2 , p3 , p4 and p5 .
(169) We have (a2 b2 , p4 ) = p4 and (a2 + b2 , p4 ) = p2 .
(170) (a) True. (b) True. (c) True.
(d) False. Indeed, we have 13|22 + 32 and 13|32 + 22 , while 13 | 22 + 22 =
8.
(171) It is an immediate consequence of Theorem 12.
(172) Let ⎧
⎪
⎨a = p1 · · · pr ,
α1 αr
β1
b = p1 · · · pβr r ,
⎪
⎩
c = pγ11 · · · pγr r .
From Theorem 12,
min(α1 ,β1 ,γ1 )
(a, b, c) = p1 · · · prmin(αr ,βr ,γr )
and
max(α ,β ,γ )
[a, b, c] = p1 1 1 1
· · · prmax(αr ,βr ,γr ) .
To prove the result, we proceed by contradiction. Assume for example
that (a, b) > 1. Using the fact that (a, b, c)[a, b, c] = abc, it follows, using
the above notation, that
min(αi , βi , γi ) + max(αi , βi , γi ) = αi + βi + γi (i = 1, 2, . . . , r).
But it is easy to prove that for the sum of three nonnegative integers to
be equal to the sum of the smallest and of the largest of these same three
138 1001 PROBLEMS IN CLASSICAL NUMBER THEORY
333
334 SUBJECT INDEX
order of an integer, 47
palindrome, 34, 81
period of a fraction, 7
postulate of Bertrand, 5, 68, 244
primitive solution, 10
principle
inclusion-exclusion, 3
induction, 3
pigeonhole, 3
problem
Collatz, 55
Syracuse, 55
tower of Hanoi, 17
Waring, 36
product of Dirichlet, 9, 65
Oesterlé, J., 12
Gelfand, S.I., 105
Gel fond, A.O., 99, 326 Pascal, B., 16
Germain, S., 221 Pinner, C.G., 156
Giblin, P., 164, 185 Polezzi, M., 51
Grah, J., 252 Pomerance, C., 159
Guy, R.K., 123, 216
Ramanujan, S., 84
Halter-Kock, F., 287 Ribenboim, P., 136, 147
Hardy, G.H., 84 Riesel, H., 31
Hilbert, D., 36 Roberts, J., 287
Hlawka, E., 31
Hoffman, F., 261 St. Udrescu, V., 287
Huygens, C., 38 Sander, J.W., 208
Schinzel, A., 12, 154
Ivić, A., 19, 303 Schlafly, A., 81
335
336 INDEX OF AUTHORS
Tartaglia, N.F., 28
Wagon, S., 81
Walter, J., 302
Weisstein, E.W., 158
Willans, C.P., 25, 133
Williams, H.C., 29, 187
Zuckerman, H.S., 12