Math Problem Book I - 20170322
Math Problem Book I - 20170322
Math Problem Book I - 20170322
compiled by
Kin Y. Li
Department of Mathematics
There are over fifty countries in the world nowadays that hold math-
ematical olympiads at the secondary school level annually. In Hungary,
Russia and Romania, mathematical competitions have a long history, dat-
ing back to the late 1800s in Hungarys case. Many professional or ama-
teur mathematicians developed their interest in math by working on these
olympiad problems in their youths and some in their adulthoods as well.
The problems in this book came from many sources. For those involved
in international math competitions, they no doubt will recognize many of
these problems. We tried to identify the sources whenever possible, but
there are still some that escape us at the moment. Hopefully, in future
editions of the book we can fill in these missing sources with the help of the
knowledgeable readers.
This book is for students who have creative minds and are interested in
mathematics. Through problem solving, they will learn a great deal more
than school curricula can offer and will sharpen their analytical skills. We
hope the problems collected in this book will stimulate them and seduce
them to deeper understanding of what mathematics is all about. We hope
the international math communities support our efforts for using these bril-
liant problems and solutions to attract our young students to mathematics.
Most of the problems have been used in practice sessions for students
participated in the Hong Kong IMO training program. We are especially
pleased with the efforts of these students. In fact, the original motivation
for writing the book was to reward them in some ways, especially those who
worked so hard to become reserve or team members. It is only fitting to
list their names along with their solutions. Again there are unsung heros
iii
who contributed solutions, but whose names we can only hope to identify
in future editions.
As the title of the book suggest, this is a problem book. So very little
introduction materials can be found. We do promise to write another book
presenting the materials covered in the Hong Kong IMO training program.
This, for certain, will involve the dedication of more than one person. Also,
this is the first of a series of problem books we hope. From the results of
the Hong Kong IMO preliminary contests, we can see waves of new creative
minds appear in the training program continuously and they are younger
and younger. Maybe the next problem book in the series will be written by
our students.
Kin Y. Li
Hong Kong
April, 2001
iv
Advices to the Readers
Other things you can try in tackling a problem include changing the
given conditions a little or experimenting with some special cases first.
Sometimes may be you can even guess the answers from some cases, then
you can study the form of the answers and trace backward.
Finally, when you figure out the solutions, dont just stop there. You
should try to generalize the problem, see how the given facts are necessary
for solving the problem. This may help you to solve related problems later
on. Always try to write out your solution in a clear and concise manner.
Along the way, you will polish the argument and see the steps of the so-
lutions more clearly. This helps you to develop strategies for dealing with
other problems.
v
The solutions presented in the book are by no means the only ways
to do the problems. If you have a nice elegant solution to a problem and
would like to share with others (in future editions of this book), please send
it to us by email at [email protected] . Also if you have something you cannot
understand, please feel free to contact us by email. We hope this book will
increase your interest in math.
Finally, we will offer one last advice. Dont start with problem 1. Read
the statements of the problems and start with the ones that interest you the
most. We recommend inspecting the list of miscellaneous problems first.
Have a fun time.
vi
Table of Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iii
Chan Kin Hang, 1998, 1999, 2000, 2001 Hong Kong team member
Chan Ming Chiu, 1997 Hong Kong team reserve member
Chao Khek Lun, 2001 Hong Kong team member
Cheng Kei Tsi, 2001 Hong Kong team member
Cheung Pok Man, 1997, 1998 Hong Kong team member
Fan Wai Tong, 2000 Hong Kong team member
Fung Ho Yin, 1997 Hong Kong team reserve member
Ho Wing Yip, 1994, 1995, 1996 Hong Kong team member
Kee Wing Tao, 1997 Hong Kong team reserve member
Lam Po Leung, 1999 Hong Kong team reserve member
Lam Pei Fung, 1992 Hong Kong team member
Lau Lap Ming, 1997, 1998 Hong Kong team member
Law Ka Ho, 1998, 1999, 2000 Hong Kong team member
Law Siu Lung, 1996 Hong Kong team member
Lee Tak Wing, 1993 Hong Kong team reserve member
Leung Wai Ying, 2001 Hong Kong team member
Leung Wing Chung, 1997, 1998 Hong Kong team member
Mok Tze Tao, 1995, 1996, 1997 Hong Kong team member
Ng Ka Man, 1997 Hong Kong team reserve member
Ng Ka Wing, 1999, 2000 Hong Kong team member
Poon Wai Hoi, 1994, 1995, 1996 Hong Kong team member
Poon Wing Chi, 1997 Hong Kong team reserve member
Tam Siu Lung, 1999 Hong Kong team reserve member
To Kar Keung, 1991, 1992 Hong Kong team member
Wong Chun Wai, 1999, 2000 Hong Kong team member
Wong Him Ting, 1994, 1995 Hong Kong team member
Yu Ka Chun, 1997 Hong Kong team member
Yung Fai, 1993 Hong Kong team member
ix
Problems
Algebra Problems
Polynomials
1
8. (1993 IMO) Let f (x) = xn + 5xn1 + 3, where n > 1 is an integer.
Prove that f (x) cannot be expressed as a product of two polynomials,
each has integer coefficients and degree at least 1.
Recurrence Relations
2 + xn
x1 = 2, xn+1 = , n = 1, 2, 3, . . . .
1 2xn
1
Prove that xn 6= 2 or 0 for all n and the terms of the sequence are all
distinct.
2
15. (American Mathematical Monthly, Problem E2998) Let x and y be
xn y n
distinct complex numbers such that is an integer for some
xy
xn y n
four consecutive positive integers n. Show that is an integer
xy
for all positive integers n.
Inequalities
a b c
+ + a + b + c.
c a b
3
20. (1994 Chinese Team Selection Test) For 0 a b c d e and
a + b + c + d + e = 1, show that
1
ad + dc + cb + be + ea .
5
21. (1985 Wuhu City Math Competition) Let x, y, z be real numbers such
that x + y + z = 0. Show that
6(x3 + y 3 + z 3 )2 (x2 + y 2 + z 2 )3 .
24. For every triplet of functions f, g, h : [0, 1] R, prove that there are
numbers x, y, z in [0, 1] such that
1
|f (x) + g(y) + h(z) xyz| .
3
25. (Proposed by Great Britain for 1987 IMO) If x, y, z are real numbers
such that x2 + y 2 + z 2 = 2, then show that x + y + z xyz + 2.
4
26. (Proposed by USA for 1993 IMO) Prove that for positive real numbers
a, b, c, d,
a b c d 2
+ + + .
b + 2c + 3d c + 2d + 3a d + 2a + 3b a + 2b + 3c 3
28. (Proposed by Greece for 1987 IMO) Let a, b, c > 0 and m be a positive
integer, prove that
m1
am bm cm 3 a+b+c
+ + .
b+c c+a a+b 2 3
a3 b3 c3 a2 + b2 + c2
31. Prove that if a, b, c > 0, then + + .
b+c c+a a+b 2
32. Let a, b, c, d > 0 and
1 1 1 1
+ + + = 1.
1 + a4 1 + b4 1 + c4 1 + d4
5
Prove that abcd 3.
33. (Due to Paul Erdos) Each of the positive integers a1 , . . . , an is less than
1951. The least common multiple of any two of these is greater than
1951. Show that
1 1 n
++ <1+ .
a1 an 1951
x Pn (x)2
P0 (x) = 0 and for n 0, Pn+1 (x) = Pn (x) + .
2
Prove that
2
0 x Pn (x)
n+1
for every nonnegative integer n and all x in [0, 1].
35. (1996 IMO shortlisted problem) Let P (x) be the real polynomial func-
tion, P (x) = ax3 + bx2 + cx + d. Prove that if |P (x)| 1 for all x such
that |x| 1, then
|a| + |b| + |c| + |d| 7.
1 + 1 + 1 + 1, 1 + 1 + 2, 1 + 3, 2 + 2, and 4.
6
Prove that p(n + 1) 2p(n) + p(n 1) 0 for each n > 1.
Functional Equations
43. (1992 Polish Math Olympiad) Let Q+ be the positive rational numbers.
Determine all functions f : Q+ Q+ such that f (x + 1) = f (x) + 1
and f (x3 ) = f (x)3 for every x Q+ .
44. (1996 IMO shortlisted problem) Let R denote the real numbers and
f : R [1, 1] satisfy
13 1 1
f x+ + f (x) = f x + +f x+
42 6 7
7
46. Let N be the positive integers. Is there a function f : N N such that
f (1996) (n) = 2n for all n N, where f (1) (x) = f (x) and f (k+1) (x) =
f (f (k) (x))?
48. Let R be the real numbers. Find all functions f : R R such that for
all real numbers x and y,
f xf (y) + x = xy + f (x).
for all x, y in R.
50. (1995 Byelorussian Math Olympiad) Let R be the real numbers. Find
all functions f : R R such that
for all x, y R.
51. (1993 Czechoslovak Math Olympiad) Let Z be the integers. Find all
functions f : Z Z such that
52. (1995 South Korean Math Olympiad) Let A be the set of non-negative
integers. Find all functions f : A A satisfying the following two
conditions:
(a) For any m, n A, 2f (m2 + n2 ) = (f (m))2 + (f (n))2 .
8
(b) For any m, n A with m n, f (m2 ) f (n2 ).
Maximum/Minimum
56. (1996 Putnam Exam) Given that {x1 , x2 , . . . , xn } = {1, 2, . . . , n}, find
the largest possible value of x1 x2 + x2 x3 + + xn1 xn + xn x1 in terms
of n (with n 2).
9
Geometry Problems
57. (1995 British Math Olympiad) Triangle ABC has a right angle at C.
The internal bisectors of angles BAC and ABC meet BC and CA
at P and Q respectively. The points M and N are the feet of the
perpendiculars from P and Q to AB. Find angle M CN.
58. (1988 Leningrad Math Olympiad) Squares ABDE and BCF G are
drawn outside of triangle ABC. Prove that triangle ABC is isosceles if
DG is parallel to AC.
60. (1991 Hunan Province Math Competition) Two circles with centers O1
and O2 intersect at points A and B. A line through A intersects the
circles with centers O1 and O2 at points Y, Z, respectively. Let the
tangents at Y and Z intersect at X and lines Y O1 and ZO2 intersect
at P. Let the circumcircle of 4O1 O2 B have center at O and intersect
line XB at B and Q. Prove that P Q is a diameter of the circumcircle
of 4O1 O2 B.
61. (1981 Beijing City Math Competition) In a disk with center O, there
are four points such that the distance between every pair of them is
greater than the radius of the disk. Prove that there is a pair of per-
pendicular diameters such that exactly one of the four points lies inside
each of the four quarter disks formed by the diameters.
62. The lengths of the sides of a quadrilateral are positive integers. The
length of each side divides the sum of the other three lengths. Prove
that two of the sides have the same length.
63. (1988 Sichuan Province Math Competition) Suppose the lengths of the
three sides of 4ABC are integers and the inradius of the triangle is 1.
Prove that the triangle is a right triangle.
10
Geometric Equations
64. (1985 IMO) A circle has center on the side AB of the cyclic quadri-
lateral ABCD. The other three sides are tangent to the circle. Prove
that AD + BC = AB.
66. Point C lies on the minor arc AB of the circle centered at O. Suppose
the tangent line at C cuts the perpendiculars to chord AB through A
at E and through B at F. Let D be the intersection of chord AB and
radius OC. Prove that CE CF = AD BD and CD 2 = AE BF.
P 0 A2 + P 0 B 2 + P 0 C 2 = P A02 + P B 02 + P C 02 .
68. Let the inscribed circle of triangle ABC touchs side BC at D, side CA
at E and side AB at F. Let G be the foot of perpendicular from D to
FG BF
EF. Show that = .
EG CE
AB CD EF
6 B + 6 D + 6 F = 360 and = 1.
BC DE F A
Prove that
BC AE F D
= 1.
CA EF DB
11
Similar Triangles
70. (1984 British Math Olympiad) P, Q, and R are arbitrary points on the
sides BC, CA, and AB respectively of triangle ABC. Prove that the
three circumcentres of triangles AQR, BRP, and CP Q form a triangle
similar to triangle ABC.
Tangent Lines
74. (1999 IMO) Two circles 1 and 2 are contained inside the circle ,
and are tangent to at the distinct points M and N, respectively.
1 passes through the center of 2 . The line passing through the two
points of intersection of 1 and 2 meets at A and B, respectively.
The lines M A and M B meets 1 at C and D, respectively. Prove that
CD is tangent to 2 .
75. (Proposed by India for 1992 IMO) Circles G1 and G2 touch each other
externally at a point W and are inscribed in a circle G. A, B, C are
12
points on G such that A, G1 and G2 are on the same side of chord BC,
which is also tangent to G1 and G2 . Suppose AW is also tangent to
G1 and G2 . Prove that W is the incenter of triangle ABC.
Locus
77. Suppose A is a point inside a given circle and is different from the
center. Consider all chords (excluding the diameter) passing through
A. What is the locus of the intersection of the tangent lines at the
endpoints of these chords?
79. (1996 Putnam Exam) Let C1 and C2 be circles whose centers are 10
units apart, and whose radii are 1 and 3. Find the locus of all points
M for which there exists points X on C1 and Y on C2 such that M is
the midpoint of the line segment XY.
AM CN
= = r.
AC CE
Determine r if B, M and N are collinear.
81. (1965 Putnam Exam) If A, B, C, D are four distinct points such that
every circle through A and B intersects or coincides with every circle
through C and D, prove that the four points are either collinear or
concyclic.
13
82. (1957 Putnam Exam) Given an infinite number of points in a plane,
prove that if all the distances between every pair are integers, then the
points are collinear.
83. (1995 IMO shortlisted problem) The incircle of triangle ABC touches
BC, CA and AB at D, E and F respectively. X is a point inside
triangle ABC such that the incircle of triangle XBC touches BC at
D also, and touches CX and XB at Y and Z respectively. Prove that
EF ZY is a cyclic quadrilateral.
84. (1998 IMO) In the convex quadrilateral ABCD, the diagonals AC and
BD are perpendicular and the opposite sides AB and DC are not
parallel. Suppose the point P, where the perpendicular bisectors of
AB and DC meet, is inside ABCD. Prove that ABCD is a cyclic
quadrilateral if and only if the triangles ABP and CDP have equal
areas.
85. (1970 Putnam Exam) Show that if a convex quadrilateral with side-
lengths a, b, c, d and area abcd has an inscribed circle, then it is a
cyclic quadrilateral.
Concurrent Lines
86. In 4ABC, suppose AB > AC. Let P and Q be the feet of the per-
pendiculars from B and C to the angle bisector of 6 BAC, respectively.
Let D be on line BC such that DA AP. Prove that lines BQ, P C
and AD are concurrent.
88. (1995 IMO) Let A, B, C and D be four distinct points on a line, in that
order. The circles with diameters AC and BD intersect at the points
X and Y. The line XY meets BC at the point Z. Let P be a point on
the line XY different from Z. The line CP intersects the circle with
14
diameter AC at the points C and M, and the line BP intersects the
circle with diameter BD at the points B and N. Prove that the lines
AM, DN and XY are concurrent.
89. AD, BE, CF are the altitudes of 4ABC. If P, Q, R are the midpoints
of DE, EF, F D, respectively, then show that the perpendicular from
P, Q, R to AB, BC, CA, respectively, are concurrent.
Perpendicular Lines
93. (1998 APMO) Let ABC be a triangle and D the foot of the altitude
from A. Let E and F be on a line passing through D such that AE
is perpendicular to BE, AF is perpendicular to CF, and E and F are
different from D. Let M and N be the midpoints of the line segments
BC and EF, respectively. Prove that AN is perpendicular to N M.
94. (2000 APMO) Let ABC be a triangle. Let M and N be the points
in which the median and the angle bisector, respectively, at A meet
the side BC. Let Q and P be the points in which the perpendicular at
N to N A meets M A and BA, respectively, and O the point in which
the perpendicular at P to BA meets AN produced. Prove that QO is
perpendicular to BC.
15
95. Let BB 0 and CC 0 be altitudes of triangle ABC. Assume that AB 6=
AC. Let M be the midpoint of BC, H the orthocenter of ABC and D
the intersection of B 0 C 0 and BC. Prove that DH AM.
96. (1996 Chinese Team Selection Test) The semicircle with side BC of
4ABC as diameter intersects sides AB, AC at points D, E, respec-
tively. Let F, G be the feet of the perpendiculars from D, E to side
BC respectively. Let M be the intersection of DG and EF. Prove that
AM BC.
97. (1985 IMO) A circle with center O passes through the vertices A and
C of triangle ABC and intersects the segments AB and AC again at
distinct points K and N, respectively. The circumcircles of triangles
ABC and KBN intersect at exactly two distinct points B and M.
Prove that OM M B.
98. (1997 Chinese Senoir High Math Competition) A circle with center O
is internally tangent to two circles inside it at points S and T. Suppose
the two circles inside intersect at M and N with N closer to ST. Show
that OM M N if and only if S, N, T are collinear.
99. AD, BE, CF are the altitudes of 4ABC. Lines EF, F D, DE meet lines
BC, CA, AB in points L, M, N, respectively. Show that L, M, N are
collinear and the line through them is perpendicular to the line joining
the orthocenter H and circumcenter O of 4ABC.
AP + BQ + CR > BC + CA + AB.
16
102. (1997 APMO) Let ABC be a triangle inscribed in a circle and let la =
ma /Ma , lb = mb /Mb , lc = mc /Mc , where ma , mb , mc are the lengths
of the angle bisectors (internal to the triangle) and Ma , Mb , Mc are
the lengths of the angle bisectors extended until they meet the circle.
Prove that
la lb lc
+ + 3,
sin2 A sin2 B sin2 C
and that equality holds iff ABC is equilateral.
104. Squares ABDE and ACF G are drawn outside 4ABC. Let P, Q be
points on EG such that BP and CQ are perpendicular to BC. Prove
that BP + CQ BC + EG. When does equality hold?
106. (Proposed by Italy for 1967 IMO) Which regular polygons can be ob-
tained (and how) by cutting a cube with a plane?
107. (1995 Israeli Math Olympiad) Four points are given in space, in general
position (i.e., they are not coplanar and any three are not collinear).
A plane is called an equalizing plane if all four points have the same
distance from . Find the number of equalizing planes.
17
Number Theory Problems
Digits
108. (1956 Putnam Exam) Prove that every positive integer has a multiple
whose decimal representation involves all ten digits.
109. Does there exist a positive integer a such that the sum of the digits
(in base 10) of a is 1999 and the sum of the digits (in base 10) of a2 is
19992 ?
110. (Proposed by USSR for 1991 IMO) Let an be the last nonzero digit
in the decimal representation of the number n!. Does the sequence
a1 , a2 , . . . , an , . . . become periodic after a finite number of terms?
Modulo Arithmetic
111. (1956 Putnam Exam) Prove that the number of odd binomial coeffi-
cients in any row of the Pascal triangle is a power of 2.
Prime Factorization
18
115. (1971 IMO) Prove that the set of integers of the form 2k 3 (k =
2, 3, . . .) contains an infinite subset in which every two members are
relatively prime.
116. (1988 Chinese Math Olympiad Training Test) Determine the smallest
value of the natural number n > 3 with the property that whenever
the set Sn = {3, 4, . . . , n} is partitioned into the union of two sub-
sets, at least one of the subsets contains three numbers a, b and c (not
necessarily distinct) such that ab = c.
Base n Representations
117. (1983 IMO) Can you choose 1983 pairwise distinct nonnegative integers
less than 105 such that no three are in arithmetic progression?
119. (Proposed by Romania for 1985 IMO) Show that the sequence {an }
defined by an = [n 2] for n = 1, 2, 3, . . . (where the brackets denote
the greatest integer function) contains an infinite number of integral
powers of 2.
Representations
120. Find all (even) natural numbers n which can be written as a sum of
two odd composite numbers.
121. Find all positive integers which cannot be written as the sum of two
or more consecutive positive integers.
122. (Proposed by Australia for 1990 IMO) Observe that 9 = 4+5 = 2+3+4.
Is there an integer N which can be written as a sum of 1990 consecutive
positive integers and which can be written as a sum of (more than one)
consecutive integers in exactly 1990 ways?
19
123. Show that if p > 3 is prime, then pn cannot be the sum of two positive
cubes for any n 1. What about p = 2 or 3?
124. (Due to Paul Erdos and M. Suranyi) Prove that every integer k can be
represented in infinitely many ways in the form k = 12 22 m2
for some positive integer m and some choice of signs + or .
126. Prove that every integer greater than 17 can be represented as a sum of
three integers > 1 which are pairwise relatively prime, and show that
17 does not have this property.
127. (1988 Chinese Team Selection Test) Define xn = 3xn1 + 2 for all
positive integers n. Prove that an integer value can be chosen for x0 so
that x100 is divisible by 1988.
128. (Proposed by North Korea for 1992 IMO) Does there exist a set M
with the following properties:
(a) The set M consists of 1992 natural numbers.
(b) Every element in M and the sum of any number of elements in M
have the form mk , where m, k are positive integers and k 2?
Divisibility
129. Find all positive integers a, b such that b > 2 and 2a + 1 is divisible by
2b 1.
20
130. Show that there are infinitely many composite n such that 3n1 2n1
is divisible by n.
131. Prove that there are infinitely many positive integers n such that 2n +1
is divisible by n. Find all such ns that are prime numbers.
132. (1998 Romanian Math Olympiad) Find all positive integers (x, n) such
that xn + 2n + 1 is a divisor of xn+1 + 2n+1 + 1.
133. (1995 Bulgarian Math Competition) Find all pairs of positive integers
x2 + y 2
(x, y) for which is an integer and divides 1995.
xy
135. (1998 Putnam Exam) Let A1 = 0 and A2 = 1. For n > 2, the number
An is defined by concatenating the decimal expansions of An1 and
An2 from left to right. For example, A3 = A2 A1 = 10, A4 = A3 A2 =
101, A5 = A4 A3 = 10110, and so forth. Determine all n such that An
is divisible by 11.
136. (1995 Bulgarian Math Competition) If k > 1, show that k does not
divide 2k1 + 1. Use this to find all prime numbers p and q such that
2p + 2q is divisible by pq.
137. Show that for any positive integer n, there is a number whose decimal
representation contains n digits, each of which is 1 or 2, and which is
divisible by 2n .
138. For a positive integer n, let f (n) be the largest integer k such that 2k
divides n and g(n) be the sum of the digits in the binary representation
of n. Prove that for any positive integer n,
(a) f (n!) = n
g(n);
2n (2n)!
(b) 4 divides = if and only if n is not a power of 2.
n n!n!
21
139. (Proposed by Australia for 1992 IMO) Prove that for any positive in-
teger m, there exist an infinite number of pairs of integers (x, y) such
that
(a) x and y are relatively prime;
(b) y divides x2 + m;
(c) x divides y 2 + m.
141. (1972 Putnam Exam) Show that if n is an integer greater than 1, then
n does not divide 2n 1.
Prove that n1 = n2 = = nk = 1.
143. (1998 APMO) Determine the largest of all integer n with theproperty
that n is divisible by all positive integers that are less than 3 n.
144. (1997 Ukrainian Math Olympiad) Find the smallest integer n such that
among any n integers (with possible repetitions), there exist 18 integers
whose sum is divisible by 18.
1 1 1
145. Let a, b, c be positive integers such that + = . If the greatest
a b c
common divisor of a, b, c is 1, then prove that a + b must be a perfect
square.
22
147. (1998 Putnam Exam) Prove that, for any integers a, b, c, there exists a
positive integer n such that n3 + an2 + bn + c is not an integer.
148. (1995 IMO shortlisted problem) Let k be a positive integer. Prove that
there are infinitely many perfect squares of the form n2k 7, where n
is a positive integer.
a b c
149. Let a, b, c be integers such that + + = 3. Prove that abc is the
b c a
cube of an integer.
Diophantine Equations
150. Find all sets of positive integers x, y and z such that x y z and
xy + y z = z x .
152. (Due to Euler, also 1985 Moscow Math Olympiad) If n 3, then prove
that 2n can be represented in the form 2n = 7x2 + y 2 with x, y odd
positive integers.
153. (1995 IMO shortlisted problem) Find all positive integers x and y such
that x + y 2 + z 3 = xyz, where z is the greatest common divisor of x
and y.
156. (1995 Czech-Slovak Match) Find all pairs of nonnegative integers x and
y which solve the equation px y p = 1, where p is a given odd prime.
23
Combinatorics Problems
Counting Methods
159. Find the number of n-words from the alphabet A = {0, 1, 2}, if any
two neighbors can differ by at most 1.
Pigeonhole Principle
161. (1987 Austrian-Polish Math Competition) Does the set {1, 2, . . . , 3000}
contain a subset A consisting of 2000 numbers such that x A implies
2x 6 A?
162. (1989 Polish Math Olympiad) Suppose a triangle can be placed inside
a square of unit area in such a way that the center of the square is not
inside the triangle. Show that one side of the triangle has length less
than 1.
163. The cells of a 7 7 square are colored with two colors. Prove that
there exist at least 21 rectangles with vertices of the same color and
with sides parallel to the sides of the square.
164. For n > 1, let 2n chess pieces be placed at the centers of 2n squares of
an n n chessboard. Show that there are four pieces among them that
formed the vertices of a parallelogram. If 2n is replaced by 2n 1, is
the statement still true in general?
165. The set {1, 2, . . . , 49} is partitioned into three subsets. Show that at
least one of the subsets contains three different numbers a, b, c such
that a + b = c.
24
Inclusion-Exclusion Principle
167. Let A be a set with 8 elements. Find the maximal number of 3-element
subsets of A, such that the intersection of any two of them is not a 2-
element set.
168. (a) (1999 China Hong Kong Math Olympiad) Students have taken a
test paper in each of n (n 3) subjects. It is known that for any
subject exactly three students get the best score in the subject, and
for any two subjects excatly one student gets the best score in every
one of these two subjects. Determine the smallest n so that the above
conditions imply that exactly one student gets the best score in every
one of the n subjects.
(b) (1978 Austrian-Polish Math Competition) There are 1978 clubs.
Each has 40 members. If every two clubs have exactly one common
member, then prove that all 1978 clubs have a common member.
Combinatorial Designs
25
lottery commitee will then draw six distinct numbers randomly from
1, 2, 3, . . . , 36. Any ticket with numbers not containing any of these six
numbers is a winning ticket. Show that there is a scheme of buying
9 tickets guaranteeing at least a winning ticket, but 8 tickets is not
enough to guarantee a winning ticket in general.
173. (1991 Australian Math Olympiad) There are n points given on a plane
such that the area of the triangle formed by every 3 of them is at most
1. Show that the n points lie on or inside some triangle of area at most
4.
174. (1969 Putnam Exam) Show that any continuous curve of unit length
can be covered by a closed rectangles of area 1/4.
175. (1998 Putnam Exam) Let F be a finite collection of open discs in the
plane whose union covers a set E. Show that there is a pairwise disjoint
subcollection D1 , . . . , Dn in F such that the union of 3D1 , . . . , 3Dn
covers E, where 3D is the disc with the same center as D but having
three times the radius.
176. (1995 IMO) Determine all integers n > 3 for which there exist n points
A1 , A2 , . . . , An in the plane, and real numbers r1 , r2 , . . . , rn satisfying
the following two conditions:
(a) no three of the points A1 , A2 , . . . , An lie on a line;
(b) for each triple i, j, k (1 i < j < k n) the triangle Ai Aj Ak has
area equal to ri + rj + rk .
26
177. (1999 IMO) Determine all finite sets S of at least three points in the
plane which satisfy the following condition: for any two distinct points
A and B in S, the perpendicular bisector of the line segment AB is an
axis of symmetry of S.
27
Miscellaneous Problems
179. (1995 Israeli Math Olympiad) Two players play a game on an infinite
board that consists of 1 1 squares. Player I chooses a square and
marks it with an O. Then, player II chooses another square and marks
it with X. They play until one of the players marks a row or a column
of 5 consecutive squares, and this player wins the game. If no player
can achieve this, the game is a tie. Show that player II can prevent
player I from winning.
180. (1995 USAMO) A calculator is broken so that the only keys that still
work are the sin, cos, tan, sin1 , cos1 , and tan1 buttons. The dis-
play initially shows 0. Given any positive rational number q, show that
pressing some finite sequence of buttons will yield q. Assume that the
calculator does real number calculations with infinite precision. All
functions are in terms of radians.
183. Is it possible to write a positive integer into each square of the first
quadrant such that each column and each row contains every positive
integer exactly once?
184. There are n identical cars on a circular track. Among all of them, they
have just enough gas for one car to complete a lap. Show that there is
28
a car which can complete a lap by collecting gas from the other cars
on its way around the track in the clockwise direction.
185. (1996 Russian Math Olympiad) At the vertices of a cube are written
eight pairwise distinct natural numbers, and on each of its edges is
written the greatest common divisor of the numbers at the endpoints
of the edge. Can the sum of the numbers written at the vertices be the
same as the sum of the numbers written at the edges?
186. Can the positive integers be partitioned into infinitely many subsets
such that each subset is obtained from any other subset by adding the
same integer to each element of the other subset?
188. (1991 German Mathematical Olympiad) Show that for every positive
integer n 2, there exists a permutation p1 , p2 , . . . , pn of 1, 2, . . . , n
such that pk+1 divides p1 + p2 + + pk for k = 1, 2, . . . , n 1.
189. Each lattice point of the plane is labeled by a positive integer. Each
of these numbers is the arithmetic mean of its four neighbors (above,
below, left, right). Show that all the numbers are equal.
190. (1984 Tournament of the Towns) In a party, n boys and n girls are
paired. It is observed that in each pair, the difference in height is less
than 10 cm. Show that the difference in height of the k-th tallest boy
and the k-th tallest girl is also less than 10 cm for k = 1, 2, . . . , n.
191. (1991 Leningrad Math Olympiad) One may perform the following two
operations on a positive integer:
(a) multiply it by any positive integer and
(b) delete zeros in its decimal representation.
Prove that for every positive integer X, one can perform a sequence of
these operations that will transform X to a one-digit number.
29
192. (1996 IMO shortlisted problem) Four integers are marked on a circle.
On each step we simultaneously replace each number by the difference
between this number and next number on the circle in a given direction
(that is, the numbers a, b, c, d are replaced by a b, b c, c d, d a).
Is it possible after 1996 such steps to have numbers a, b, c, d such that
the numbers |bc ad|, |ac bd|, |ab cd| are primes?
193. (1989 Nanchang City Math Competition) There are 1989 coins on a
table. Some are placed with the head sides up and some the tail sides
up. A group of 1989 persons will perform the following operations:
the first person is allowed turn over any one coin, the second person is
allowed turn over any two coins, . . . , the k-th person is allowed turn
over any k coins, . . . , the 1989th person is allowed to turn over every
coin. Prove that
(1) no matter which sides of the coins are up initially, the 1989 persons
can come up with a procedure turning all coins the same sides up
at the end of the operations,
(2) in the above procedure, whether the head or the tail sides turned
up at the end will depend on the initial placement of the coins.
194. (Proposed by India for 1992 IMO) Show that there exists a convex
polygon of 1992 sides satisfying the following conditions:
(a) its sides are 1, 2, 3, . . . , 1992 in some order;
(b) the polygon is circumscribable about a circle.
195. There are 13 white, 15 black, 17 red chips on a table. In one step, you
may choose 2 chips of different colors and replace each one by a chip of
the third color. Can all chips become the same color after some steps?
196. The following operations are permitted with the quadratic polynomial
ax2 + bx + c:
(a) switch a and c,
(b) replace x by x + t, where t is a real number.
By repeating these operations, can you transform x2 x 2 into x2
x 1?
30
197. Five numbers 1, 2, 3, 4, 5 are written on a blackboard. A student may
erase any two of the numbers a and b on the board and write the
numbers a + b and ab replacing them. If this operation is performed re-
peatedly, can the numbers 21, 27, 64, 180, 540 ever appear on the board?
198. Nine 1 1 cells of a 10 10 square are infected. In one unit time, the
cells with at least 2 infected neighbors (having a common side) become
infected. Can the infection spread to the whole square? What if nine
is replaced by ten?
199. (1997 Colombian Math Olympiad) We play the following game with
an equilateral triangle of n(n + 1)/2 dollar coins (with n coins on each
side). Initially, all of the coins are turned heads up. On each turn, we
may turn over three coins which are mutually adjacent; the goal is to
make all of the coins turned tails up. For which values of n can this be
done?
200. (1990 Chinese Team Selection Test) Every integer is colored with one
of 100 colors and all 100 colors are used. For intervals [a, b], [c, d] having
integers endpoints and same lengths, if a, c have the same color and
b, d have the same color, then the intervals are colored the same way,
which means a + x and c + x have the same color for x = 0, 1, . . . , b a.
Prove that 1990 and 1990 have different colors.
31
Solutions
Solutions to Algebra Problems
Polynomials
35
for some polynomials f1 (x), f2 (x), . . . , fn (x) with real coefficients.
Solution. Suppose there are such f, g, h. Then h(1), h(2), . . . , h(8) will
be the roots of the 4-th degree polynomial f (g(x)). Since h(a) =
h(b), a 6= b if and only if a, b are symmetric with respect to the axis
of the parabola, it follows that h(1) = h(8), h(2) = h(7), h(3) =
h(6), h(4) = h(5) and the parabola y = h(x) is symmetric with re-
spect to x = 9/2. Also, we have either h(1) < h(2) < h(3) < h(4) or
h(1) > h(2) > h(3) > h(4).
Now g(h(1)), g(h(2)), g(h(3)), g(h(4)) are the roots of the quadratic
polynomial f (x), so g(h(1)) = g(h(4)) and g(h(2)) = g(h(3)), which
implies h(1) + h(4) = h(2) + h(3). For h(x) = Ax2 + Bx + C, this would
force A = 0, a contradiction.
36
Solution. If a polynomial a0 xn +a1 xn1 + +an is such a polynomial,
then so is its negative. Hence we may assume a0 = 1. Let r1 , . . . , rn be
the roots. Then r12 + + rn2 = a21 2a2 and r12 rn2 = a2n . If the roots
2/n
are all real, then by the AM-GM inequality, we get (a21 2a2 )/n an .
Since a1 , a2 = 1, we must have a2 = 1 and n 3. By simple
checking, we get the list
37
and we can take A(x) = c, B(x) = C(x) = 0. Next suppose the degree
n case is true. For the case P (x) is of degree n + 1. If P (x) 0 for
all real x, then simply let A(x) = P (x), B(x) = C(x) = 0. Otherwise,
P (x) has a root x0 in (, 0] or [1, +).
Case x0 in (, 0]. Then P (x) = (x x0 )Q(x) and Q(x) is of degree n
with Q(x) 0 for all x n [0, 1]. So Q(x) = A0 (x)+xB0 (x)+(1x)C0 (x),
where A0 (x), B0 (x), C0 (x) 0 for all x in [0, 1]. Using x(1 x) =
x(1 x)2 + (1 x)x2 , we have
where the polynomials A(x), B(x), C(x) 0 for all x in [0, 1].
Case x0 in [1, +). Consider Q(x) = P (1 x). This reduces to the
previous case. We have Q(x) = A1 (x) + xB1 (x) + (1 x)C1 (x), where
the polynomials A1 (x), B1 (x), C1 (x) 0 for all x in [0, 1]. Then
where the polynomials A(x), B(x), C(x) 0 for all x in [0, 1].
38
However, b(5) also divides f (5) = 3, a contradiction.
Solution. Let
39
collections of integers ai +aj (1 i < j n) and bi +bj (1 i < j n)
are the same, then show that n is a power of 2.
Recurrence Relations
Solution. (Due to Wong Chun Wai) The terms xn s are clearly rational
by induction. Write xn = pn /qn , where pn , qn are relatively prime inte-
gers and qn > 0. Then q1 = 1 and pn+1 /qn+1 = (2qn + pn )/(qn 2pn ).
So qn+1 divides qn 2pn , which implies every qn is odd by induction.
Hence, every xn 6= 12 .
Next, to show every xn 6= 0, let = arctan 2, then xn = tan n
by induction. Suppose xn = 0 and n is the least such index. If n =
40
2m is even, then 0 = x2m = tan 2m = 2xm /(1 x2m ) would imply
xm = 0, a contradiction to n being least. If n = 2m + 1 is odd, then
0 = x2m+1 = tan( + 2m) = (2 + x2m )/(1 2x2m ) would imply
2
x2m = 2. Then 2 = 2xm /(1 xm ) would imply xm = (1 5)/2 is
irrational, a contradiction. Finally, if xm = xn for some m > n, then
xmn = tan(m n) = (xm xn )/(1 + xm xn ) = 0, a contradiction.
Therefore the terms are nonzero and distinct.
Solution. (Due to Chan Kin Hang) (Since an+2 depends on an+1 and
an , it is plausible that the sequence satisfies a linear recurrence relation
an+2 = can+1 + c0 an . If this is so, then using the first 4 terms, we find
c = 7, c0 = 1.) Define b1 = a1 , b2 = a2 , bn+2 = 7bn+1 bn for n 1.
Then b3 = 48 = a3 . Suppose ak = bk for k n + 1, then
So ak = bk for all k.
Next, writing out the first few terms of 9an an+1 + 1 will suggest
that 9an an+1 + 1 = (an + an+1 )2 . The case n = 1 is true as 9 7 + 1 =
(1 + 7)2 . Suppose this is true for n = k. Using the recurrence relations
and (*) 2a2k+1 2 = 2ak ak+2 = 14ak ak+1 2a2k , we get the case n = k+1
as follow:
9ak+1 ak+2 + 1 = 9ak+1 (7ak+1 ak ) + 1
= 63a2k+1 (ak + ak+1 )2 + 2
= 62a2k+1 2ak ak+1 a2k + 2
= 64a2k+1 16ak+1 ak + a2k by (*)
= (8ak+1 ak )2 = (ak+1 + ak+2 )2 .
41
14. (Proposed by Bulgaria for 1988 IMO) Define a0 = 0, a1 = 1 and an =
2an1 + an2 for n > 1. Show that for positive integer k, an is divisible
by 2k if and only if n is divisible by 2k .
n
Solution.
n By the binomial
theorem, if (1 + 2) = An + B n 2, then
(1 2) = An Bn 2. Multiplying these 2 equations, we get A2n
2Bn2 = (1)n . This implies An is always odd. Using characteristic
equation method to solve the given recurrence relations on an , we find
that an = Bn . Now write n = 2k m, where m is odd. We have k = 0
(i.e. n is odd) if and only if 2Bn2 = A2n + 1 2 2n
(mod 4), (i.e. Bn is
odd). Nextsuppose case k is true. Since (1+ 2) = (An +Bn 2)2 =
A2n + B2n 2, so B2n = 2An Bn . Then it follows case k implies case
k + 1.
42
Inequalities
n2 + n 2 n(n 1)
a1 + + an1 an + an+1 0.
2 2
n2 + n 2 n(n 1)
a1 + + an1 an + an+1
2 2
X
n
k(k 1)
= (ak1 2ak + ak+2 ) 0.
2
k=2
a b c
+ + a + b + c.
c a b
Similarly, 2b/a + a/c 3b and 2c/b + b/a 3c. Adding these and
dividing by 3, we get the desired inequality.
43
p p p
Alternatively, let x = 9 a4 b/c2 , y = 9 c4 a/b
2 and z = 9 b4 c/a2 .
a b c x2 z2 y2
+ + = + +
c a b yz xy zx
x2 z2 y2
xyz + + = x3 + y 3 + z 3
yz xy zx
x2 y + y 2 z + z 2 x = a + b + c.
Solution. For n = 1, a71 + a51 2(a31 )2 = a51 (a1 1)2 0 and so case
n = 1 is true. Suppose the case n = k is true. For the case n = k + 1,
without loss of generality, we may assume a1 < a2 < . . . < ak+1 . Now
44
Solution. (Due to Lee Tak Wing) Let xk = ak ak+1 . Then ak =
(xk + xk+1 + + xn )2 . So,
Xn Xn n
X X
2
ak = (xk + xk+1 + + xn ) = kx2k + 2 ixi xj
k=1 k=1 k=1 1i<jn
Xn X n
X
p 2
kx2k +2 ijxi xj = kxk .
k=1 1i<jn k=1
21. (1985 Wuhu City Math Competition) Let x, y, z be real numbers such
that x + y + z = 0. Show that
6(x3 + y 3 + z 3 )2 (x2 + y 2 + z 2 )3 .
45
Comments. Let f (w) = (w x)(w y)(w z) = w 3 + bw + c. Then
x2 +y 2 +z 2 = (x+y +z)2 2(xy +yz +zx) = 2b and 0 = f (x)+f (y)+
f (z) = (x3 + y 3 + z 3 ) + b(x + y + z) + 3c implies x3 + y 3 + z 3 = 3c.
So the inequality is the same as 2(4b3 27c2 ) 0. For the cubic
polynomial f (w) = w 3 + bw + c, it is well-known that the discriminant
4 = (x y)2 (y z)2 (z x)2 equals 4b3 27c2 . The inequality follows
easily from this.
X X 4
xi xj (x2i + x2j ) C xi
1i<jn 1in
46
23. (1995 Bulgarian Math Competition) Let n 2 and 0 xi 1 for
i = 1, 2, . . . , n. Prove that
hni
(x1 + x2 + + xn ) (x1 x2 + x2 x3 + + xn1 xn + xn x1 ) ,
2
Solution. When x2 , . . . , xn are fixed, the left side is a degree one poly-
nomial in x1 , so the maximum value is attained when x1 = 0 or 1.
The situation is similar for the other xi s. So when the left side is
maximum, every xi s is 0 or 1 and the value is an integer. Now
2 (x1 + + xn ) (x1 x2 + x2 x3 + + xn1 xn + xn x1 )
=n (1 x1 )(1 x2 ) (1 x2 )(1 x3 ) . . . (1 xn )(1 x1 )
x1 x2 x2 x3 . . . xn x1 .
24. For every triplet of functions f, g, h : [0, 1] R, prove that there are
numbers x, y, z in [0, 1] such that
1
|f (x) + g(y) + h(z) xyz| .
3
Solution. Suppose for all x, y, z in [0, 1], |f (x) + g(y) + h(z) xyz| <
1/3. Then
1 1
|f (0) + g(0) + h(0)| < , |f (0) + g(y) + h(z)| < ,
3 3
1 1
|f (x) + g(0) + h(z)| < , |f (x) + g(y) + h(0)| < .
3 3
47
Since
f (0) + g(y) + h(z) f (x) + g(0) + h(z)
f (x) + g(y) + h(z) = +
2 2
f (x) + g(y) + h(0) f (0) g(0) h(0)
+ + ,
2 2
by the triangle inequality, |f (x) + g(y) + h(z)| < 2/3. In particular,
|f (1) + g(1) + h(1)| < 2/3. However, |1 f (1) g(1) h(1)| < 1/3.
Adding these two inequality and applying the triangle inequality to the
left side, we get 1 < 1, a contradiction.
There is a simpler proof. By the triangle inequality, the sum of
| (f (0) + g(0) + h(0))|, |f (0) + g(1) + h(1)|, |f (1) + g(0) + h(1)|,
|f (1)+g(1)+h(0)|, |(f (1)+g(1)+h(1)1)|, |(f (1)+g(1)+h(1)1)|
is at least 2. So, one of them is at least 2/6.
25. (Proposed by Great Britain for 1987 IMO) If x, y, z are real numbers
such that x2 + y 2 + z 2 = 2, then show that x + y + z xyz + 2.
If z > 1, then
p p
(x + y) + z 2((x + y)2 + z 2 ) = 2 xy + 1 xy + 2 xyz + 2.
26. (Proposed by USA for 1993 IMO) Prove that for positive real numbers
a, b, c, d,
a b c d 2
+ + + .
b + 2c + 3d c + 2d + 3a d + 2a + 3b a + 2b + 3c 3
48
Solution. Let
r
a p
x1 = , y1 = a(b + 2c + 3d),
b + 2c + 3d
r
b p
x2 = , y2 = b(c + 2d + 3a),
c + 2d + 3a
r
c p
x3 = , y3 = c(d + 2a + 3b),
d + 2a + 3b
r
d p
x4 = , y4 = d(a + 2b + 3c).
a + 2b + 3c
The inequality to be proved is x21 + x22 + x23 + x24 2/3. By the Cauchy-
Schwarz inequality, (x21 + + x24 )(y12 + + y42 ) (a + b + c + d)2 . To
finish, it suffices to show (a + b + c + d)2 /(y12 + y22 + y32 + y42 ) 2/3.
This follows from
3(a + b + c + d)2 2(y12 + y22 + y32 + y42 )
=3(a + b + c + d)2 8(ab + ac + ad + bc + bd + cd)
=(a b)2 + (a c)2 + (a d)2 + (b c)2 + (b d)2 + (c d)2 0.
(b1 + b2 + + bn ) (a1 + a2 + + an )
=(c1 1)a1 + (c2 1)a2 + + (cn 1)an
=d1 a1 + (d2 d1 )a2 + + (dn dn1 )an
=d1 (a1 a2 ) + d2 (a2 a3 ) + + dn an 0.
49
28. (Proposed by Greece for 1987 IMO) Let a, b, c > 0 and m be a positive
integer, prove that
m1
am bm cm 3 a+b+c
+ + .
b+c c+a a+b 2 3
n
X n
X nai
a
Adding these n inequalities, we get . Since
i=1
2a ai i=1
2a a i
a 1 1 ai
= + , we get
2a ai 2 2 2a ai
n n
n 1 X ai X ai
+ n .
2 2 i=1 2a ai i=1
2a a i
a3 b3 c3 a2 + b2 + c2
31. Prove that if a, b, c > 0, then + + .
b+c c+a a+b 2
a3 b3 c3 a3 b3 c3
+ + + + ,
a+b b+c c+a b+c c+a a+b
a3 b3 c3 a3 b3 c3
+ + + + .
c+a a+b b+c b+c c+a a+b
51
Adding these, then dividing by 2, we get
1 a3 + b3 b3 + c3 c3 + a3 a3 b3 c3
+ + + + .
2 a+b b+c c+a b+c c+a a+b
a2 + b2 + c2 1 a2 + b2 b2 + c2 c2 + a2
= + +
2 2 2 2 2
1 a +b3 3 3
b +c 3
c + a3
3
+ +
2 a+b b+c c+a
3 3 3
a b c
+ + .
b+c c+a a+b
1 1 1 1
+ + + = 1.
1 + a4 1 + b4 1 + c4 1 + d4
33. (Due to Paul Erdos) Each of the positive integers a1 , . . . , an is less than
1951. The least common multiple of any two of these is greater than
1951. Show that
1 1 n
++ <1+ .
a1 an 1951
52
Solution. Observe that none of the numbers 1, 2, . . . , 1951 is a common
multiple of more than one ai s. The number of multiples of ai among
1, 2, . . . , 1951 is [1951/ai]. So we have [1951/a1 ]+ +[1951/an ] 1951.
Since x 1 < [x], so
1951 1951
1 + + 1 < 1951.
a1 an
Dividing by 1951 and moving the negative terms to the right, we get
the desired inequality.
x Pn (x)2
P0 (x) = 0 and for n 0, Pn+1 (x) = Pn (x) + .
2
Prove that
2
0 x Pn (x)
n+1
for every nonnegative integer n and all x in [0, 1].
53
35. (1996 IMO shortlisted problem) Let P (x) be the real polynomial func-
tion, P (x) = ax3 + bx2 + cx + d. Prove that if |P (x)| 1 for all x such
that |x| 1, then
|a| + |b| + |c| + |d| 7.
Solution. Note the four polynomials P (x) satisfy the same condi-
tions as P (x). One of these have a, b 0. The problem stays the same
if P (x) is replaced by this polynomial. So we may assume a, b 0.
Case c in [0, +). If d 0, then |a| + |b| + |c| + |d| = a + b + c + d =
P (1) 1. If d < 0, then
54
Solution. (Due to Yung Fai) We have aa = |a|2 = 1 and similarly for
b, c, d. Using w + w = 2Re w, we get
Q(z) + Q(z) + Q( 2 z)
=3adz 3 + (ac + bd)(1 + + 2 ) + (ad + bc + cd)(1 + 2 + 4 )z
=3adz 3 .
55
integers. Thus p(4) = 5, as there are five different ways of expressing
4 in terms of positive integers; namely
1 + 1 + 1 + 1, 1 + 1 + 2, 1 + 3, 2 + 2, and 4.
Functional Equations
56
Solution. Let t = f (1). Setting x = 1 in (c), we get tf (t + 1) = 1. So
t 6= 0 and f (t +1) = 1/t. Setting x = t +1 in (c), we get f (t +1)f (f (t +
1
1)+ t+1 ) = 1. Then f ( 1t + t+1
1
) = t = f (1). Since f is strictly increasing,
1 1
t
+ t+1
= 1. Solving, we get t = (1 5)/2. If t = (1 + 5)/2 > 0,
1
then 1 < t = f (1) < f (1 + t) = t < 1, a contradiction. Therefore,
f (1) = t = (1 5)/2. (Note f (x) = (1 5)/(2x) is such a function.)
57
Now for every real x, let rn be a rational number agreeing with
x to n places after the decimal point. Then lim (x rn ) = 0. By
n
continuity at 0, f (x) = lim (f (x rn ) + f (rn )) = lim rn = x. There-
n n
fore, f (x) = x for all x. (This first and third paragraphs show the
Cauchy equation with continuity at a point has the unique solution
f (x) = f (1)x.)
43. (1992 Polish Math Olympiad) Let Q+ be the positive rational numbers.
Determine all functions f : Q+ Q+ such that f (x + 1) = f (x) + 1
and f (x3 ) = f (x)3 for every x Q+ .
p p3
f (( + q ) ) = f ( 3 + 3p2 + 3pq 3 + q 6 ) = t3 + 3p2 + 3pq 3 + q 6
2 3
q q
44. (1996 IMO shortlisted problem) Let R denote the real numbers and
f : R [1, 1] satisfy
13 1 1
f x+ + f (x) = f x+ +f x+
42 6 7
58
in this new equation, we get 7 equations. Adding these and cancelling
terms, we will get f (z +2)+f (z) = 2f (z +1) for all z. Rewriting this as
f (z +2)f (z +1) = f (z +1)f (z), we see that f (z +n)f (z +(n1))
is a constant, say c. If c 6= 0, then
k
X
f (z + k) = (f (z + n) f (z + (n 1))) + f (z)
n=1
= kc + f (z) 6 [1, 1]
for large k, a contradiction. So c = 0 and f (z + 1) = f (z) for all z.
Solution. (Due to Chan Kin Hang) Note that if s(m) = s(n), then
3m = s(s(m)) = s(s(n)) = 3n implies m = n. From this, we see
that s is strictly increasing. Next we have n < s(n) for all n (otherwise
s(n) n for some n, which yields the contradiction that 3n = s(s(n))
s(n) n.) Then s(n) < s(s(n)) = 3n. In particular, 1 < s(1) < 3
implies s(1) = 2 and s(2) = s(s(1)) = 3. With the help of s(3n) =
s(s(s(n))) = 3s(n), we get s(3k ) = 23k and s(23k ) = s(s(3k )) = 3k+1 .
Now there are 3k 1 integers in each of the open intervals (3k , 23k )
and (23k , 3k+1 ). Since f is strictly increasing, we must have s(3k +j) =
2 3k + j for j = 1, 2, . . . , 3k 1. Then s(2 3k + j) = s(s(3k + j)) =
3(3k +j). Since 1997 = 236 +539 < 37 , so s(1997) = 3(36 +539) = 3804.
59
and f (2n) = 2f (n) for positive integer n. If q = 3992m + (2j 1), j =
1, 2, . . . , 1995, then f (1996j) (q) = q + 2(1996 j) = 3992m + 3991,
f (1997j) (q) = 2(3992m + 1) and
f (1996) (q) = 2f (j1) (3992m + 1) = 2(3992m + 1 + (2j 1)) = 2q.
If q = 3992m + 3991, then f (q) = 2(3992m + 1) and
f (1996) (q) = 2f (1995) (3992m + 1) = 2(3992m + 1 + 2 1995) = 2q.
So f (1996) (q) = 2q for odd q. If n = 2e q, then
f (1996) (n) = 2e f (1996) (q) = 2e (2q) = 2n.
48. Let R be the real numbers. Find all functions f : R R such that for
all real numbers x and y,
f xf (y) + x = xy + f (x).
60
Putting y = a and letting b = f (0), we get
b = f xf (a) + x = ax + f (x),
a2 xy abx ax + b = xy ax + b.
61
for all x, y in R.
50. (1995 Byelorussian Math Olympiad) Let R be the real numbers. Find
all functions f : R R such that
for all x, y R.
Solution. (Due to Yung Fai) Clearly, from the equation, f (x) is not
constant. Putting y = 0, we get f (f (x)) = (1 + f (0))f (x). Replacing
x by x + y, we get
62
x by x + 1 in (*), we get f (0)f (x) = f (x + 1)f (1) + x + 1. Eliminating
f (x + 1) in the last two equations, we get
51. (1993 Czechoslovak Math Olympiad) Let Z be the integers. Find all
functions f : Z Z such that
63
52. (1995 South Korean Math Olympiad) Let A be the set of non-negative
integers. Find all functions f : A A satisfying the following two
conditions:
(a) For any m, n A, 2f (m2 + n2 ) = (f (m))2 + (f (n))2 .
(b) For any m, n A with m n, f (m2 ) f (n2 ).
Case f (0) = 0. Then 2f (n2 ) = f (n)2 . So f (n) is even for all n. For m =
1 = n, we get 2f (2) = f (1)2 +f (1)2 , which implies f (2) = f (1)2 . Using
k k
2f (n2 ) = f (n)2 repeatedly (or by induction), we get 22 1 f (22 ) =
k+1
f (1)2 . Now 2f (1) = f (1)2 implies f (1) = 0 or 2. If f (1) = 0,
k
then lim 22 = and f nondecreasing imply f (n) = 0 for all n. If
k
k k+1
f (1) = 2, then f (22 ) = 22 . Now
f (m + 1)2 = 2f ((m + 1)2 ) = 2f (m2 + 2m + 1)
2f (m2 + 1) = f (m)2 + f (1)2 > f (m)2 .
As f (n) is always even, we get f (m + 1) f (m) + 2. By induction, we
k k k k
get f (n) 2n. Since f (22 ) = 22 +1 = 2 22 for all k, lim 22 =
k
and f is nondecreasing, so f (n) = 2n for all n.
It is easy to check that f (n) = 1, f (n) = 0 and f (n) = 2n are
solutions. Therefore, they are the only solutions.
64
Solution. We will show f (x) = x is the only solution by a series of
observations.
(1) Setting y = 0, we get f (1) = (f (x) + f (0))/(f (x) f (0)), which
yields (f (1) 1)f (x) = f (0)(1 + f (1)). (Now f is not constant
because the denominator in the equation cannot equal 0.) So,
f (1) = 1 and then f (0) = 0.
(2) Setting y = x, we get 0 = f (x) + f (x), so f (x) = f (x).
(3) Setting y = cx, c 6= 1, x 6= 0, we get
f (x) + f (cx) 1+c 1 + f (c)
=f = ,
f (x) f (cx) 1c 1 f (c)
65
(7) For x > 0, if x < f (x), then picking r Q such that x < r < f (x)
will give the contradiction that f (x) < f (r) = r < f (x). Similarly,
f (x) < x will also lead to a contradiction. So, f (x) = x for all x.
66
Adding these, we get f (a) + f (b) = 2f ( a+b
2 ) = f (a + b) by step 3.
Maximum/Minimum
f (n + 1)
>1n+1 + 2n + 3n1 + 4n2 + 5n3 + 6n4 + + (n 1)3 + n2
>1n+1 + 2n + 3n1 + 4n2 + 5n3 + 3(6n5 + + (n 1)2 + n)
=1n+1 + + 5n3 + 3(f (n) 1n 2n1 + 3n2 + 4n3 + 5n4 )
=3f (n) + 2(5n4 1) + 2n1 (2n5 1) > 3f (n).
56. (1996 Putnam Exam) Given that {x1 , x2 , . . . , xn } = {1, 2, . . . , n}, find
the largest possible value of x1 x2 + x2 x3 + + xn1 xn + xn x1 in terms
of n (with n 2).
67
Solution. Let Mn be the largest such cyclic sum for x1 , x2 , . . . , xn .
In case n = 2, we have M2 = 4. Next suppose Mn is attained by
some permutation of 1, 2, . . . , n. Let x, y be the neighbors of n. Then
removing n from the permutation, we get a permutation of 1, 2, . . . , n
1. The difference of the cyclic sums before and after n is removed is
nx + ny xy = n2 (n x)(n y) n2 2. (Equality holds if and
only if x, y are n 1, n 2.) So Mn (n2 2) Mn1 . Then
68
Solutions to Geometry Problems
57. (1995 British Math Olympiad) Triangle ABC has a right angle at C.
The internal bisectors of angles BAC and ABC meet BC and CA
at P and Q respectively. The points M and N are the feet of the
perpendiculars from P and Q to AB. Find angle M CN.
Solution. (Due to Poon Wai Hoi) Using protractor, the angle should
be 45 . To prove this, observe that since P is on the bisector of 6 BAC,
we have P C = P M. Let L be the foot of the perpendicular from C
to AB. Then P M k CL. So 6 P CM = 6 P M C = 6 M CL. Similarly,
6 QCN = 6 N CL. So 6 M CN = 1 6 P CQ = 45 .
2
58. (1988 Leningrad Math Olympiad) Squares ABDE and BCF G are
drawn outside of triangle ABC. Prove that triangle ABC is isosceles if
DG is parallel to AC.
69
we get M, N, C1 , C2 are concyclic. So 6 OC1 C2 = 6 ON M = 6 OKP.
Then C1 C2 k KP, that is C1 C2 is parallel to AB.
60. (1991 Hunan Province Math Competition) Two circles with centers O1
and O2 intersect at points A and B. A line through A intersects the
circles with centers O1 and O2 at points Y, Z, respectively. Let the
tangents at Y and Z intersect at X and lines Y O1 and ZO2 intersect
at P. Let the circumcircle of 4O1 O2 B have center at O and intersect
line XB at B and Q. Prove that P Q is a diameter of the circumcircle
of 4O1 O2 B.
= 180 (6 O1 AY + 6 O2 AZ)
= 6 O1 AO2 = 6 O1 BO2 .
So B, P, O1, O2 are concyclic. Connect BY and BZ. Then
6 Y BZ = 180 (6 AY B + 6 AZB)
1 1
= 180 ( 6 AO1 B + 6 AO2 B)
2 2
= 180 (6 BO1 O2 + 6 BO2 O1 )
= 6 O1 BO2 = 6 O1 P Z = 6 Y P Z.
61. (1981 Beijing City Math Competition) In a disk with center O, there
are four points such that the distance between every pair of them is
greater than the radius of the disk. Prove that there is a pair of per-
pendicular diameters such that exactly one of the four points lies inside
each of the four quarter disks formed by the diameters.
70
Solution. (Due to Lee Tak Wing) By the distance condition on the
four points, none of them equals O and no pair of them are on the same
radius. Let us name the points A, B, C, D in the order a rotating radius
encountered them. Since AB > OA, OB, so 6 AOB > 6 OBA, 6 BAO.
Hence 6 AOB > 60 . Similarly, 6 BOC, 6 COD, 6 DOA > 60 . Let
6 AOB be the largest among them, then 60 < 6 AOB < 360 3
60 = 180 . Let EF be the diameter bisecting 6 AOB and with A, B, E
on the same half disk. Now EF and its perpendicular through O
divide the disk into four quarter disks. We have 90 = 30 + 60 <
6 EOB + 6 BOC.
In the case 60 < 6 AOB < 120 , we get 6 EOB + 6 BOC <
60 + 120 = 180 . In the case 120 6 AOB < 180 , we get 6 AOB +
6 BOC < 360 260 = 240 and 6 EOB + 6 BOC < 240 6 AOE
240 120 /2 = 180 . So A, B, C each is on a different quarter disk.
Similarly, 90 < 6 EOD = 6 EOA + 6 AOD < 180 . Therefore, D will
lie on the remaining quarter disk.
62. The lengths of the sides of a quadrilateral are positive integers. The
length of each side divides the sum of the other three lengths. Prove
that two of the sides have the same length.
Solution. (Due to Chao Khek Lun and Leung Wai Ying) Suppose the
sides are a, b, c, d with a < b < c < d. Since d < a + b + c < 3d and
d divides a + b + c, we have a + b + c = 2d. Now each of a, b, c dvides
a + b + c + d = 3d. Let x = 3d/a, y = 3d/b and z = 3d/c. Then
a < b < c < d implies x > y > z > 3. So z 4, y 5, x 6. Then
3d 3d 3d
2d = a + b + c + + < 2d,
6 5 4
a contradiction. Therefore, two of the sides are equal.
63. (1988 Sichuan Province Math Competition) Suppose the lengths of the
three sides of 4ABC are integers and the inradius of the triangle is 1.
Prove that the triangle is a right triangle.
71
p
of the triangle is rs, we get s(s a)(s b)(s c) = 1 s = s. Then
Geometric Equations
64. (1985 IMO) A circle has center on the side AB of the cyclic quadri-
lateral ABCD. The other three sides are tangent to the circle. Prove
that AD + BC = AB.
72
Solution. Since
1
6 EAB = 6 EO1 B = 90 6 O1 BE = 90 6 F BO2 = 6 BAF,
2
66. Point C lies on the minor arc AB of the circle centered at O. Suppose
the tangent line at C cuts the perpendiculars to chord AB through A
at E and through B at F. Let D be the intersection of chord AB and
radius OC. Prove that CE CF = AD BD and CD 2 = AE BF.
Solution. (Due to Wong Chun Wai) Note that 6 EAD, 6 ECD, 6 F CD,
6 F BD are right angles. So A, D, C, E are concyclic and B, D, C, F are
concyclic. Then 6 ADE = 6 ACE = 6 ABC = 6 DF C, say the measure
of these angles is . Also, 6 BDF = 6 BCF = 6 BAC = 6 DEC, say
the measure of these angle is . Then
P 0 A2 + P 0 B 2 + P 0 C 2 = P A02 + P B 02 + P C 02 .
73
2OE), by cosine law again, we get P C 02 + 2P E 2 = 3(P O 2 + 2OE)2 .
Putting these together, we get
Similarly, P 0 A2 + P 0 B 2 + P C 02 = 3(P O 2 + P 0 O 2 ).
Alternatively, the problem can be solved using complex numbers.
Without loss of generality, let the center be at the origin, A0 be at
rei = r(cos + i sin ) and P be at Rei . Let = e2i/3 . We have
P A02 + P B 02 + P C 02
=|Rei rei |2 + |Rei rei |2 + |Rei rei 2 |2
=3R2 2Re Rrei() (1 + + 2 ) + 3r 2
=3R2 + 3r 2 .
Similarly, P 0 A2 + P 0 B 2 + P 0 C 2 = 3R2 + 3r 2 .
68. Let the inscribed circle of triangle ABC touchs side BC at D, side CA
at E and side AB at F. Let G be the foot of perpendicular from D to
FG BF
EF. Show that = .
EG CE
Solution. (Due to Wong Chun Wai) Let I be the incenter of 4ABC.
Then 6 BDI = 90 = 6 EGD. Also, 6 DEG = 12 6 DIF = 6 DIB.
So 4BDI, 4EGD are similar. Then BD/ID = DG/EG. Likewise,
4CDI, 4F GD are similar and CD/ID = DG/F G. Therefore,
FG DG/EG BD/ID BD BF
= = = = .
EG DG/F G CD/ID CD CE
FA DP EF EA
= and () = .
EF PE ED EP
Since 6 B + 6 D + 6 F = 360 , we get 6 ABC = 6 P DC. Also,
AB DE F A DP
= = .
BC CD EF CD
Then 4ABC, 4P DC are similar. Consequently, we get 6 BCA =
6 DCP and (**) CB/CD = CA/CP. Since 6 F ED = 6 AEP, by (*),
4F ED, 4AEP are similar. Also, since 6 BCD = 6 ACP, by (**),
4BCD, 4ACP are similar. So AE/EF = P A/F D and BC/CA =
DB/P A. Multiplying these and moving all factors to the left side, we
get the desired equation.
Using complex numbers, we can get an algebraic solution. Let
a, b, c, d, e, f denote the complex numbers corresponding to A, B, C, D,
E, F, respectively. (The origin may be taken anywhere on the plane.)
Since ABCDEF is convex, 6 B, 6 D and 6 F are the arguments of the
complex numbers (a b)/(c b), (c d)/(e d) and (e f )/(a f ),
respectively. Then the condition 6 B + 6 D + 6 F = 360 implies that
the product of these three complex numbers is a positive real number.
It is equal to the product of their absolute values AB/BC, CD/DE
and EF/F A. Since (AB/BC)(CD/DE)(EF/F A) = 1, we have
ab cd ef
= 1.
cb ed af
So
0 = (a b)(c d)(e f ) (c b)(e d)(a f )
= (b c)(a e)(f d) (a c)(f e)(b d).
75
Then
BC AE F D b c a e f d
= = 1.
CA EF DB ac f e bd
Similar Triangles
70. (1984 British Math Olympiad) P, Q, and R are arbitrary points on the
sides BC, CA, and AB respectively of triangle ABC. Prove that the
three circumcentres of triangles AQR, BRP, and CP Q form a triangle
similar to triangle ABC.
6 C 0 A0 B 0 = 6 C 0 A0 X + 6 XA0B 0
1 1
= 6 QA0 X + 6 RA0 X
2 2
1
= 6 QA0 R = 6 CAB.
2
Similarly, 6 A0 B 0 C 0 = 6 ABC and 6 B 0 C 0 A0 = 6 BCA. So, triangles
A0 B 0 C 0 and ABC are similar.
76
ON = OS. Let 6 AOB = 6 COD = 6 EOF = 2. Then 6 RON =
16 16 1 6
2 SON = 2 ARB = 4 ( AOB + EOF ) = . Hence, ON/OR =
6
cos . Similarly, 6 P OL = 6 QOM = and OL/OP = OM/OQ =
cos .
Next rotate 4P QR around O at angle so that the image Q0
of Q lies on the line OM, the image R0 of R lies on the line ON
and the image P 0 of P lies on line OL. Then ON/OR0 = OL/OP 0 =
OM/OQ0 = cos . So 4P 0 Q0 R0 , 4LM N are similar. Since L, M, N
are midpoints of BD, DF, F B, respectively, we have 4LM N, 4BDF
are similar. Therefore, 4P QR, 4BDF are similar.
CD AB
d(P, AD) = d(E, AD) + d(F, AD),
AB + CD AB + CD
CD AB
[AP D] = [AED] + [AF D]
AB + CD AB + CD
a CD b AB
= [ABD] + [ACD],
AB + CD AB + CD
CD AB
d(P, BC) = d(E, BC) + d(F, BC),
AB + CD AB + CD
CD AB
[BP C] = [BEC] + [BF C]
AB + CD AB + CD
b CD a AB
= [BAC] + [BDC].
AB + CD AB + CD
77
Since A, B, C, D are concyclic, sin 6 BAD = sin 6 BCD and sin 6 ABC=
sin 6 ADC, So,
Tangent Lines
74. (1999 IMO) Two circles 1 and 2 are contained inside the circle ,
and are tangent to at the distinct points M and N, respectively.
78
1 passes through the center of 2 . The line passing through the two
points of intersection of 1 and 2 meets at A and B, respectively.
The lines M A and M B meets 1 at C and D, respectively. Prove that
CD is tangent to 2 .
75. (Proposed by India for 1992 IMO) Circles G1 and G2 touch each other
externally at a point W and are inscribed in a circle G. A, B, C are
points on G such that A, G1 and G2 are on the same side of chord BC,
which is also tangent to G1 and G2 . Suppose AW is also tangent to
G1 and G2 . Prove that W is the incenter of triangle ABC.
79
Since D is the midpoint of arc BC, so AW bisects 6 BAC. Also,
6 ABW = 6 BW D 6 BAD = 6 W BD 6 CBD = 6 CBW
Locus
77. Suppose A is a point inside a given circle and is different from the
center. Consider all chords (excluding the diameter) passing through
A. What is the locus of the intersection of the tangent lines at the
endpoints of these chords?
Solution. (Due to Wong Him Ting) Let O be the center and and r
be the radius. Let A0 be the point on OA extended beyond A such
that OA OA0 = r 2 . Suppose BC is one such chord passing through
A and the tangents at B and C intersect at D 0 . By symmetry, D 0 is
on the line OD, where D is the midpoint of BC. Since 6 OBD 0 = 90 ,
OD OD 0 = OB 2 (= OA OA0 .) So 4OAD is similar to 4OD 0 A0 .
Since 6 ODA = 90 , D 0 is on the line L perpendicular to OA at A0 .
Conversely, for D 0 on L, let the chord through A perpendicular
to OD 0 intersect the circle at B and C. Let D be the intersection of
80
the chord with OD 0 . Now 4OAD, 4OD 0A0 are similar right triangles.
So OD OD 0 = OA OA0 = OB 2 = OC 2 , which implies 6 OBD 0 =
6 OCD 0 = 90 . Therefore, D 0 is on the locus. This shows the locus is
the line L.
79. (1996 Putnam Exam) Let C1 and C2 be circles whose centers are 10
units apart, and whose radii are 1 and 3. Find the locus of all points
M for which there exists points X on C1 and Y on C2 such that M is
the midpoint of the line segment XY.
81. (1965 Putnam Exam) If A, B, C, D are four distinct points such that
every circle through A and B intersects or coincides with every circle
through C and D, prove that the four points are either collinear or
concyclic.
82
lines AB and AC are distinct, every intersection Hi Kj is only a
finite set. So there can only be finitely many points that are integral
distances from A, B, C, a contradiction. Therefore, the given points
must be collinear.
83. (1995 IMO shortlisted problem) The incircle of triangle ABC touches
BC, CA and AB at D, E and F respectively. X is a point inside
triangle ABC such that the incircle of triangle XBC touches BC at
D also, and touches CX and XB at Y and Z respectively. Prove that
EF ZY is a cyclic quadrilateral.
84. (1998 IMO) In the convex quadrilateral ABCD, the diagonals AC and
BD are perpendicular and the opposite sides AB and DC are not
parallel. Suppose the point P, where the perpendicular bisectors of
AB and DC meet, is inside ABCD. Prove that ABCD is a cyclic
quadrilateral if and only if the triangles ABP and CDP have equal
areas.
83
p p p p
i.e. ( r 2p
p2 r 2p
q 2 pq)/2 = ( s2 p2 s2 q 2 pq)/2. Since
f (x) = ( x2 p2 x2 q 2 pq)/2 is strictly decreasing when x |p|
and |q|, the determinants are equal if and only if r = s, which is
equivalent to ABCD cyclic.
85. (1970 Putnam Exam) Show that if a convex quadrilateral with side-
lengths a, b, c, d and area abcd has an inscribed circle, then it is a
cyclic quadrilateral.
Concurrent Lines
86. In 4ABC, suppose AB > AC. Let P and Q be the feet of the per-
pendiculars from B and C to the angle bisector of 6 BAC, respectively.
Let D be on line BC such that DA AP. Prove that lines BQ, P C
and AD are concurrent.
84
AD AP, so BB 0 k AD. Then 4BCB 0 , 4DAC are similar. Since P
is the midpoint of BB 0 , so P C intersects AD at its midpoint M. Now
AQ MC AM AM
= = 0 = .
PQ PC BP BP
88. (1995 IMO) Let A, B, C and D be four distinct points on a line, in that
order. The circles with diameters AC and BD intersect at the points
X and Y. The line XY meets BC at the point Z. Let P be a point on
the line XY different from Z. The line CP intersects the circle with
diameter AC at the points C and M, and the line BP intersects the
circle with diameter BD at the points B and N. Prove that the lines
AM, DN and XY are concurrent.
Solution 1. (Due to Yu Chun Ling) Let AR be parallel to BP and
DR0 be parallel to CP, where R and R0 are points on line XY. Since
BZ ZD = XZ ZY = CZ ZA, we get BZ/AZ = CZ/DZ. Since
4CZP is similar to 4DZR0 and 4BZP is similar to 4AZR, so
ZP BZ CZ ZP
= = = .
ZR AZ DZ ZR0
85
Hence R and R0 must coincide. Therefore, 4BP C is similar to 4ARD.
Since XY AD, AM CM, CM k DR, DN BN and
BN k AR, the lines AM, DN, XY are the extensions of the altitudes
of 4ARD, hence they must be concurrent.
Solution 2. (Due to Mok Tze Tao) Set the origin at Z and the x-
axis on line AD. Let the coordinates of the circumcenters of triangles
AM C and BN D be (x1 , 0) and (x2 , 0), and the circumradii be r1 and
r2 , respectively. Then the coordinates of A and C are (x1 r1 , 0) and
(x1 + r1 , 0), respectively. Let the coordinates of P be (0, y0 ). Since
y0
AM CP and the slope of CP is , the equation of AM
x1 + r1
works out to be (x1 + r1 )x y0 y = x21 r12 . Let Q be the intersection of
r12 x21
AM with XY, then Q has coordinates (0, ). Similarly, let Q0 be
y0
0 r22 x22
the intersection of DN with XY, then Q has coordinates (0, ).
y0
Since r12 x21 = ZX 2 = r22 x22 , so Q = Q0 .
Solution 3. Let AM intersect XY at Q and DN intersect XY at
Q0 . Observe that the right triangles AZQ, AM C, P ZC are similar, so
AZ/QZ = P Z/CZ. Then QZ = AZ CZ/P Z = XZ Y Z/P Z. Simi-
larly, Q0 Z = XZ Y Z/P Z. Therefore Q = Q0 .
89. AD, BE, CF are the altitudes of 4ABC. If P, Q, R are the midpoints
of DE, EF, F D, respectively, then show that the perpendicular from
P, Q, R to AB, BC, CA, respectively, are concurrent.
86
inscribed in a circle. Show that the diagonals AD, BE, CF are concur-
rent if and only if AB CD EF = BC DE F A.
AG h AB sin 6 ABG
= = .
CG k BC sin 6 CBG
Similarly,
AG CH EI AB CD EF
1= = .
CG EH AI BC DE F A
87
C, B1 , B2 , A. Suppose B1 C1 , B2 C2 meets at X, C1 A1 , C2 A2 meets at
Y and A1 B1 , A2 B2 meets at Z. Show that AX, BY, CZ are concurrent.
88
So X = Y is on both L1 and L2 , hence it is P. Therefore, H, P, H 0 are
collinear.
For the problem, let BB 0 , CC 0 intersect at P. Since 6 ABH =
90 6 A = 6 AC 0 H 0 , so BH k C 0 H 0 . Similarly, CH k B 0 H 0 . Let
BH, CC 0 intersect at L and CH, BB 0 intersect at K. Now
6 P BH = 6 ABH 6 C 0 BP = (90 6 A) 6 B 0 CP
= 6 ACH 6 B 0 CP = 6 P CH.
6 CBH = 90 6 ACB = 90 6 AC 0 B 0 = 6 C 0 B 0 H 0
Perpendicular Lines
93. (1998 APMO) Let ABC be a triangle and D the foot of the altitude
from A. Let E and F be on a line passing through D such that AE
is perpendicular to BE, AF is perpendicular to CF, and E and F are
different from D. Let M and N be the midpoints of the line segments
BC and EF, respectively. Prove that AN is perpendicular to N M.
Solution. (Due to Cheung Pok Man) There are many different pic-
tures, so it is better to use coordinate geometry to cover all cases.
Set A at the origin and let y = b 6= 0 be the equation of the line
through D, E, F. (Note the case b = 0 implies D = E = F, which
is not allowed.) Let the coordinates of D, E, F be (d, b), (e, b), (f, b),
respectively. Since BE AE and slope of AE is b/e, so the equa-
tion of line AE is ex + by (b2 + e2 ) = 0. Similarly, the equation of
line CF is f x + by (b2 + f 2 ) = 0 and the equation of line BC is
dx + by (b2 + d2 ) = 0.
89
From these, we found the coordinates of B, C are (d+e, b de b ), (d+
df e+f
f, b b ), respectively. Then the coordinates of M, N are (d + 2 , b
de+df
2b
), ( e+f
2
, b), respectively. So the slope of AN is 2b/(e + f ) and the
slope of M N is ( de+df e+f
2b )/d = 2b . The product of these slopes is
1. Therefore, AN M N.
94. (2000 APMO) Let ABC be a triangle. Let M and N be the points
in which the median and the angle bisector, respectively, at A meet
the side BC. Let Q and P be the points in which the perpendicular at
N to N A meets M A and BA, respectively, and O the point in which
the perpendicular at P to BA meets AN produced. Prove that QO is
perpendicular to BC.
Solution 1. (Due to Wong Chun Wai) Set the origin at N and the
x-axis on line N O. Let the equation of line AB be y = ax + b, then
1
the equation of lines AC and P O are y = ax b and y = x + b,
a
respectively. Let the equation of BC be y = cx. Then B has co-
b bc b bc
ordinates ( , ), C has coordinates ( , ), M has
ca ca c+a c+a
ab abc b
coordinates ( 2 2
, 2 2
), A has coordinates ( , 0), O has co-
c a c a a
ab
ordinates (ab, 0) and Q has coordinates (0, ). Then BC has slope c
c
1
and QO has slope . Therefore, QO BC.
c
Solution 2. (Due to Poon Wai Hoi) The case AB = AC is clear.
Without loss of generality, we may assume AB > AC. Let AN intersect
the circumcircle of 4ABC at D. Then
1
6 DBC = 6 DAC = 6 BAC = 6 DAB = 6 DCB.
2
So DB = DC and M D BC.
With A as the center of homothety, shrink D to O, B to B 0 and C
to C 0 . Then 6 OB 0 C 0 = 12 6 BAC = 6 OC 0 B 0 and BC k B 0 C 0 . Let B 0 C 0
cut P N at K. Then 6 OB 0 K = 6 DAB = 6 OP K. So P, B 0 , O, K are
concyclic. Hence 6 B 0 KO = 6 B 0 P O = 90 and so B 0 K = C 0 K. Since
90
BC k B 0 C 0 , this implies A, K, M are collinear. Therefore, K = Q.
Since 6 B 0 KO = 90 and BC k B 0 C 0 , we get QO BC.
96. (1996 Chinese Team Selection Test) The semicircle with side BC of
4ABC as diameter intersects sides AB, AC at points D, E, respec-
tively. Let F, G be the feet of the perpendiculars from D, E to side
BC respectively. Let M be the intersection of DG and EF. Prove that
AM BC.
97. (1985 IMO) A circle with center O passes through the vertices A and
C of triangle ABC and intersects the segments AB and AC again at
91
distinct points K and N, respectively. The circumcircles of triangles
ABC and KBN intersect at exactly two distinct points B and M.
Prove that OM M B.
98. (1997 Chinese Senoir High Math Competition) A circle with center O
is internally tangent to two circles inside it at points S and T. Suppose
the two circles inside intersect at M and N with N closer to ST. Show
that OM M N if and only if S, N, T are collinear.
6 SM T = 6 SM N + 6 T M N = 6 N SK + 6 KT N = 180 6 SKT.
92
Thus, 6 T N S = 360 6 N SK 6 SKT 6 KT N = 180 . Therefore,
S, N, T are collinear.
99. AD, BE, CF are the altitudes of 4ABC. Lines EF, F D, DE meet lines
BC, CA, AB in points L, M, N, respectively. Show that L, M, N are
collinear and the line through them is perpendicular to the line joining
the orthocenter H and circumcenter O of 4ABC.
Solution. When n = 0, then |OP1 | = 1. Suppose the case n = k is true.
For the case n = k + 1, we may assume P1 , P2 , . . . , P2k+3 are arranged
clockwise. Let OR = OP2 + + OP2k+2 and OS = OP1 + OP2k+3 .
By the case n = k, |OR | 1. Also, OR lies inside 6 P1 OP2k+3 . Since
|OP1 | = 1 = |OP2k+3 |, OS bisects 6 P1 OP2k+3 . Hence 6 ROS 90 .
Then |OP1 + + OP2k+3 | = |OR + OS | |OR | 1.
AP + BQ + CR > BC + CA + AB.
93
Solution. (Due to Lau Lap Ming) Since 6 ABQ = 6 CBQ, we have
AQ = CQ. By cosine law,
102. (1997 APMO) Let ABC be a triangle inscribed in a circle and let la =
ma /Ma , lb = mb /Mb , lc = mc /Mc , where ma , mb , mc are the lengths
of the angle bisectors (internal to the triangle) and Ma , Mb , Mc are
the lengths of the angle bisectors extended until they meet the circle.
Prove that
la lb lc
2 + 2 + 3,
sin A sin B sin2 C
and that equality holds iff ABC is equilateral.
Solution. (Due to Fung Ho Yin) Let A0 be the point the angle bisector
of 6 A extended to meet the circle. Applying sine law to 4ABA0 , we
get AB/ sin C = Ma / sin(B + A 2
). Applying sine law to 4ABD, we get
AB/ sin(C + A2
) = ma / sin B. So
ma sin B sin C
la = = sin B sin C.
Ma sin(B + A2
) sin(C + A
2
)
94
103. (Mathematics Magazine, Problem 1506) Let I and O be the incen-
ter and circumcenter of 4ABC, respectively. Assume 4ABC is not
equilateral (so I 6= O). Prove that
104. Squares ABDE and ACF G are drawn outside 4ABC. Let P, Q be
points on EG such that BP and CQ are perpendicular to BC. Prove
that BP + CQ BC + EG. When does equality hold?
BP + CQ = 2M N = 2(LN + M L)
2(AO + M A) = 2(BM + OE) = BC + EG.
95
105. Point P is inside 4ABC. Determine points D on side AB and E on
side AC such that BD = CE and P D + P E is minimum.
106. (Proposed by Italy for 1967 IMO) Which regular polygons can be ob-
tained (and how) by cutting a cube with a plane?
Solution. (Due to Fan Wai Tong, Kee Wing Tao and Tam Siu Lung)
Observe that if two sides of a polygon is on a face of the cube, then
the whole polygon lies on the face. Since a cube has 6 faces, only
regular polygon with 3, 4, 5 or 6 sides are possible. Let the vertices
of the bottom face of the cube be A, B, C, D and the vertices on the
top face be A0 , B 0 , C 0 , D 0 with A0 on top of A, B 0 on top of B and so
on. Then the plane through A, B 0 , D 0 cuts an equilateral triangle. The
perpendicular bisecting plane to edge AA0 cuts a square. The plane
through the midpoints of edges AB, BC, CC 0 , C 0 D 0 , D 0 A0 , A0 A cuts a
regular hexagon. Finally, a regular pentagon is impossible, otherwise
the five sides will be on five faces of the cube implying two of the
sides are on parallel planes, but no two sides of a regular pentagon are
parallel.
107. (1995 Israeli Math Olympiad) Four points are given in space, in general
position (i.e., they are not coplanar and any three are not collinear).
96
A plane is called an equalizing plane if all four points have the same
distance from . Find the number of equalizing planes.
Solution. The four points cannot all lie on one side of an equalizing
plane, otherwise they would lie in a plane parallel to the equalizing
plane. Hence either three lie on one side and one on the other or two
lie on each side. In the former case, there is exactly one equalizing
plane, which is parallel to the plane P containing the three points and
passing through the midpoint of the segment joining the fourth point x
and the foot of the perpendicular from x to P. In the latter case, again
there is exactly one equalizing plane. The two pair of points determine
two skew lines in space. Consider the two planes, each containing one
of the line and is parallel to the other line. The equalizing plane is
the plane midway between these two plane. Since there are 4 + 3 = 7
ways of dividing the four points into these two cases, there are exactly
7 equalizing planes.
97
Solutions to Number Theory Problems
Digits
108. (1956 Putnam Exam) Prove that every positive integer has a multiple
whose decimal representation involves all ten digits.
109. Does there exist a positive integer a such that the sum of the digits
(in base 10) of a is 1999 and the sum of the digits (in base 10) of a2 is
19992 ?
Observe that the exponent are all different by the uniqueness of base
2 representation. Therefore, the sum of the digits of a2 in base 10 is
k + 2C2k = k 2 .
110. (Proposed by USSR for 1991 IMO) Let an be the last nonzero digit
in the decimal representation of the number n!. Does the sequence
a1 , a2 , . . . , an , . . . become periodic after a finite number of terms?
98
Observe that 10k ! = 10k (10k 1)! implies a10k = a10k 1 . Let
n = 10k 1+jT. Since 10k 1 N, an+1 = a10k +jT = a10k 1+jT = an .
Since (n + 1)! = (2 10k 10m )(n!) = 199 90 0(n!), so 9an =
9an1 an (mod 10). This implies an = 5. However, in the prime
factorization of n!, the exponent of 2 is greater than the exponent of
5, which implies an is even, a contradiction.
Modulo Arithmetic
111. (1956 Putnam Exam) Prove that the number of odd binomial coeffi-
cients in any row of the Pascal triangle is a power of 2.
m m
Solution. By induction, (1 + x)2 1 + x2 (mod 2). If we write n
in base 2, say n = 2a1 + 2a2 + + 2ak , where the ai s are distinct
nonnegative integers, then
a1 ak a1 ak
(1 + x)n = (1 + x)2 (1 + x)2 (1 + x2 ) (1 + x2 ) (mod 2).
nS
In expanding the expression in front of (mod 2), Xwe get the sum of x ,
where for each subset S of {1, 2, . . . , k}, nS = 2ai . Since there are 2k
iS
k
subsets of {1, 2, . . . , k}, there are exactly 2 terms, each with coefficient
1. This implies there are exactly 2k odd binomial coefficients in the
n-th row of the Pascal triangle.
99
113. (1995 Czech-Slovak Match) Let a1 , a2 , . . . be a sequence satisfying a1 =
2, a2 = 5 and
an+2 = (2 n2 )an+1 + (2 + n2 )an
for all n 1. Do there exist indices p, q and r such that ap aq = ar ?
Solution. (Due to Lau Lap Ming) The first few terms are 2, 5, 11, 8, 65,
766, . . . . Since the differences of consecutive terms are multiples of 3,
we suspect an 2 (mod 3) for all n. Clearly, a1 , a2 2 (mod 3). If
an , an+1 2 (mod 3), then
Prime Factorization
115. (1971 IMO) Prove that the set of integers of the form 2k 3 (k =
2, 3, . . .) contains an infinite subset in which every two members are
relatively prime.
100
Solution. We shall give a recipe for actually constructing an infinite
set of integers of the form ai = 2ki 3, i = 1, 2, . . . , each relatively
prime to all the others. Let a1 = 22 3 = 1. Suppose we have n pairwise
relatively prime numbers a1 = 2k1 3, a2 = 2k2 3, . . . , an = 2kn 3.
We form the product s = a1 a2 an , which is odd. Now consider the
s + 1 numbers 20 , 21 , 22 , . . . , 2s . At least two of these will be congruent
(mod s), say 2 2 (mod s), or equivalently 2 (2 1) = ms
for some integer m. The odd number s does not divide 2 , so it must
divide 2 1; hence 2 1 = ls for some integer l. Since 2 1
is divisible by s and s is odd, 2 3 is relatively prime to s. This
implies 2 3 6= 2ki 3 for i = 1, 2, . . . , n. So we may define an+1 =
2 3. This inductive construction can be repeated to form an infinite
sequence.
Comments. By Eulers theorem, we may take the exponent to be
(s), the Euler -function of s, which equals the number of positive in-
tegers less than s that are relatively prime to s, then 2(s) 1 (mod s).
116. (1988 Chinese Math Olympiad Training Test) Determine the smallest
value of the natural number n > 3 with the property that whenever
the set Sn = {3, 4, . . . , n} is partitioned into the union of two sub-
sets, at least one of the subsets contains three numbers a, b and c (not
necessarily distinct) such that ab = c.
Solution. (Due to Lam Pei Fung) We first show that 35 = 243 has the
property, then we will show it is the least solution.
Suppose S243 is partitioned into two subsets X1 , X2 . Without loss
of generality, let 3 be in X1 . If 32 = 9 is in X1 , then we are done.
Otherwise, 9 is in X2 . If 92 = 81 is in X2 , then we are done. Otherwise,
81 is in X1 . If 81/3 = 27 is in X1 , then we are done. Otherwise, 27 is
in X2 . Finally, either 3 81 = 243 is in X1 or 9 27 = 243 is in X2 .
In either case we are done.
To show 243 is the smallest, we will show that S242 can be par-
titioned into two subsets, each of which does not contain products of
its elements. Define C to be prime in S242 if C is not the product
of elements of S242 . The primes in S242 consist of 4, 8, p, 2p where
p < 242 is a usual prime number. Since the smallest prime in S242 is
101
3, no number in S242 is the product of more than four primes. Put
all the primes and numbers that can be written as products of four
primes in one subset X1 , and let X2 = S242 \ X1 .
No products in X2 are in X2 because numbers in X2 have at least
two prime factors, so their products can be written with at least four
prime factors. Next looking at the product of 4, 8, p, 2p (p odd prime
< 242), we see that a product of two primes cannot be factored into
a product of four primes. So no products in X1 are in X1 .
Base n Representations
117. (1983 IMO) Can you choose 1983 pairwise distinct nonnegative integers
less than 105 such that no three are in arithmetic progression?
(Note this sequence is the nonnegative integers in base 2.) Since 1982 in
base 2 is 11110111110, so switching this from base 3 to base 10, we get
the 1983th term of the sequence is 87843 < 105 . To see this sequence
works, suppose x, y, z with x < y < z are three terms of the sequence
in arithmetic progression. Consider the rightmost digit in base 3 where
x differs from y, then that digit for z is a 2, a contradiction.
102
Clearly, gcd(m, p) = 1. Then
119. (Proposed by Romania for 1985 IMO) Show that the sequence {an }
defined by an = [n 2] for n = 1, 2, 3, . . . (where the brackets denote
the greatest integer function) contains an infinite number of integral
powers of 2.
Solution.
Write 2 in base 2 as b0 .b1 b2 b3 . . . , where each bi = 0 or 1.
Since 2 is irrational,
there are infinitely many bk =1. If bk = 1, then
k1
in base 2, 2 2 = b0 bk1 .bk Let m = [2k1 2], then
1
2k1 2 1 < [2k1 2] = m < 2k1 2 .
2
2
Multiplying by 2 and adding 2, we get 2k < (m + 1) 2 < 2k + .
2
Then [(m + 1) 2] = 2k .
Representations
120. Find all (even) natural numbers n which can be written as a sum of
two odd composite numbers.
121. Find all positive integers which cannot be written as the sum of two
or more consecutive positive integers.
103
Solution. (Due to Cheung Pok Man) For odd integer n = 2k + 1 3,
n = k + (k + 1). For even integer n 2, suppose n = m + (m + 1) +
+ (m + r) = (2m + r)(r + 1)/2 with m, r 1. Then 2m + r, r + 1 2
and one of 2m + r, r + 1 is odd. So n must have an odd divisor greater
than 1. In particular, n = 2j , j = 0, 1, 2, . . . , cannot be written as
the sum of consecutive positive integers. For the other even integers,
n = 2j (2k +1) with j, k 1. If 2j > k, then n = (2j k)+(2j k +1)+
+(2j +k). If 2j k, then n = (k2j +1)+(k2j +2)+ +(k+2j ).
122. (Proposed by Australia for 1990 IMO) Observe that 9 = 4+5 = 2+3+4.
Is there an integer N which can be written as a sum of 1990 consecutive
positive integers and which can be written as a sum of (more than one)
consecutive integers in exactly 1990 ways?
1989
X
Solution. For such N , we have N = (m + i) = 995(2m + 1989). So
i=0
N is odd and is divisible by 995 = 5 199. Also, there are exactly 1990
X k
(k + 1)(n + 2k)
positive integer pairs (n, k) such that N = (n + i) = .
2
i=0
Hence 2N can be factored as (k+1)(2n+k) in exactly 1990 ways. (Note
if 2N = ab with 2 a < b, then n = (1 + b a)/2, k = a 1.) This
means 2N has exactly 2 1991 = 2 11 181 positive divisors. Now
write 2N in prime factorization as 2 5e1 199e2 . Then we get
2 11 181 = 2(e1 + 1)(e2 + 1) . So {e1 , e2 } = {10, 180}. Therefore,
N = 510 199180 or 5180 19910 . As all the steps can be reversed, these
are the only answers.
123. Show that if p > 3 is prime, then pn cannot be the sum of two positive
cubes for any n 1. What about p = 2 or 3?
104
For p = 2, suppose a3 + b3 = 2n . If a + b > 2, then 2 | a, 2 | b and
( a2 )3 + ( 2b )3 = 2n3 . So a = b = 2k and n = 3k + 1.
For p = 3, suppose a3 + b3 = 3n . If a + b = 3k and a2 ab + b2 =
3nk 32 , then 9 | 3ab implies 3 | a, 3 | b and ( a3 )3 + ( 3b )3 = 3n3 .
Otherwise we have 3 = a2 ab + b2 ab and then a + b = 3. So in this
case, a, b are 2 3k , 3k and n = 3k + 2.
124. (Due to Paul Erdos and M. Suranyi) Prove that every integer k can be
represented in infinitely many ways in the form k = 12 22 m2
for some positive integer m and some choice of signs + or .
Now 0 = 4 4 = (12 22 + 32 ) 42 + 52 + 62 72 , 1 = 12 , 2 =
12 22 32 +42 , 3 = 12 +22 . By the identity, if k can be represented,
then k + 4 can be represented. So by induction, every nonnegative
integer (and hence every integer) can be represented. To see there
are infinitely many such representations, we use the identity again.
Observe 0 = 4 4 = (m + 1)2 (m + 2)2 (m + 3)2 + (m + 4)2 (m +
5)2 + (m + 6)2 + (m + 7)2 (m + 8)2 . So for every representation, we
can add 8 more terms to get another representation.
105
ak 12 + 22 + + k 2 = k(k + 1)(2k + 1)/6. So a17 1785. Also
ak 12 + 22 + + k 2 (mod 2). Since 12 + 22 + + 182 is odd,
n 19. To construct such a quadratic sequence with n = 19, first note
12 + 22 + + 192 = 2470. Now we write (2470 1996)/2 = 237 =
142 + 52 + 42 . Then
126. Prove that every integer greater than 17 can be represented as a sum of
three integers > 1 which are pairwise relatively prime, and show that
17 does not have this property.
127. (1988 Chinese Team Selection Test) Define xn = 3xn1 + 2 for all
positive integers n. Prove that an integer value can be chosen for x0 so
that x100 is divisible by 1988.
106
xn 2
Solution. Let yn = , then y n = y n1 + , which implies
3n 3n
2 2 2
yn = y0 + + 2 + + n.
3 3 3
This gives xn = (x0 + 1)3n 1. We want x100 = (x0 + 1)3100 1 to be
divisible by 1988 = 4 7 71, which means
x0 0 (mod 4), x0 1 (mod 7), x0 45 (mod 71).
Since 4, 7, 71 are pairwise relatively prime, by the Chinese remainder
theorem, such x0 exists.
128. (Proposed by North Korea for 1992 IMO) Does there exist a set M
with the following properties:
(a) The set M consists of 1992 natural numbers.
(b) Every element in M and the sum of any number of elements in M
have the form mk , where m, k are positive integers and k 2?
Divisibility
129. Find all positive integers a, b such that b > 2 and 2a + 1 is divisible by
2b 1.
107
2r + 1
Since 0 < < 1, there are no solutions.
2b 1
130. Show that there are infinitely many composite n such that 3n1 2n1
is divisible by n.
131. Prove that there are infinitely many positive integers n such that 2n +1
is divisible by n. Find all such ns that are prime numbers.
132. (1998 Romanian Math Olympiad) Find all positive integers (x, n) such
that xn + 2n + 1 is a divisor of xn+1 + 2n+1 + 1.
Solution. (Due to Cheng Kei Tsi and Leung Wai Ying) For x = 1,
2(1n +2n +1) > 1n+1 +2n+1 +1 > 1n +2n +1. For x = 2, 2(2n +2n +1) >
2n+1 + 2n+1 + 1 > 2n + 2n + 1. For x = 3, 3(3n + 2n + 1) > 3n+1 +
2n+1 + 1 > 2(3n + 2n + 1). So there are no solutions with x = 1, 2, 3.
For x 4, if n 2, then we get x(xn + 2n + 1) > xn+1 + 2n+1 + 1.
Now
xn+1 + 2n+1 + 1
=(x 1)(xn + 2n + 1)
+ xn (2n + 1)x + 3 2n + 2
>(x 1)(xn + 2n + 1)
108
because for n = 2, xn (2n + 1)x + 2n+1 = x2 5x + 8 > 0 and for
n 3, xn (2n + 1)x x(4n1 2n 1) > 0. Hence only n = 1
and x 4 are possible. Now xn + 2n + 1 = x + 3 is a divisor of
xn+1 + 2n+1 + 1 = x2 + 5 = (x 3)(x + 3) + 14 if and only if x + 3
is a divisor of 14. Since x + 3 7, x = 4 or 11. So the solutions are
(x, y) = (4, 1) and (11, 1).
133. (1995 Bulgarian Math Competition) Find all pairs of positive integers
x2 + y 2
(x, y) for which is an integer and divides 1995.
xy
135. (1998 Putnam Exam) Let A1 = 0 and A2 = 1. For n > 2, the number
An is defined by concatenating the decimal expansions of An1 and
An2 from left to right. For example, A3 = A2 A1 = 10, A4 = A3 A2 =
109
101, A5 = A4 A3 = 10110, and so forth. Determine all n such that An
is divisible by 11.
136. (1995 Bulgarian Math Competition) If k > 1, show that k does not
divide 2k1 + 1. Use this to find all prime numbers p and q such that
2p + 2q is divisible by pq.
137. Show that for any positive integer n, there is a number whose decimal
representation contains n digits, each of which is 1 or 2, and which is
divisible by 2n .
110
divisible by 2n . For n = 1, this is clear. Suppose this is true for n = k.
Now if a, b are (k + 1)-digit numbers, where each digit equals 1 or 2,
and a b (mod 2k+1 ), then the units digits of a, b are the same. If
a = 10a0 + i, b = 10b0 + i, where i is the units digit, then 2k+1 divides
a b = 10(a0 b0 ) is equivalent to 2k divides a0 b0 . Since a0 , b0 are
k-digit numbers (with digits equal 1 or 2), we have a0 = b0 . So a = b,
completing the induction.
138. For a positive integer n, let f (n) be the largest integer k such that 2k
divides n and g(n) be the sum of the digits in the binary representation
of n. Prove that for any positive integer n,
(a) f (n!) = n
g(n);
2n (2n)!
(b) 4 divides = if and only if n is not a power of 2.
n n!n!
So
r
r
X X n n r
X n
g(n) = ai = 2 i+1 = n = n f (n!).
2i 2 2i
i=0 i=0 i=0
139. (Proposed by Australia for 1992 IMO) Prove that for any positive in-
teger m, there exist an infinite number of pairs of integers (x, y) such
that
111
(a) x and y are relatively prime;
(b) y divides x2 + m;
(c) x divides y 2 + m.
x2 (z 2 + m) = (y 2 + m) + x2 m = y 4 + 2my 2 + m(x2 + m)
141. (1972 Putnam Exam) Show that if n is an integer greater than 1, then
n does not divide 2n 1.
112
142. (Proposed by Romania for 1985 IMO) For k 2, let n1 , n2 , . . . , nk be
positive integers such that
n2 (2n1 1), n3 (2n2 1), . . . , nk (2nk1 1), n1 (2nk 1).
Prove that n1 = n2 = = nk = 1.
143. (1998 APMO) Determine the largest of all integer n with theproperty
that n is divisible by all positive integers that are less than 3 n.
144. (1997 Ukrainian Math Olympiad) Find the smallest integer n such that
among any n integers (with possible repetitions), there exist 18 integers
whose sum is divisible by 18.
113
answer. Consider the statement among any 2k1 integers, there exist
k of them whose sum is divisible by k. We will first show that if the
statement is true for k = k1 and k2 , then it is true for k = k1 k2 .
Suppose it is true for k = k1 and k2 . Since the case k = k1 is true,
for 2k1 k2 1 integers, we can take out 2k1 1 of them and pick k1 of
them with sum divisible by k1 to form a group. Then return the other
k1 1 integers to the remaining integers and repeat the taking and
picking. Totally we we will get 2k2 1 groups. Since the case k = k2
is true, from the 2k2 1 sums s1 , . . . , s2k2 1 of the groups, considering
the numbers di = si /gcd(k1 , k2 ), we can get k2 of them whose sum is
divisible by k2 . The union of the k2 groups with sum si s consists of
k1 k2 numbers whose sum is then divisible by k1 k2 .
To finish the problem, since 18 = 2 32 , we have to show the
statement is true for k = 2 and 3. Among 2 2 1 = 3 numbers,
there are two odd or two even numbers, their sum is even. Among
2 3 1 = 5 integers, consider (mod 3) of the integers. If 0,1,2 each
appears, then the sum of those three will be 0 (mod 3), otherwise there
are two choices for 5 integers and three of them will be congruent (mod
3), their sum is 0 (mod 3).
Comments. The statement is true for every positive integer k. All we
have to consider is the case k = p is prime. Suppose 2p 1 integers
are given. There are
2p 1 (2p 1)(2p 2) (p + 1)
m= =
p (p 1)!
114
in the terms will be positive integers j p 1. Since p j of the ei is
0, the coefficient of the term in the full expansion of S is
2p 1 j p1 (2p 1 j) p (p j + 1) p1
= ,
pj e1 , . . . , ep (p j)! e1 , . . . , ep
1 1 1
145. Let a, b, c be positive integers such that + = . If the greatest
a b c
common divisor of a, b, c is 1, then prove that a + b must be a perfect
square.
1 1 1 ac c
Solution. By algebra, + = is equivalent to = . Sup-
a b c c bc
ac c p
pose = = , where p, q are positive integers and gcd(p, q) =
c bc q
a c b c
1. Then = and = by simple algebra. So
p+q q p+q p
a b c
= = .
p(p + q) q(p + q) pq
115
147. (1998 Putnam Exam) Prove that, for any integers a, b, c, there exists a
positive integer n such that n3 + an2 + bn + c is not an integer.
148. (1995 IMO shortlisted problem) Let k be a positive integer. Prove that
there are infinitely many perfect squares of the form n2k 7, where n
is a positive integer.
a b c
149. Let a, b, c be integers such that + + = 3. Prove that abc is the
b c a
cube of an integer.
116
a, b, but not c. Suppose the largest powers of p dividing a, b are m, n,
respectively.
If n < 2m, then n + 1 2m and pn+1 | a2 c, b2 c, 3abc. Hence
pn+1 | c2 b, forcing p | c, a contradiction. If n > 2m, then n 2m+1 and
p2m+1 | c2 b, b2 a, 3abc. Hence pY 2m+1
| a2 c, forcing p | c, a contradiction.
Therefore, n = 2m and abc = p3m is a cube.
p|abc
Diophantine Equations
150. Find all sets of positive integers x, y and z such that x y z and
xy + y z = z x .
Solution. (Due to Cheung Pok Man) Since 31/3 > 41/4 > 51/5 > ,
we have y z z y if y 3. Hence the equation has no solution if y 3.
Since 1 x y, the only possible values for (x, y) are (1, 1), (1, 2) and
(2, 2). These lead to the equations 1+1 = z, 1+2z = z and 4+2z = z 2 .
The third equation has no solution since 2z z 2 for z 4 and (2, 2, 3)
is not a solution to xy + y z = z x . The second equation has no solution
either since 2z > z. The first equation leads to the unique solution
(1, 1, 2).
117
152. (Due to Euler, also 1985 Moscow Math Olympiad) If n 3, then prove
that 2n can be represented in the form 2n = 7x2 + y 2 with x, y odd
positive integers.
Solution. After working out solutions for the first few cases, a pattern
begins to emerge. If (x, y) is a solution to case n, then the pattern
suggests the following: If (x + y)/2 is odd, then ((x + y)/2, |7x y|/2)
should be a solution for the case n + 1. If (x + y)/2 is even, then
(|x y|/2, (7x + y)/2) should be a solution for the case n + 1. Before we
confirm this, we observe that since (x + y)/2 + |x y|/2 = max(x, y) is
odd, exactly one of (x + y)/2, |x y|/2 is odd. Similarly, exactly one
of (7x + y)/2, |7x y|/2 is odd. Also, if (x, y) is a solution and one of
x, y is odd, then the other is also odd.
153. (1995 IMO shortlisted problem) Find all positive integers x and y such
that x + y 2 + z 3 = xyz, where z is the greatest common divisor of x
and y.
118
2 b2 z 2 + z 3 b + z3
In general, cz = 2
= b+ 2 . Now integer cz 2 b =
bz 1 bz 1
3 2
b+z z z+1 z2 z + 1
1 implies b . If z 3, then < z + 1,
bz 2 1 z1 z1
b2 + z z2 + z
so b z. It follows that c = 2 2 < 2, so c = 1. Now b is an
bz 1 z 1
integer solution of w 2 z 2 w + z + 1 = 0. So the discriminant z 4 4z 4
is a square. However, it is between (z 2 1)2 and (z 2 )2 , a contradiction.
Therefore, the only solutions are (x, y) = (4, 2), (4, 6), (5, 2) and (5, 3).
Solution. (Due to Chan Kin Hang) Suppose the equation has positive
integral solutions x, y, z with z 6= 3. Then x 6= y (for otherwise 2x2 +1 =
x2 z would give x2 (z 2) = 1 and so x = 1, z = 3). As the equation is
symmetric in x, y, we may assume x > y. Among the positive integral
solutions (x, y, z) with x y and z 6= 3, let (x0 , y0 , z0 ) be a solution
with x0 least possible. Now x2 y0 z0 x + (y02 + 1) = 0 has x0 as
a root. The other root is x1 = y0 z0 x0 = (y02 + 1)/x0 . We have
0 < x1 = (y02 + 1)/x0 (y02 + 1)/(y0 + 1) y0 . Now (y0 , x1 , z0 ) is also
a positive integral solution with y0 x1 and z0 6= 3. However y0 < x0
contradicts x0 being least possible.
119
156. (1995 Czech-Slovak Match) Find all pairs of nonnegative integers x and
y which solve the equation px y p = 1, where p is a given odd prime.
120
Solutions to Combinatorics Problems
Counting Methods
159. Find the number of n-words from the alphabet A = {0, 1, 2}, if any
two neighbors can differ by at most 1.
121
Solution. Let Cn be the answer for n points. We have C1 = p, C2 =
p(p 1) and C3 = p(p 1)(p 2). For n + 1 points, if A1 and An
have different colors, then A1 , . . . , An can be colored in Cn ways, while
An+1 can be colored in p 2 ways. If A1 and An have the same
color, then A1 , . . . , An can be colored in Cn1 ways and An+1 can
be colored in p 1 ways. So Cn+1 = (p 2)Cn + (p 1)Cn1 for
n 3, which can be written as Cn+1 + Cn = (p 1)(Cn + Cn1 ).
This implies Cn+1 + Cn = (p 1)n2 (C3 + C2 ) = p(p 1)n . Then
Cn = (p 1)n + (1)n (p 1) for n > 3 by induction.
Pigeonhole Principle
161. (1987 Austrian-Polish Math Competition) Does the set {1, 2, . . . , 3000}
contain a subset A consisting of 2000 numbers such that x A implies
2x 6 A?
162. (1989 Polish Math Olympiad) Suppose a triangle can be placed inside
a square of unit area in such a way that the center of the square is not
inside the triangle. Show that one side of the triangle has length less
than 1.
122
in the quadrilateral is the distance between two opposite vertices, which
is at most 1. So the side of the triangle with two vertices lying in the
same quadrilateral must have length less than 1.
163. The cells of a 7 7 square are colored with two colors. Prove that
there exist at least 21 rectangles with vertices of the same color and
with sides parallel to the sides of the square.
Solution. (Due to Wong Chun Wai) Let the colors be black and white.
For a row, suppose there are k black cells and 7 k white cells. Then
there are C2k + C27k = k 2 7k + 21 9 pairs of cells with the same
color. So there are at least 79 = 63 pairs of cells on the same row with
the same color. Next there are C27 = 21 pairs of columns. So there are
212 = 42 combinations of color and pair of columns. For combination
i = 1 to 42, if there are ji pairs in the same combination, then there
are at least ji 1 rectangles for that combination. Since the sum of
42
X
the ji s is at least 63, so there are at least (ji 1) 63 42 = 21
i=1
such rectangles.
164. For n > 1, let 2n chess pieces be placed at the centers of 2n squares of
an n n chessboard. Show that there are four pieces among them that
formed the vertices of a parallelogram. If 2n is replaced by 2n 1, is
the statement still true in general?
123
For the second question, placing 2n 1 pieces on the squares of
the first row and first column shows there are no parallelograms.
165. The set {1, 2, . . . , 49} is partitioned into three subsets. Show that at
least one of the subsets contains three different numbers a, b, c such
that a + b = c.
Inclusion-Exclusion Principle
124
Bn such that i 6= f (1), . . . , f (m). By the inclusion-exclusion principle,
|A1 An |
X X X
= |Ai | |Ai Aj | + |Ai A2 A3 |
1in 1i<jn 1i<j<kn
n m n m n
= (n 1) (n 2) + (n 3)m .
1 2 3
Xn
n
nm |A1 An | = (1)i (n i)m .
i=0
i
167. Let A be a set with 8 elements. Find the maximal number of 3-element
subsets of A, such that the intersection of any two of them is not a 2-
element set.
168. (a) (1999 China Hong Kong Math Olympiad) Students have taken a
test paper in each of n (n 3) subjects. It is known that for any
subject exactly three students get the best score in the subject, and
for any two subjects excatly one student gets the best score in every
one of these two subjects. Determine the smallest n so that the above
conditions imply that exactly one student gets the best score in every
one of the n subjects.
125
(b) (1978 Austrian-Polish Math Competition) There are 1978 clubs.
Each has 40 members. If every two clubs have exactly one common
member, then prove that all 1978 clubs have a common member.
|S1 S2 Sn |
X X X
= |Si | |Si Sj | + |Si Sj Sk |
1in 1i<jn 1i<j<kn
n
3n + |S1 S2 Sn |,
2
126
disjoint and together contain all integers from 2 to n. By the pigeonhole
n1
principle, one of the lists, say xs list, will contain at least m = d e
k
numbers. (The notation means m is the least integer greater than or
n1
equal to .)
k
Next we will show this x is a member of all n clubs. Suppose x is
not a member of some club Ci . Then each of the m + 1 clubs that x
belong to will share a different member with Ci (otherwise two of the
m + 1 clubs will share a member y in Ci and also x, a contradiction).
Since Ci has k members, so k m + 1 n1 k
+ 1, which implies
2 2
k k + 1 n. Since k k + 1 = 1561 < n = 1978, this is a
contradiction. So x must be a member of all n clubs.
Comments. It is clear that the two problems are essentially the same.
As the number of members in the sets gets large, the inclusion-exclusion
principle in (a) will be less effective. The argument in part (b) is more
convenient and shows that for n sets, each having k members and each
pair having exactly one common member, if n > k 2 k + 1, then all n
sets have a common member.
Combinatorial Designs
Solution. (Due to Cheung Pok Man and Yung Fai) Assign an ordered
pair (a, b) to each square with a, b = 1, 2, . . . , 9. Divide the 81 squares
into 3 types. Type A consists of squares with both a and b odd, type
B consists of squares with both a and b even and type C consists of
the remaining squares. The numbers of squares of the types A, B and
C are 25, 16 and 40, respectively.
Assume no collision occurs. After two successive moves, beetles in
type A squares will be in type B squares. So the number of beetles in
127
type A squares are at most 16 at any time. Then there are at most 32
beetles in type A or type B squares at any time. Also, after one move,
beetles in type C squares will go to type A or type B squares. So there
are at most 32 beetles in type C squares at any time. Hence there are
at most 64 beetles on the board, a contradiction.
128
Solution. Consider the nine tickets with numbers
(10, 11, 12, 13, 14, 15), (10, 11, 12, 16, 17, 18), (13, 14, 15, 16, 17, 18),
(19, 20, 21, 22, 23, 24), (25, 26, 27, 28, 29, 30), (31, 32, 33, 34, 35, 36).
For the first three tickets, if they are not winning, then two of the
six numbers drawn must be among 1, 2, . . . , 9. For the next three tick-
ets, if they are not winning, then two of the six sumbers must be
10, 11, . . . , 18. For the last three tickets, if they are not winning, then
three of the six numbers must be among 19, 20, . . . , 36. Since only six
numbers are drawn, at least one of the nine tickets is a winning ticket.
For any eight tickets, if one number appears in three tickets, then
this number and one number from each of the five remaining tickets
may be the six numbers drawn, resulting in no winning tickets.
So of the 48 numbers on the eight tickets, we may assume (at least)
12 appeared exactly 2 times, say they are 1, 2, . . . , 12. Consider the two
tickets with 1 on them. The remaining 10 numbers on them will miss
(at least) one of the numbers 2, 3, . . . , 12, say 12. Now 12 appears in
two other tickets. Then 1, 12 and one number from each of the four
remaining tickets may be the six numbers drawn by the committee,
resulting in no winning tickets.
(0, 0), (2, 0), (2, 2), (4, 0), (4, 2), (4, 4), (6, 0), (6, 2), (6, 4), (6, 6).
129
After one move, if no beetles meet, then the 10 beetles at the marked
vertices will move to 10 unmarked vertices and 10 other beetles will
move to the marked vertices. After another move, these 20 beetles will
be at unmarked vertices. Since there are only 18 unmarked vertices,
two of them will meet.
If 6 is replaced by 5, then divide the vertices into groups as follows:
{(0, 0), (1, 0), (1, 1)}, {(2, 0), (3, 0), (3, 1)},
{(2, 1), (3, 2), (3, 3), (2, 2)}, {(4, 0), (5, 0), (5, 1)},
{(4, 1), (5, 2), (5, 3), (4, 2)}, {(4, 3), (5, 4), (5, 5), (4, 4)}.
Let the beetles in each group move in the counterclockwise direction
along the vertices in the group. Then the beetles will not meet at any
moment.
173. (1991 Australian Math Olympiad) There are n points given on a plane
such that the area of the triangle formed by every 3 of them is at most
1. Show that the n points lie on or inside some triangle of area at most
4.
174. (1969 Putnam Exam) Show that any continuous curve of unit length
can be covered by a closed rectangles of area 1/4.
130
Solution. Place the curve so that its endpoints lies on the x-axis.
Then take the smallest rectangle with sides parallel to the axes which
covers the curve. Let its horizontal and vertical dimensions be a and
b, respectively. Let P0 and P5 be its endpoints. Let P1 , P2 , P3 , P4 be
the points on the curve, in the order named, which lie one on each of
the four sides of the rectangle. The polygonal line P0 P1 P2 P3 P4 P5 has
length at most one.
The horizontal projections of the segments of this polygonal line
add up to at least a, since the line has points on the left and right
sides of the rectangle. The vertical projections of the segments of this
polygonal line add up to at least 2b, since the endpoints are on the
x-axis and the line also has points on the top and bottom side of the
rectangle.
So the polygonal line has length at least a2 + 4b2 1. By the
AM-GM inequality, 4ab a2 + 4b2 1 and so the area is at most 1/4.
175. (1998 Putnam Exam) Let F be a finite collection of open discs in the
plane whose union covers a set E. Show that there is a pairwise disjoint
subcollection D1 , . . . , Dn in F such that the union of 3D1 , . . . , 3Dn
covers E, where 3D is the disc with the same center as D but having
three times the radius.
176. (1995 IMO) Determine all integers n > 3 for which there exist n points
A1 , A2 , . . . , An in the plane, and real numbers r1 , r2 , . . . , rn satisfying
the following two conditions:
131
(a) no three of the points A1 , A2 , . . . , An lie on a line;
(b) for each triple i, j, k (1 i < j < k n) the triangle Ai Aj Ak has
area equal to ri + rj + rk .
From the last equation, we get r5 = (r1 +r2 +r3 +r4 )/8 = S/12 < 0.
Next observe that A1 , A5 , A3 not collinear implies one side of
6 A1 A5 A3 is less than 180 . Then one of the quadrilaterals A1 A5 A3 A4
132
or A1 A5 A3 A2 is convex. By the first observation of this case, r1 + r3 =
r5 + ri , where ri = r4 or r2 . Since r1 + r3 = r2 + r4 , we get r5 = r2 or
r4 . Similarly, considering A2 , A5 , A4 not collinear, we also get r5 = r1
or r3 . Therefore, three of the numbers r1 , r2 , r3 , r4 , r5 are negative, but
the area of the corresponding triangle is positive, a contradiction.
177. (1999 IMO) Determine all finite sets S of at least three points in the
plane which satisfy the following condition: for any two distinct points
A and B in S, the perpendicular bisector of the line segment AB is an
axis of symmetry of S.
134
Solutions to Miscellaneous Problems
179. (1995 Israeli Math Olympiad) Two players play a game on an infinite
board that consists of 1 1 squares. Player I chooses a square and
marks it with an O. Then, player II chooses another square and marks
it with X. They play until one of the players marks a row or a column
of 5 consecutive squares, and this player wins the game. If no player
can achieve this, the game is a tie. Show that player II can prevent
player I from winning.
Solution. (Due to Chao Khek Lun) Divide the board into 2 2 blocks.
Then bisect each 2 2 block into two 1 2 tiles so that for every pair
of blocks sharing a common edge, the bisecting segment in one will be
horizontal and the other vertical. Since every five consecutive squares
on the board contains a tile, after player I chose a square, player II
could prevent player I from winning by choosing the other square in
the tile.
180. (1995 USAMO) A calculator is broken so that the only keys that still
work are the sin, cos, tan, sin1 , cos1 , and tan1 buttons. The dis-
play initially shows 0. Given any positive rational number q, show that
pressing some finite sequence of buttons will yield q. Assume that the
calculator does real number calculations with infinite precision. All
functions are in terms of radians.
135
p
Solution. We will show that all numbers of the form m/n, where
m, n are positive
p integers, can be displayed by induction on k = m + n.
(Since r/s = r 2 /s2 , these include all positive rationals.)
Solution. (Due to Chan Kin Hang) Consider a student who has the
highest number, say k, of acquaintances in another school. Call this
student x, his school X and the k acquaintances in school Y. Since
n+1 > n k, x must have at least one acquaintance, say z, in the third
school Z. Now z has at most k acquaintances in school X and hence z
has at least (n+1)k acquaintances in school Y. Adding the number of
acquaintances of x and z in school Y, we get k + (n + 1) k = n + 1 > n
and so x and z must have a common acquaintance y in school Y.
136
183. Is it possible to write a positive integer into each square of the first
quadrant such that each column and each row contains every positive
integer exactly once?
Bn An
Solution. Yes, it is possible. Define A1 = (1) and An+1 = ,
An Bn
where the entries of Bn are those of An plus 2n1 . So
4 3 2 1
2 1 3 4 1 2
A1 = (1), A2 = , A3 = , ....
1 2 2 1 4 3
1 2 3 4
184. There are n identical cars on a circular track. Among all of them, they
have just enough gas for one car to complete a lap. Show that there is
a car which can complete a lap by collecting gas from the other cars
on its way around the track in the clockwise direction.
185. (1996 Russian Math Olympiad) At the vertices of a cube are written
eight pairwise distinct natural numbers, and on each of its edges is
written the greatest common divisor of the numbers at the endpoints
137
of the edge. Can the sum of the numbers written at the vertices be the
same as the sum of the numbers written at the edges?
186. Can the positive integers be partitioned into infinitely many subsets
such that each subset is obtained from any other subset by adding the
same integer to each element of the other subset?
Solution. Yes. Let A be the set of positive integers whose odd digit
positions (from the right) are zeros. Let B be the set of positive integers
whose even digit positions (from the right) are zeros. Then A and B
are infinite set and the set of positive integers is the union of a + B =
{a + b : b B} as a ranges over the elements of A. (For example,
12345 = 2040 + 10305 2040 + B.)
188. (1991 German Mathematical Olympiad) Show that for every positive
integer n 2, there exists a permutation p1 , p2 , . . . , pn of 1, 2, . . . , n
such that pk+1 divides p1 + p2 + + pk for k = 1, 2, . . . , n 1.
138
Solution. (The cases n = 2, 3, 4, 5 suggest the following permutations.)
For even n = 2m, consider the permutation
m + 1, 1, m + 2, 2, . . . , m + m, m.
m + 1, 1, m + 2, 2, . . . , m + m, m, 2m + 1.
189. Each lattice point of the plane is labeled by a positive integer. Each
of these numbers is the arithmetic mean of its four neighbors (above,
below, left, right). Show that all the numbers are equal.
190. (1984 Tournament of the Towns) In a party, n boys and n girls are
paired. It is observed that in each pair, the difference in height is less
than 10 cm. Show that the difference in height of the k-th tallest boy
and the k-th tallest girl is also less than 10 cm for k = 1, 2, . . . , n.
139
191. (1991 Leningrad Math Olympiad) One may perform the following two
operations on a positive integer:
(a) multiply it by any positive integer and
(b) delete zeros in its decimal representation.
Prove that for every positive integer X, one can perform a sequence of
these operations that will transform X to a one-digit number.
192. (1996 IMO shortlisted problem) Four integers are marked on a circle.
On each step we simultaneously replace each number by the difference
between this number and next number on the circle in a given direction
(that is, the numbers a, b, c, d are replaced by a b, b c, c d, d a).
Is it possible after 1996 such steps to have numbers a, b, c, d such that
the numbers |bc ad|, |ac bd|, |ab cd| are primes?
140
193. (1989 Nanchang City Math Competition) There are 1989 coins on a
table. Some are placed with the head sides up and some the tail sides
up. A group of 1989 persons will perform the following operations:
the first person is allowed turn over any one coin, the second person is
allowed turn over any two coins, . . . , the k-th person is allowed turn
over any k coins, . . . , the 1989th person is allowed to turn over every
coin. Prove that
(1) no matter which sides of the coins are up initially, the 1989 persons
can come up with a procedure turning all coins the same sides up
at the end of the operations,
(2) in the above procedure, whether the head or the tail sides turned
up at the end will depend on the initial placement of the coins.
Solution. (Due to Chan Kin Hang) (1) The number 1989 may not
be special. So let us replace it by a variable n. The cases n = 1 and
3 are true, but the case n = 2 is false (when both coins are heads
up initially). So we suspect the statement is true for odd n and do
induction on k, where n = 2k 1. The cases k = 1, 2 are true. Suppose
the case k is true. For the case k + 1, we have n = 2k + 1 coins.
First, suppose all coins are the same side up initially. For i =
1, 2, . . . , k, let the i-th person flip any i coins and let the (2k + 1 i)-th
person flips the remaining 2k + 1 i coins. Then each coin is flipped
k + 1 times and at the end all coins will be the same side up.
Next, suppose not all coins are the same sides up initially. Then
there is one coin head up and another tail up. Mark these two coins.
Let the first 2k 1 persons flip the other 2k 1 coins the same side
up by the case k. Then there are exactly 2k coins the same side up
and one coin opposite side up. The 2k-th person flips the 2k coins the
same side up and the 2k + 1-st person flips all coins and this subcase
is solved.
So the k + 1 case is true in either way and the induction step is
complete, in particular, case n = 1989 is true.
(2) If the procedure does not depend on the initial placement, then
in some initial placements of the coins, the coins may be flipped with
141
all heads up and may also be flipped with all tails up. Reversing the
flippings on the heads up case, we can then go from all coins heads up
to all tails up in 2(1 + 2 + + 1989) flippings. However, for each coin
to go from head up to tail up, each must be flipped an odd number of
times and the 1989 coins must total to an odd number of flippings, a
contradiction.
194. (Proposed by India for 1992 IMO) Show that there exists a convex
polygon of 1992 sides satisfying the following conditions:
(a) its sides are 1, 2, 3, . . . , 1992 in some order;
(b) the polygon is circumscribable about a circle.
142
Comments. The key fact that makes the polygon exists is that there
is a permutation a1 , a2 , . . . , a1992 of 1, 2, . . . , 1992 such that the system
of equations
x1 + x2 = a1 , x2 + x3 = a2 , . . . , x1992 + x1 = a1992
195. There are 13 white, 15 black, 17 red chips on a table. In one step, you
may choose 2 chips of different colors and replace each one by a chip of
the third color. Can all chips become the same color after some steps?
196. The following operations are permitted with the quadratic polynomial
ax2 + bx + c:
(a) switch a and c,
(b) replace x by x + t, where t is a real number.
By repeating these operations, can you transform x2 x 2 into x2
x 1?
143
numbers a + b and ab replacing them. If this operation is performed re-
peatedly, can the numbers 21, 27, 64, 180, 540 ever appear on the board?
198. Nine 1 1 cells of a 10 10 square are infected. In one unit time, the
cells with at least 2 infected neighbors (having a common side) become
infected. Can the infection spread to the whole square? What if nine
is replaced by ten?
Solution. (Due to Cheung Pok Man) Color the infected cells black and
record the perimeter of the black region at every unit time. If a cell
has four, three, two infected neighbors, then it will become infected
and the perimeter will decrease by 4, 2, 0, respectively, when that cell
is colored black. If a cell has one or no infected neighbors, then it will
not be infected. Observe that the perimeter of the black region cannot
increase. Since in the beginning, the perimeter of the black region is
at most 9 4 = 36, and a 10 10 black region has perimeter 40, the
infection cannot spread to the whole square.
If nine is replaced by ten, then it is possible as the ten diagonal
cells when infected can spread to the whole square.
199. (1997 Colombian Math Olympiad) We play the following game with
an equilateral triangle of n(n + 1)/2 dollar coins (with n coins on each
side). Initially, all of the coins are turned heads up. On each turn, we
may turn over three coins which are mutually adjacent; the goal is to
144
make all of the coins turned tails up. For which values of n can this be
done?
Solution. This can be done only for all n 0, 2 (mod 3). Below by
a triangle, we will mean three coins which are mutually adjacent. For
n = 2, clearly it can be done and for n = 3, flip each of the four
triangles. For n 0, 2 (mod 3) and n > 3, flip every triangle. Then
the coins at the corners are flipped once. The coins on the sides (not
corners) are flipped three times each. So all these coins will have tails
up. The interior coins are flipped six times each and have heads up.
Since the interior coins have side length n 3, by the induction step,
all of them can be flipped so to have tails up.
Next suppose n 1 (mod 3). Color the heads of each coin red,
white and blue so that adjacent coins have different colors and any
three coins in a row have different colors. Then the coins in the corner
have the same color, say red. A simple count shows that there are
one more red coins than white or blue coins. So the (odd or even)
parities of the red and white coins are different in the beginning. As
we flip the triangles, at each turn, either (a) both red and white coins
increase by 1 or (b) both decrease by 1 or (c) one increases by 1 and
the other decreases by 1. So the parities of the red and white coins
stay different. In the case all coins are tails up, the number of red and
white coins would be zero and the parities would be the same. So this
cannot happen.
200. (1990 Chinese Team Selection Test) Every integer is colored with one
of 100 colors and all 100 colors are used. For intervals [a, b], [c, d] having
integers endpoints and same lengths, if a, c have the same color and
b, d have the same color, then the intervals are colored the same way,
which means a + x and c + x have the same color for x = 0, 1, . . . , b a.
Prove that 1990 and 1990 have different colors.
Solution. We will show that x, y have the same color if and only if
x y (mod 100), which implies 1990 and 1990 have different colors.
Let the colors be 1, 2, . . . , 100 and let f (x) be the color (number)
of x. Since all 100 colors were used, there is an integer mi such that
f (mi ) = i for i = 1, 2, . . . , 100. Let M = min(m1 , m2 , . . . , m100 ) 1002 .
145
Consider a fixed integer a M and an arbitrary positive integer
n. Since there are 1002 ways of coloring a pair of integers, at least two
of the pairs a + i, a + i + n (i = 0, 1, 2, . . . , 1002 ) are colored the same
way, which means f (a +i1 ) = f (a +i2 ) and f (a +i1 +n) = f (a +i2 +n)
for some integers i1 , i2 such that 0 i1 < i2 1002 . Let d = i2 i1 .
Since there are finitely many combinations of ordered pairs (i1 , d) and
n is arbitrary, there are infinitely many ns, say n1 , n2 , . . . , having the
same i1 s and ds.
Since these nk s may be arbitrarily large, the union of the intervals
[a + i1, a + i1 + nk ] will contain every integer x a + 1002 . So for every
such x, there is an interval [a + i1 , a + i1 + nk ] containing x. Since
f (a + i1 ) = f (a + i1 + d) and f (a + i1 + nk ) = f (a + i1 + d + nk ), so
intervals [a + i1 , a + i1 + nk ], [a + i1 + d, a + i1 + d + nk ] are colored
the same way. In particular, f (x) = f (x + d). So f (x) has period d
when x a + 1002 . Since a M, 100 colors are used for the integers
x a + 1002 and so d 100. Consider the least possible such period
d.
Next, by the pigeonhole principle, two of f (a + 1002 ), f (a + 1002 +
1), . . . , f (a + 1002 + 100) are the same, say f (b) = f (c) with a + 1002
b < c a + 1002 + 100. For every x a + 1002 + 100, choose a large
integer m so that x is in [b, b + md]. Since f (b + md) = f (b) = f (c) =
f (c + md), intervals [b, b + md], [c, c + md] are colored the same way. In
particular, f (x) = f (x + c b). So f (x) has period c b 100 when
x a + 1002 + 100. So the least period of f (x) for x a + 1002 + 100
must be 100. Finally, since a can be as close to as we like, f must
have period 100 on the set of integers. Since all 100 colors are used, no
two of 100 consecutive intgers can have the same color.
146