Professional Documents
Culture Documents
(Booklet) Saudi Arabia Mathematical Competitions 2016
(Booklet) Saudi Arabia Mathematical Competitions 2016
} SAUDI ARABIAN
MATHEMATICAL COMPETITIONS 2016
}
SAMC 2016
SAUDI ARABIAN
MATHEMATICAL COMPETITIONS 2016
SAMC 2016
v
vi S���� A������ IMO ������� ����
Saudi Arabian Mathematical Competitions 2016
This booklet contains problems used in the training and selection of the
Saudi team for the International Mathematics Olympiad 2016. The train-
ing was supported by The Ministry of Education, which commissioned
Mawhiba, the main establishment in Saudi Arabia that cares for the gifted
students, to do the task. Our gratitude goes to King Abdullah University
for Science and Technology KAUST for making its facilities, in its beautiful
campus, available to us for our training.
The Saudi team had three main training camps during the academic year
2015-2016 beside the full-time training period that started in the first
week of April 2016.
During this academic year, the team participated in the following contests:
The Asian Pacific Mathematics Olympiad APMO, the Gulf Mathematical
Olympiad in Saudi Arabia, the European Girls Mathematical Olympiad
EGMO in Romania, and the Balkan Mathematical Olympiad BMO, in Alba-
nia.
It is our pleasure to share these training and selection tests problems with
other IMO teams, hoping it will contribute to future cooperation.
vii
viii S���� A������ IMO ������� ����
Saudi Arabian Mathematical Competitions 2016
Introduction in Arabic . . . . . . . . . . . . . . . . . . . . . . . . . . v
Introduction in English . . . . . . . . . . . . . . . . . . . . . . . . . vii
ix
x S���� A������ IMO ������� ����
Part 1
1
PROBLEM STATEMENTS
2 S���� A������ IMO ������� ����
1
x + y +z+ 4.
2x yz
Problem 4. Let p be a given prime. For each prime r, we defind the func-
tion as following
(p r p 1) (p 1)
F (r) = r .
(p 1) (p p 1)
2. Show that F (r) and F (s) are coprime for any primes r and s such
that r 6= p, s 6= p and r =
6 s.
1. Prove that in this set, the number of diagonals with two black end-
points is equal to the number of diagonals with two blue endpoints.
2. Find all possible numbers of the diagonals with two black endpoints.
Problem 4. Let ABC be a non isosceles triangle with circumcircle (O) and
incircle (I). Denote (O1 ) as the circle that external tangent to (O) at A0 and
also tangent to the lines AB, AC at A b , Ac respectively. Define the circles
(O2 ), (O3 ) and the points B 0 , C 0 , Bc , Ba , Ca , C b similarly.
1. Denote J as the radical center of (O1 ), (O2 ), (O3 ) and suppose that
JA0 intersects (O1 ) at the second point X , J B 0 intersects (O2 ) at the
second point Y , J C 0 intersects (O3 ) at the second point Z. Prove that
the circle (X Y Z) is tangent to (O1 ), (O2 ), (O3 ).
b + 1|a2 + 1, a + 1|b2 + 1
20 19 18 17 16
21 6 5 4 15
22 7 0 3 14
23 8 1 2 13
24 9 10 11 12
Problem 3. Let ABC be a non isosceles triangle with circumcircle (O) and
incircle (I). Denote (O1 ) as the circle that internal tangent to (O) at A1 and
also tangent to segments AB, AC at A b , Ac respectively. Define the circles
(O2 ), (O3 ) and the points B1 , C1 , Bc , Ba , Ca , C b similarly.
1. Prove that AA1 , BB1 , C C1 are concurrent at the point M and 3 points
I, M , O are collinear.
2. Prove that the circle (I) is inscribed in the hexagon with 6 vertices
A b , Ac , Bc , Ba , Ca , C b .
Problem 4. Let n be a given positive integer. Prove that there are infinitely
many pairs of positive integers (a, b) with a, b > n such that
Y
2015 Y
2015 Y
2015
(a + i) | b(b + 2016); (a + i) - b; (a + i) - (b + 2016).
i=1 i=1 i=1
Problem 3. Find all positive integer n such that there exists a permutation
(a1 , a2 , . . . , an ) of (1, 2, 3, . . . , n) satisfying the condition:
a1 + a2 + · · · + ak is divisible by k for each k = 1, 2, 3, . . . , n.
teams that have the same number of winning matches, the same number
of losing matches and the same number of tie matches.
Problem 2. Let c be a given real number. Find all polynomials P with real
coefficients such that
Problem 3. In a school there are totally n > 2 classes and not all of them
have the same numbers of students. It is given that each class has one
head student. The students in each class wear hats of the same color and
different classes have different hat colors. One day all the students of the
school stand in a circle facing toward the center, in an arbitrary order,
to play a game. Every minute, each student put his hat on the person
standing next to him on the right. Show that at some moment, there are 2
head students wearing hats of the same color.
< x yz > 1
1 1 1
:x + y +z > + + ·
x y z
Problem 2. Let a, b be given two real number with a 6= 0. Find all polyno-
mials P with real coefficients such that
m (n 1)2 .
Find the maximum value of |S| (among all the above-mentioned sets S).
Problem 3. Find all polynomials P, Q 2 Z[x] such that every positive inte-
ger is a divisor of a certain nonzero term of the sequence (x n )1
n=0
given by
the conditions:
Saudi Arabian Mathematical Competitions 2016
where Q(x) = x 2 + 1.
Problem 3. Show that there are infinitely many positive integers n such
that n has at least two prime divisors and 20n + 16n is divisible by n2 .
Problem 2. A circle with center O passes through points A and C and inter-
sects the sides AB and BC of triangle ABC at points K and N , respectively.
The circumcircles of triangles ABC and K BN meet at distinct points B and
M . Prove that ‹OM B = 90 .
Saudi Arabian Mathematical Competitions 2016
Problem 4. How many ways are there to color the vertices of a square
with n colors 1, 2, . . . , n. (The colorings must be different so that we can’t
get one from the other by a rotation.)
• At the end of each turn, no square can contain two or more frogs.
The game stops if it becomes impossible to complete another turn. Prove
that if initially 33 frogs are placed on the board, the game must eventually
stop. Prove also that it is possible to place 32 frogs on the board so that
the game can continue forever.
Problem 3. For any positive integer n, show that there exists a positive
integer m such that n divides 2016m + m.
Problem 4. There are 64 towns in a country, and some pairs of towns are
connected by roads but we do not know these pairs. We may choose any
pair of towns and find out whether they are connected by a road. Our aim
is to determine whether it is possible to travel between any two towns
using roads. Prove that there is no algorithm which would enable us to do
this in less than 2016 questions.
Denote by K the set of real numbers a such that Pa = Q a . Suppose that the
set K contains at least two elements, prove that P(x) = Q(x).
Problem 3. Let d be a positive integer. Show that for every integer S, there
exist a positive integer n and a sequence a1 , . . . , an 2 { 1, 1} such that
Problem 3. Find all integers n such that there exists a polynomial P(x)
with integer coefficients satisfying
p3 p p
3 p
3 3
P( n2 + n) = 2016n + 20 n2 + 16 n.
(x 1 x 2 )2 + (x 2 x 3 )2 + . . . + (x n x 1 )2 4n 6.
Saudi Arabian Mathematical Competitions 2016
Problem 2. Given a set of 22016 cards with the numbers 1, 2, . . . , 22016 writ-
ten on them. We divide the set of cards into pairs arbitrarily; from each
pair, we keep the card with larger number and discard the other. We now
again divide the 22015 remaining cards into pairs arbitrarily; from each
pair, we keep the card with smaller number and discard the other. We
now have 22014 cards, and again divide these cards into pairs and keep
the larger one in each pair. We keep doing this way, alternating between
keeping the larger number and keeping the smaller number in each pair,
until we have just one card left. Find all possible values of this final card.
Problem 3. Given two circles (O1 ) and (O2 ) intersect at A and B. Let d1
and d2 be two lines through A and be symmetric with respect to AB. The
line d1 cuts (O1 ) and (O2 ) at G, E (6= A), respectively; the line d2 cuts (O1 )
and (O2 ) at F, H (6= A), respectively; such that E is between A, G and F is
between A, H.
Let J be the intersection of EH and F G. The line BJ cuts (O1 ), (O2 ) at
K, L (6= B), respectively. Let N be the intersection of O1 K and O2 L. Prove
that the circle (N LK) is tangent to AB.
Problem 2. Find all pairs of polynomials P(x), Q(x) with integer coeffi-
cients such that
P(Q(x)) = (x 1)(x 2) . . . (x 9)
for all real numbers x.
Problem 3. Let n 4 be a positive integer and there exist n positive
integers that are arranged on a circle such that:
• The product of each pair of two non-adjacent numbers is divisible
by 2015 · 2016.
• The product of each pair of two adjacent numbers is not divisible by
2015 · 2016.
Find the maximum value of n.
Problem 2. Given a set of 22016 cards with the numbers 1, 2, . . . , 22016 writ-
ten on them. We divide the set of cards into pairs arbitrarily; from each
pair, we keep the card with larger number and discard the other. We now
again divide the 22015 remaining cards into pairs arbitrarily; from each
pair, we keep the card with smaller number and discard the other. We
now have 22014 cards, and again divide these cards into pairs and keep
the larger one in each pair. We keep doing this way, alternating between
keeping the larger number and keeping the smaller number in each pair,
until we have just one card left. Find all possible values of this final card.
Part 2
17
OFFICIAL SOLUTIONS
18 S���� A������ IMO ������� ����
Without loss of generality, assume that z = min{x, y, z}. From the condi-
tion x 2 + y 2 + z 2 = 2(x y + yz + z x), we get
(x + y)2 2z(x + y) + z 2 = 4x y,
or
(x + y z)2 = 4x y.
Using the AM-GM inequality, we have
v
u
x+y z x+y z 1 t4 (x + y z)2 z
+ + 2z + 4 = 4.
2 2 2x yz 4x yz
Hence
1
x + y +z+ 4.
2x yz
1
The equality holds if x = 2, y = z = , or any its cyclic permutation.
2
Solution.
midpoints of P B, P M so OH k BM and OH = 12 BM .
Similarly we have OK k C N and OK = 12 C N . Hence, ‹HOK = ‹E I F . In
the other hand,
OH BM sin A + B2
= = ,
OK CN sin A + C2
IF IY IX sin ‹I EX sin A + B2
= : = =
IE sin ‹I F Y sin ‹I EX sin ‹I F Y sin A + C2
OH IF
So OK = IE implies that OH K ⇠ I F E.
OK · OT = R2 , OH · OU = R2
Solution.
Problem 4. Let p be a given prime. For each prime r, we define the func-
tion as following
(p r p 1) (p 1)
F (r) = r .
(p 1) (p p 1)
2. Show that F (r) and F (s) are coprime for any primes r and s such
that r 6= p, s 6= p and r =
6 s.
Solution.
Notice that with positive integers a, m, n and a > 1, we have
gcd (a m 1, a n 1) = agcd(m,n) 1.
pr 1
Let f (r) = p 1 with p is a prime and r is the positive integer.
1. Let x = gcd (p r 1, p p 1) and y = lcm (p r 1, p p 1), then
(p r 1)(p p 1) = x y.
3. At first, we will show that with any prime divisor q of F (r), we always
have p |q 1 . (*)
pr p 1
Indeed, from Fermat’s theorem, q|pq 1
1 and because q (p r 1) f (p) so
q|p r p 1.
These imply that
q gcd pq 1
1, p r p 1 = pgcd(q 1,r p)
1
pr p 1
0⌘ = p p(r 1)
+ p p(r 2)
+ · · · + p p + 1 ⌘ p ⌘ 1(modq),
pp 1
Saudi Arabian Mathematical Competitions 2016
contradiction.
pr p 1
0⌘ = p r(p 1)
+ p r(p 2)
+ · · · + p r + 1 ⌘ r(modq),
pr 1
contradiction.
Hence (*) is true. Finally, assume that with all the prime q|F (r), we always
have p2 |q 1.
Because all divisor of F (r) congruent to 1 modulo p2 , hen F (r) ⌘ 1(mod
p2 ). Note that
and
1 ⌘ (p 1)(modp2 ) , p ⌘ 0(modp2 ),
which is contradiction.
Therefore, there exist a prime satisfies all the given condition.
Solution.
First, consider 3 sequences (x n ), ( yn ), (zn ), n 1 with
8
< x n+1 = |x n yn |
x 1 = |x y| , y1 = | y z| , z1 = |z x| and yn+1 = | yn zn |
Saudi Arabian Mathematical Competitions 2016
:
zn+1 = |zn x n |
In the other hand, for all i = 1, k, there are at least one number among
(x i , yi , zi ) is equal to 0. Without loss of generality, we may assume that
x y z = 0 and we can see that x 1 = |x y| , y1 = | y z| = y, z1 =
|z x| = x so we have some cases:
1. Prove that in this set, the number of diagonals with two black end-
points is equal to the number of diagonals with two blue endpoints.
2. Find all possible numbers of the diagonals with two black endpoints.
Solution.
Saudi Arabian Mathematical Competitions 2016
1) Define the diagonal with two black endpoints as the black diagonal and
the diagonal with two blue endpoints as the blue diagonal. Firstly, consider
the sequence of vertices:.
The diagonal connect two adjacent vertices has the same length as A1 A4 .
Because the vertices are painted by black and blue, then they can be di-
vided into some blocks of black vertices and some blocks of blue vertices.
It is easy to see that one black block lies between two blue blocks and one
blue block lies between two black blocks, which implies that the number
of black blocks and blue blocks are equal, denote this number as k.
Notice that in each black block of size a, the number of black diagonal is
a 1. By summing all the black diagonals among kblack block(s), we can
see that the number of black diagonal equal to the total black points minus
the number of block, i.e. 10 k.
way to paint the vertices such that there are exactly k black block(s).
Problem 3. Let u and v be positive rational numbers with u 6= v. Assume
that there are infinitely many positive integers n with the property that
un v n are integers. Prove that u and v are integers.
Solution.
Let u = x/z and v = y/z with x, y, z positive integers, and (x, y, z) = 1.
The statement is equivalent to saying that x n ⌘ y n (mod z n ). If z > 1,
assume that there is an odd prime divisor p | z. Let r be the least positive
integer such that x r ⌘ y r (mod p) ) r | n ) n = r k. Let a = vp (n) and
b = vp (x r y r ). By LTE, we have
But vp (x n y n ) æ vp (z n ) ∂ n ) n ∂ a + b ) p n ∂ p a · · · p b = np b . This
cannot true for infinitely many positive integers n.
If z has no odd prime divisor, then z is a power of 2. From this we have
x, y are both odd.
If n is odd then
2n | x n y n = (x y)(x n 1
+ xn 2
y + · · · + x yn 2
+ y n 1 ).
v2 (x n y n) = c + s 1) n∂ c+s 1 ) n ∂ log2 n + s 1.
2. Prove that AA1 , BB1 , C C1 are concurrent at the point M and 3 points
I, M , O are collinear.
Solution.
Saudi Arabian Mathematical Competitions 2016
1) Consider the inversion with center J and ratio is equal the power of J
to three circles (O1 ), (O2 ), (O3 ) as a function f .
It is easy to see that
Because (O) is tangent to all of three circles (O1 ), (O2 ), (O3 ) then (X Y Z) is
also tangent to (O1 ), (O2 ), (O3 ), base on the property of inversion.
AI r A0 O R
= and = .
AO1 rA A0 O1 rA
Hence the line AA0 passes through the point M that internally divide the
segment OI with ratio Rr . Similarly with BB 0 , C C 0 . Therefore, AA0 , BB 0 , C C 0
are concurrent at a point M belongs to the segment IO.
Solution.
Let H be the orthocenter of triangle ABC.
Saudi Arabian Mathematical Competitions 2016
Solution.
Without loss of generality, assume that a b c. From the condition, we
get a 1 c > 0. Write the inequality as
+ + + + + 3,
c b c a b c
which is equivalent to
Å ã
1 1 1
(a + b + c 1) + + 1 4.
a b c
1 1 1
Since (a 1)(1 c) 0, we obtain a + c 1 + ac and thus + 1+ .
a c ac
Therefore,
Å ã
1 1 1
(a + b + c 1) + + 1
a b c
Å ã
1 1 b ac
(b + ac) + =2+ + 2 + 2 = 4.
b ac ac b
This completes the proof. Equality holds for a = b = c = 1.
b + 1|a2 + 1, a + 1|b2 + 1.
Solution.
Suppose by contrary that one of a, b is even, say a. So a2 + 1 is odd. This
means that b + 1 must be odd, or equivalently, b is even. We will prove
that this cannot happen.
Indeed, put d = g cd(a + 1, b + 1) then d|a + 1|b2 + 1, hence d|b2 b =
b(b + 1) + 2b. From this, we have d|2b and d|2(b + 1) = 2b + 2 so d|2.
But a + 1, b + 1 are odd numbers so d odd, which gives d = 1.
On the other hand, by assumption a + 1|a2 + b2 , b + 1|a2 + b2 , we get
a2 + b2 = (a2 + 1) + (b2 1) = (a2 1) + (b2 + 1) is divisible by both
a + 1 and b + 1. Therefore (a + 1)(b + 1)|a2 + b2 (since a + 1 and b + 1 are
coprime).
In other words, there exists a positive integer k such that
We now prove that this equation has no integer solution. Fix a value of
n, assume that this equation has a solution of positive integers. We can
choose positive integers x 0 , y0 satisfying the equation with the property
that the sum x 0 + y0 is smallest and x 0 y0 .
Saudi Arabian Mathematical Competitions 2016
X2 X · n( y0 + 1) + y02 n y0 n = 0. (⇤)
x 0 + x 1 = n( y0 + 1), x 0 x 1 = y02 n y0 n
20 19 18 17 16
21 6 5 4 15
22 7 0 3 14
Saudi Arabian Mathematical Competitions 2016
23 8 1 2 13
24 9 10 11 12
Solution.
1. Consider the square table with size (2k + 1) ⇥ (2k + 1) and the center
cell contains 0. From the way filling the number to the table, it’s easy to
see that the number on the left bottom cell of that table is (2k + 1)2 1,
which is the maximum number among all number on that sub table.
Hence, 2015 belongs the square table with size 45 ⇥ 45 because 2015 <
452 1 = 2024. Note that 2024 2015 = 9 then 2015 belongs to the cell
that same column and 10 cells above in comparison with 2024.
If we number the row and column of the given table from left to right and
from bottom to top, then the leftmost and lowest cell belongs to column
1 and row 1. Because the size of table is 2015 ⇥ 2015 then the number 0
belongs to cell at 1008 and column 1008.
Since 1008 22 = 986, the number 2024 belongs to 986th row and 986th
column.
Therefore number 2015 belongs to 986 9 = 977th row and 986th column.
2. We will prove that we never get the situation such that all numbers on
the table are multiples of 2016. Indeed,
20152 (20152 1)
14 + (1 + 2 + 3 + · · · + 20152 1) = 14 + ⌘ 2 (mod 4)
2
When we perform the operation, the sum of all number on the table in-
crease by 12 which divisible by 4, that not change the remainder of the
sum when divide by 4.
If we reach the state that all number on the table are multiples of 2016,
then the sum will divisible by 4, which a contradiction.
1, 5, 2, 6, 3, 7, 4.
The number increase by 4 and decrease by 3, then the sequence covers all
number from 1 to 7. Add 1 to each term of the above sequence, we get
Increase by 2016 then decrease by 2015 and so on, we can get the desired
permutation for each number of form (2015 + 2016)k, k 2 Z.
2) Now it is easy to see that all number k such that gcd(k, 2016) > 1 do
not satisfy the given condition. Indeed,
Suppose that gcd(k, 2016) = d > 1 and these exist a number n such that
the permutation of {1, 2, 3, . . . , n} satisfies the given condition. And all
numbers in this sequence have the same remainder when divide by d,
which is a contradiction.
Now we will show that every number coprime with 2016 will satisfy the
given condition by proving the general statement:
If m, k are two positive numbers and gcd(m, k) = 1, then there are in-
finitely many number n such that there exist a permutation with the prop-
erty that the difference between any two adjacent numbers is equal to
either m or k.
Saudi Arabian Mathematical Competitions 2016
3. In the permutation to obtain the next term, two equal numbers must
be adjacent.
Problem 3. Let ABC be a non isosceles triangle with circumcircle (O) and
incircle (I). Denote (O1 ) as the circle that internal tangent to (O) at A1 and
also tangent to segments AB, AC at A b , Ac respectively. Define the circles
(O2 ), (O3 ) and the points B1 , C1 , Bc , Ba , Ca , C b similarly.
1. Prove that AA1 , BB1 , C C1 are concurrent at the point M and 3 points
I, M , O are collinear.
2. Prove that the circle (I) is inscribed in the hexagon with 6 vertices
A b , Ac , Bc , Ba , Ca , C b .
Solution.
Problem 4. Let n be a given positive integer. Prove that there are infinitely
many pairs of positive integers (a, b) with a, b > n such that
Y
2015 Y
2015 Y
2015
(a + i) | b(b + 2016); (a + i) - b; (a + i) - (b + 2016).
i=1 i=1 i=1
Solution.
The given problem can be generalized as follows:
Given three positive integers k, m, n. Let k1 , k2 , . . . , km be any positive in-
teger. Prove that there are infinitely many pair of positive integers (a, b)
such that
Y
m Y
m Y
m
(a + ki ) b(b + k) but (a + ki ) 6 |b and (a + ki ) 6 |b + k.
k=1 k=1 k=1
Proof. Let k < p1 < p2 < . . . < pm be any m distinct primes and denote
Y
m
M= (a + ki ).
k=1
Saudi Arabian Mathematical Competitions 2016
x 12 + x 22 a + 2b = a , x 12 + x 22 + 2b = 0.
x 12 + x 22 (x 1 + x 2 )2 1
Hence, b = = .
2 4 4
1
Therefore, in all case, we always have b .
4
Problem 2. Let (O1 ), (O2 ) be given two circles intersecting at A and B. The
tangent lines of (O1 ) at A, B intersect at O. Let I be a point on the circle
(O1 ) but outside the circle (O2 ). The lines IA, I B intersect circle (O2 ) at
C, D. Denote by M the midpoint of C D. Prove that I, M , O are collinear.
Solution.
Denote N as the midpoint of AB. Because A, B, C, D belong to the same
circle, then we have
IAB ⇠ I DC.
Since M is the midpoint of C D and N is the midpoint of AB then I M , I N
are isogonal conjugate with respect to the angle ‹C I D.
In the other hand, O is the intersection of two tangent line of (O2 ) at A, B,
then IO is the symmedian of triangle IAB. It means IO, I N are isogonal
conjugate with respect to ‹AI B.
Hence, I, M , O are collinear.
Problem 3. Find all positive integer n such that there exists a permutation
(a1 , a2 , . . . , an ) of (1, 2, 3, . . . , n) satisfying the condition:
Solution.
It is easy to see that n = 1, n = 3 satisfy the given condition, while n = 2
is not. We will show that all number n > 3 not satisfy.
First, we can see that
n(n + 1)
a1 + a2 + · · · + an = 1 + 2 + · · · + n =
2
n(n+1) n+1
then 2 is divisible by n, which means 2 2 Z or n is the odd number.
We also have
n(n + 1) (n + 1)(n 1) n+1
n 1 | a1 + a2 + · · · + an 1 = an = + an
2 2 2
n+1
Thus, 2 an is divisible by n 1.
In the other hand,
n+1
(n 1) < an < n 1
2
then we must have
n+1 n+1
an = 0 , an = .
2 2
It implies that
n2 1
a1 + a2 + · · · + an 1 = .
2
Continue, we have
Saudi Arabian Mathematical Competitions 2016
n2 1 (n 2)(n + 1) n + 1
n 2 | a1 + a2 + · · · + an 2 = an 1 = + an 1 .
2 2 2
n+1
Similarly, we get an 1 = 2 , then an 1 = an , which is a contradiction.
Hence, there are only two satisfied value are n = 1 and n = 3.
Solution.
First, we can see that if a team got x win matches, y lose matches and z
tie matches then they got 3x + z points and x + y + z = 15. We call two
team have the same number of win matches, lose matches and tie matches
are "relate".
Denote the number of win matches, lose matches and tie matches of two
teams A, B by (x 1 , y1 , z1 ), (x 2 , y2 , z2 ) respectively then
3x 1 + y1 = 3x 2 + y2 ,
And two teams are relate if and only if they have the same number of tie
matches.
The number of their tie matches lies between 0 and 15 and all are con-
gruent modulo 3. So we can divide these team into some group by the
number of tie matches (the teams in a group have the same number of tie
matches). ⌃Hence,
⌥ by Pigeonhole principle, the number of group can not
15
be exceed 3 = 6.
If there are some groups have greater than or equal 4 members, i.e 4
teams, then we are done.
of 16 teams are 0, 3, 6, 9, 12, 15. It means there are some teams have all
match are tie and there are also some teams have all match are not tie,
which is a contradiction.
Hence, there are some groups have at least 4 members.
Solution.
First, if z = 1y , then the given system becomes
8
> 1
< x· y· >1
y
1 1 1 , x > 1.
>
:x + y + > + + y
y x y
Å ã
1
So, all triples x, y, , with x > 1 and y 6= 0, satisfy the given system of
y
inequalities.
1
Next, note that the range of f ( y) := y + is ( 1, 2] [ [2, +1) and
y
that, for such triples, S = x + f ( y). Then for each value a 2 R, we need
only consider the following cases:
1. If a > 1, we can choose x = a + 2 (> 1), y = 1, and get S =
a + 2 + f ( 1) = a.
Problem 2. Let c be a given real number. Find all polynomials P with real
coefficients such that
Solution.
c
In terms of G(x) := P(x) , the given condition can be rewritten as
2
(x + 1)G(x 1) = (x 1)G(x) for all x 2 R.
It follows immediately (with x = ±1) that G(0) = 0 and G( 1) = 0.
Therefore, G(x) = x(x + 1)Q(x) for some Q 2 R [x]. Then
Solution.
1. Denote by G, H the intersections of K E, K F and BC respectively. Con-
sider triangle C EG: it is easy to see that
Hence, I is the excenter of this triangle, which implies that G I is the bisec-
tor of ‹K GH.
Saudi Arabian Mathematical Competitions 2016
Solution.
See the solution to Problem 1 in the test of level 4+.
By Hamzar Shafi.
Let f : Z ! Z satisfy the given functional equation. Putting n = 0 in this
equation, we get
f (2u 1 f (n)) = n + u.
f (2m) = f (m) + m
f (2m f (m)) = m 8m 2 Z.
f (2 1 f (n)) = n + 1 , f (1 f (n)) = 1 n 8n 2 Z.
f (1 f (n + 3)) = n 2 , f (1 (n + 1)) = n 2 , f ( n) = n 2.
Problem 3. In a school there are totally n > 2 classes and not all of them
have the same numbers of students. It is given that each class has one
head student. The students in each class wear hats of the same color and
different classes have different hat colors. One day all the students of the
school stand in a circle facing toward the center, in an arbitrary order,
to play a game. Every minute, each student put his hat on the person
standing next to him on the right. Show that at some moment, there are 2
head students wearing hats of the same color.
Solution.
Suppose that there are m students in total. We number the students stand-
ing in the circle by 1, 2, 3, . . . , m, clockwise (starting with an arbitrary stu-
dent). Denote by a1 < a2 < a3 < · · · < an the “positions" of the n head
students obtained in this numbering.
Saudi Arabian Mathematical Competitions 2016
ai + 1, ai + 2, . . . , m, 1, 2, . . . , ai 1
to the right. We will focus on the hat colors of the students in the first
column.
a1 a1 + 1 a1 + 2 ... a1 1
a2 a2 + 1 a2 + 2 ... a2 1
a3 a3 + 1 a3 + 2 ... a3 1
an an + 1 an + 2 ... an 1
At the first minute, each student in the first column wears his own hat.
At the second minute, based on the game rule, each student in the first
column will wear the hat of the student in the same row but in the second
column.
Similarly, at the k th minute, each student in the first column will wear
the hat of the student in the same row but in the k th column, for each
1 k m.
Suppose, on the contrary, that we could never find 2 head students (in
the first column) wearing hats of the same color. This would imply that at
the beginning all the students in each column also wear hats of (pairwise)
different colors, so they belong to distinct classes. Hence, the numbers of
students of n classes are the same, which is a contradiction to the hypoth-
esis.
Therefore, at some moment, there are 2 head students wearing hats of the
same color.
real roots and the sum of 2 roots among these roots is equal to 1. Prove
1
that b .
4
Solution.
Saudi Arabian Mathematical Competitions 2016
Solution.
See the solution to Problem 1 in the test of level 4.
Therefore, OL is perpendicular to M N .
< x yz > 1
1 1 1
:x + y +z > + + ·
x y z
Solution.
See the solution to Problem 1 in the test of level 4.
Problem 2. Let a, b be given two real number with a 6= 0. Find all polyno-
mials P with real coefficients such that
Solution.
Let P 2 R [x] satisfy the given condition.
First, we notice that if b = 0 then x P(x a) = x P(x) ) P(x a) =
P(x) (8x 6= 0), hence P(x) ⌘ a constant (since a 6= 0), and we can re-
check that any constant polynomial satisfies the given condition. Now, let
b 6= 0, and put ab = k. We need only consider 2 cases.
bP(0) = 0 ) P(0) = 0.
, Q(x a) = Q(x) 8x 2
/ {0, a, 2a, . . . , ka}
, Q(x) ⌘ c
, P(x) = c x(x a)(x 2a) · · · (x (k 1)a) 8x 2 R
/ N : In the same way, it is easy to check that all numbers ma, with
2. k 2
m 2 N, are roots of P(x) = 0; which implies that P(x) ⌘ 0; and we
can re-check that the zero polynomial satisfies the given condition.
In summary:
• If b = 0, then P(x) ⌘ c.
b
• If a = k 2 N, then P(x) ⌘ c x(x a)(x 2a) · · · (x (k 1)a).
b
• If a / N, then P(x) ⌘ 0.
=k2
m (n 1)2 .
Solution.
Let ai be the number of clubs that have i members. Here, 2 i n and
m = a2 + a3 + · · · + an .
We will count the tuples (A, B, C) in which, the students A, B take part in
the same clubs C that have i members.
i
• Choosing 2 students that take part in that club, we have 2
ways.
Hence, we have
Å ãÇ å
n 1 1 1
m = a2 + a3 + · · · + an 2
+ 3 + ··· + n .
2 2 2 2
Note that
X
n X
n Xn Å ã Å ã
1 2 1 1 1 2(n 1)
i
= =2 =2 1 = .
i=2 2 i=2
i(i 1) i=2
i 1 i n n
n(n 1) 2(n 1)
Therefore, m 2 · n = (n 1)2 .
Solution.
1) We will use the inversion to solve this problem.
AI 2 = AH · AB = AK · AC =: k.
So this inversion sends the line H K to (O), which implies that the inter-
section of H K and (O) are fixed points under f .
It follows that
IM LH BD MK
= = = ;
IO LC BC MN
which implies that I K k ON , i.e. I K ? AC.
Going back to the original problem, we denote by B 0 , C 0 the midpoints of
AB, AC and by Z the intersection of B 0 C 0 and AI.
Solution.
Firstly, denote by An the set of all sub-sequences (ai )ki=0 of (0, 1, 2, . . . , n)
such that:
• a0 = 0, a1 = 1, ak = n,
and
• f is one-to-one.
• The two sequences w and f (w) do not satisfy Condition ii); so,
f (w) 62 S 8w 2 S \ S1 .
Problem 3. Find all polynomials P, Q 2 Z[x] such that every positive inte-
ger is a divisor of a certain nonzero term of the sequence (x n )1
n=0
given by
the conditions:
Solution.
Suppose that P, Q 2 Z[x] satisfy the given requirement. Step by step we
will draw some conclusions.
Step 1. deg P 1, deg Q 1.
Suppose, on the contrary, that one of P, Q were a constant polynomial c.
x n 2 {2016, c, Q(c)} 8n 0.
and
when |x| N.
Now, in accordance with the given requirement, lim max |x ` | = 1. Fur-
n!1 0`2n
ther, for large n, let 0 i = i(n) 2n be an index such that
|x i | = max |x ` | > N .
0`2n
and
Saudi Arabian Mathematical Competitions 2016
rn 1
yn = r n y0 + s 8n 0.
r 1
If r = 1, then yn 2 { y0 , y0 + s} (8n); therefore, the given requirement
could not be satisfied. So, |r| > 1.
The requirement implies that one of the above-mentioned 2 sub-sequences
has the following property: for each q 2 N0 there is an n = n(q) 2 N0 such
that r q | yn 6= 0. Of course, n ! 1 as q ! 1. Moreover,
rn 1
r min{q,n} | ( yn r n y0 ) = s .
r 1
Å ã
rn 1
Since gcd r, = 1, it follows that r min{q,n} | s (for all q). But |r| > 1
r 1
and min{q, n} ! 1 as q ! 1, we see that s = 0. Hence, yn = r n y0 (8n),
y0 = a, yn+1 = T ( yn ) 8n 0.
| yN +1 | = |T ( yN )| > 2| yN |.
Set m = | yN +1 yN |. Then
yn yN = ( yn yn 1 ) + ( yn 1 yn 2 ) + . . . + ( yN +1 yN )
Let H(x) = P(Q(x)) and K(x) = Q(P(x)). Suppose, on the contrary, that
either deg P 2 or deg Q 2. Then deg H 2 and deg K 2 (since, by
Step 1, deg P 1, deg Q 1).
This implies that for each k 2 N there exists a nonzero term x 2nk +1 divisible
by km. Therefore, the sub-sequence
(for all n 0), satisfies the condition given in the lemma. According to
this lemma, deg H = 1, a contradiction.
where Q(x) = x 2 + 1.
Solution.
Since r1 , . . . , r5 are the roots of P(x) = x 5 x 2 +1, by factorization theorem
we have
Y 5
P(x) = (x ri ).
i=1
It follows that
Y
5 Y
5 Y
5 Y
5
Q(r j ) = (r 2j ) = (r j + i) (r j i) = P(i)P( i),
j=1 j=1 j=1 j=1
Solution.
Let O be the center of ! and Q the intersection point of CO and !.
Problem 3. Show that there are infinitely many positive integers n such
that n has at least two prime divisors and 20n + 16n is divisible by n2 .
Solution.
x p + y p = (x + y)(x p 1
yxp 2
+ ··· y p 2 x + y p 1)
x p 1 , y x p 2 , . . . , y p 2 x, y p 1
Now we take nk+1 = pnk . As p > 1, nk+1 > nk , and 4nk+1 + 5nk+1 is divisible
by n2k+1 .
Finally, it is clear that the number n = 2nk satisfies n2 | 20n + 16n for any
positive integer k, which completes the solution.
Saudi Arabian Mathematical Competitions 2016
Solution.
The answer is 9. We can see that there are only 9 cells on the border of
black square that connect to the white area. Each of them belongs to at
most 1 polygon, so there are at most 9 polygons.
An example as follows (each of cells belongs to one part that has the ratio
of black:white is 1 : 3)
Solution.
The answer n = 3. In fact, the polynomials P1 (x) = x 2 4, P2 (x) = x 2
4x + 6 and P3 (x) = x 2 8x + 12 satisfy the conditions P1 + P2 = 2(x
1)2 , P1 + P3 = 2(x 2)2 , P2 + P3 = 2(x 3)2 . Suppose that there are four
polynomials P1 , P2 , P3 , P4 satisfying the conditions. Then P1 + P2 = 2(x
Saudi Arabian Mathematical Competitions 2016
Problem 2. A circle with center O passes through points A and C and inter-
sects the sides AB and BC of triangle ABC at points K and N , respectively.
The circumcircles of triangles ABC and K BN meet at distinct points B and
M . Prove that ‹OM B = 90 .
Solution.
Remark. This problem can be solve by using the spiral similarity of center
M or by using the Brocard’s theorem.
Solution.
b1 + b2 = 4ak 2a, b1 b2 = a 2 k.
Problem 4. How many ways are there to color the vertices of a square
with n colors 1, 2, . . . , n. (The colorings must be different so that we can’t
get one from the other by a rotation.)
Solution.
Consider the cases :
n
1. Use 1 color: 1 = n,
n
2. Use 2 colors: 4 ⇥ 2 = 2n(n 1),
n n(n 1)(n 2)
3. Use 3 colors: 9 ⇥ 3 =3 ,
2
n4 + n2 + 2n
The sum up will give : .
4
2⇡ 2⇡ 2⇡
Remark. We can rotate the coloring respect the angles 0, ,2 ,3 .
4 4 4
We get 4⇥(the number S of the rotationally distinct colorings). The arbi-
trary rotation of the colorings with only 1 color gives the same coloring,
n n
thus we have to add 3 ⇥ 1 and similarly 2 ⇥ 2 . Thus, we get
Å ã Å ã
4 n n 4 2 n4 + n2 + 2n
4⇥S = n +3⇥ +2⇥ = n + n + 2n ) S = .
1 2 4
Solution.
By contrary, assume that p = a b + cd is a prime. In particular (b, c) =
(b, d) = 1, and ab ⌘ cd (mod p). We get
Denote ! the circumcircle of 4ABC and the circle tangent to !, DA, DC.
Let ! touches at K and M be the midpoint of arc BC on ! not containing
K. One has the dilation with center K sent to ! and BC to the tangent
of ! at M . Hence K, E, M are collinear. We also have A, I, M are collinear
and M I = M C.
Let E I meet again at F 0 . Since !, have the same tangent at K then
‹K F 0 I = ‹E F 0 K = ‹M AK = ‹KAI ) AK I F 0 is cyclic. One has ‹M C B =
‹M BC = ‹M KC ) 4M EC ⇠ 4M C K. Hence
M I 2 = M C 2 = M E.M K ) 4M E I ⇠ 4M I K.
Solution.
First, we shall prove two following lemmas:
Lemma 1. If a is an integer numbers that is p
not a perfect cube, and m, n, p
p 3
are integer numbers such that m + n a + p a2 = 0, then
3
m = n = p = 0.
p p
3 p
Proof of Lemma 1. Since m + n 3 a + p a2 = 0, then 3 a is the root of
P(x) = px 2 + nx + m with integer coefficients.
p
Consider the polynomial Q(x) = x 3 a, then 3 a is also a root of Q(x).
Assume that Q(x) is reducible, then one of the factor must have degree 1,
p
that is Q(x) has a rational root. But we know that 3 a is irrational since a
is not a perfect cube (by assumption). Hence, Q(x) is irreducible.
p
In other words, Q(x) is the minimal polynomial of 3 a, and this leads to
P(x) = 0, or m = n = p = 0.
then a 1 | n p.
Proof of Lemma 2. We will prove by induction on the degree of P(x)
which is denoted by k.
For k = 1, it is trivial.
Assume that the statement is true for k = t, consider P(x) of degree t + 1,
we write P(x) = xQ(x) + s, with Q(x) of degree t and s = P(0) is an
integer.
p3 p p p3
Assume that Q( a2 + 3 a) = d +e 3 a+ f a2 , then by induction hypothesis
a 1 | e f . This gives
p
3 p p3 p p p3
3 3 3
P( a2 + a) = ( a2 + a)(d + e a + f a2 ) + s
p p3
3
= s + ea + f a + (d + f a) a + (d + e) a2 .
• Each frog may be moved one square up, down, left, or right;
• At the end of each turn, no square can contain two or more frogs.
Solution.
If 32 frogs are placed in an 4 ⇥ 8 rectangle, they can all move down, right,
up, left, down, etc.
To show that a game with 33 frogs must stop, label the board as shown:
1 2 1 2 1 2 1 2 1
2 3 2 3 2 3 2 3 2
1 2 1 2 1 2 1 2 1
2 3 2 3 2 3 2 3 2
1 2 1 2 1 2 1 2 1
Solution.
We will show that ak = ak 1 = ak 2 = · · · = a0 = 0 by induction on n the
degree of P(x).
In fact, we may assume that the leading coefficient of P(x) is 1.For n =
1, 2, the result follows immediately.
Assume that the induction hypothesis is true for every n < m, we shall
prove it is also true for n = m. Denote by Pm (x) = x m + · · · + a1 x + a0 , and
for some k < m, ak = ak 1 = 0.
By taking derivative of Pm (x), we obtain Pm0 (x) = bm 1 x m 1 +· · ·+ b1 x + b0 ,
for some real numbers bm 1 , . . . , b0 .
Since ak = ak 1 = 0, we conclude that bk 1 = bk 2 = 0.
This together with Pm (x) has only real roots, implies that Pm0 (x) also has
only real roots.
Hence, by induction hypothesis, we get bk 3 = · · · = b0 = 0. In other
words, ak 2 = · · · = a1 = 0. It remains to show that a0 = 0. Assume that
a0 6= 0, then if r1 , . . . , rm are the roots of Pm (x), then by Vieta’s theorem,
r1 · · · rm = ( 1)m a0 , r1 + r2 + · · · + rm = 0
and X 1 X 1
=0) = 0,
i, j
ri r j i
ri2
Solution.
2
Consider the inversion I II D , then the circumcircle of 4ABC is sent to the
nine-point circle of 4DE F and the line E F is sent to the circumcircle of
4AE F . Hence I, T, and G are collinear.
Then AI k GX since they are both perpendicular to E F . We have
‹X T F = ‹X G F = 90 .
Problem 3. For any positive integer n, show that there exists a positive
integer m such that n divides 2016m + m.
Solution.
We generalize the problem to the following problem:
Let a be a given positive integer. For every natural n, there is a positive integer
m such that n divide a m + m.
In fact, we proceed by induction on n. Obviously this statement holds for
n = 1. Now assume n > 1 and this statement holds for every natural
number less than n. Consider two cases:
a m + m = a(a+1)(p 1)+1
+ (a + 1)(p 1) + 1 ⌘ (a + 1)p ⌘ 0 (mod p).
Saudi Arabian Mathematical Competitions 2016
This leads to
a a a a a a
p b 1 q11 · · · qk k r(p 1)Ac ⌘ p b 1 q11 · · · qk k r (mod p b q11 · · · qk k ).
Hence, we have
a m + m ⌘ a r'(n)d+k + r'(n)d + k ⌘ a k + k n1 r
⌘ n1 r + r'(n)d ⌘ n1 r n1 r ⌘ 0 (mod n).
Problem 4. There are 64 towns in a country, and some pairs of towns are
connected by roads but we do not know these pairs. We may choose any
pair of towns and find out whether they are connected by a road. Our aim
is to determine whether it is possible to travel between any two towns
using roads. Prove that there is no algorithm which would enable us to do
this in less than 2016 questions.
Solution.
n(n 1)
In general, we can replace 64 and 2016 by n and .
2
The given problem can be converted into the graph theory by considering
each town as a vertex in the graph G and each road connects two towns
n(n 1)
as the edge. So there are exactly undirected edges in this graph.
2
We need to prove that in all cases, we need to do the operation of checking
Saudi Arabian Mathematical Competitions 2016
n(n 1)
connection between two vertices exactly times to make sure the
2
connectivity of each pair of vertices.
This can be done by using induction on number n or using the candy
distribution idea.
Denote by K the set of real numbers a such that Pa = Q a . Suppose that the
set K contains at least two elements, prove that P(x) = Q(x).
Solution.
First we see that if the polynomial P(x) a has a root ↵ with multiplicity
k, then P 0 (x) also has the root ↵ with multiplicity k 1.
Assume that a, b are two distinct element of K and r1 , r2 , . . . , ri are the
roots of P(x) a with multiplicity k1 , k2 , . . . , ki , respectively.
Then r1 , r2 , . . . , ri are also the roots of Q(x) a.
Let t 1 , t 2 , . . . , t j be the roots of P(x) b with multiplicity s1 , s2 , . . . , s j , re-
spectively.
Then t 1 , t 2 , . . . , t j are also the roots of Q(x) b.
Assume that deg P(x) deg Q(x), and R(x) = P(x) Q(x) is not identical
zero. Thus, deg P(x) = k1 + · · · + ki = s1 + · · · + s j deg R(x) i + j, then
we can get
a contradiction.
Solution.
V (L, Q, R, P) = 1.
If RV cuts AI a , AP at X a , Pa , we also get
V (L, Q, R, P) = (A, Q, Pa , P) = (A, T, X a , I a ) = 1
Then X is midpoint of I a X a which implies that
X A0 k I a P k X a V and X A0 ? BC.
It’s similar to B 0 and C 0 . So AA0 , BC 0 , C C 0 are concurrent at the Spieker
point S of 4ABC.
Problem 3. Let d be a positive integer. Show that for every integer S, there
exist a positive integer n and a sequence a1 , . . . , an 2 { 1, 1} such that
S = a1 (1 + d)2 + a2 (1 + 2d)2 + · · · + an (1 + nd)2 .
Solution.
Let Uk = (1 + kd)2 . We calculate Uk+3 Uk+2 Uk+1 + Uk . This turns out to
be 4d 2 , a constant. Changing signs, we obtain the sum 4d 2 .
Thus if we have found an expression for a certain number S0 as a sum
of the desired type, we can obtain an expression of the desired type for
S0 + (4d 2 )q, for any integer q. It remains to show that for any S, there
exists an integer S 0 such that S 0 ⌘ S (mod 4d 2 ) and S 0 can be expressed in
the desired form.
Look at the sum (1 + d)2 + (1 + 2d)2 + · · · + (1 + N d)2 , where N is large.
We can choose N so that the sum is odd, or that the sum is even.
By changing the sign in front of (1 + kd)2 to a minus sign, we decrease the
sum by 2(1 + kd)2 . In particular, if k ⌘ 0 (mod 2d), we decrease the sum
by 2 (mod 4d 2 ). So if N is large enough, there are many k < N such that
k is a multiple of 2d.
By switching the sign in front of r of these, we change the congruence
class modulo 4d 2 by 2r.
By choosing N so that the original sum is odd, and choosing suitable r <
2d 2 , we can obtain numbers congruent to all odd numbers modulo 4d 2 .
By choosing N so that the original sum is even, we can obtain the numbers
congruent to all even numbers modulo 4d 2 . This completes the proof.
Solution.
Saudi Arabian Mathematical Competitions 2016
3x = n + (n 3) ) 3|n.
bounded, that is there exists a positive real number M such that an < M
for all positive integers n.
Solution.
Solution.
1) Let ! be the incirle and D, E, F the tangent points of ! with BC, CA, AB,
respectively.
Saudi Arabian Mathematical Competitions 2016
The inversion with center A and radius AE = AF sent ! to itself. The circle
with center K1 is sent to a line parallel to BC and tangent to ! at T1 , so A1
is sent to T1 .
Hence AA1 ⌘ AT1 is the A-Nagel ray of 4ABC ) AA1 , BB1 , C C1 are concur-
rent at the Nagel point P of 4ABC.
2) Let I1 , I2 , I3 be the excenter of 4ABC with respect to A, B, C, respec-
tively. The points J1 , J2 , J3 are the reflections of I1 , I2 , I3 with respect to the
midpoints of BC, CA, AB,respectively. The points D0 , E 0 , F 0 are the reflec-
tions of D, E, F with respect to the midpoints of BC, CA, AB, respectively.
Problem 3. Find all integers n such that there exists a polynomial P(x)
with integer coefficients satisfying
p3 p p
3 p
3 3
P( n2 + n) = 2016n + 20 n2 + 16 n.
Solution.
5
If n = 5, since 3 = 10 > 6, we can find a three-element subset Y of X not
equal to any of A1 , . . . , A6 ; coloring the elements of Y in one color and the
other elements.
6
If n = 6, since 3 = 20 > 6 ⇥ 2 = 12, we can find a three-element subset
Y of X not equal to any of A1 , . . . , A6 or its complements; coloring the
elements of Y in one color and the other elements in the other color meets
the desired condition.
Now suppose n 7. There must be two elements u; v of X such that {u; v}
7
is not a subset of any Ai , since there are at least 2 = 21 pairs, and at most
6 ⇥ |{(x, y)|x, y 2 Ai , i = 1, . . . , 6}| = 6 ⇥ 3 = 18
lie in an Ai . Replace all occurrences of u and v by a new element w, and
color the resulting elements using the induction hypothesis.
Now color the original set by giving u and v the same color given to w.
(x 1 x 2 )2 + (x 2 x 3 )2 + . . . + (x n x 1 )2 4n 6.
Solution.
We prove by induction on n.
When n = 3, we can assume that x 1 > x 2 > x 3 (only when n = 3) and the
LHS 12 + 12 + 22 = 6.
Moving from n to n + 1, the change in LHS is
We need to show that Cn+1 4. We can see that it is not true in general.
However, due to the cyclicity, we can assume that x n+1 is the least number.
Cn+1 = x n2 + x 12 (x n x 1 )2 = 2x 1 x n 4.
Problem 2. Given a set of 22016 cards with the numbers 1, 2, . . . , 22016 writ-
ten on them. We divide the set of cards into pairs arbitrarily; from each
pair, we keep the card with larger number and discard the other. We now
again divide the 22015 remaining cards into pairs arbitrarily; from each
pair, we keep the card with smaller number and discard the other. We
now have 22014 cards, and again divide these cards into pairs and keep
the larger one in each pair. We keep doing this way, alternating between
keeping the larger number and keeping the smaller number in each pair,
until we have just one card left. Find all possible values of this final card.
Solution.
Note that the remaining number is kept 1008 times as the larger one of
the pair. So it is bigger than at least 21008 1 numbers.
Similarly, the remaining number is kept 1008 times as the smaller one of
the pair so it is smaller than at least 21008 1 numbers.
To prove that any x satisfies the above inequalities is true, we can carry
Saudi Arabian Mathematical Competitions 2016
out the pairing inductively so that after 2i steps, the following condition
is satisfied: if the numbers remaining are
Problem 3. Given two circles (O1 ) and (O2 ) intersect at A and B. Let d1
and d2 be two lines through A and be symmetric with respect to AB. d1
cuts (O1 ), (O2 ) at G, E, respectively, d2 cuts (O1 ), (O2 ) at F, H, respectively,
such that E is between A and G, F is between A and H. EH cuts F G at
J. BJ cuts (O1 ), (O2 ) at K, L, respectively, O1 K cuts O2 L at N . Prove that
(N LK) is tangent to AB.
Solution.
We have
1
‹AKO1 = 90 ‹AO1 K = 90 ‹ABK = 90 ‹AB L
2
1
= 90 ‹AO2 L = ‹ALO2 .
Saudi Arabian Mathematical Competitions 2016
2
Therefore ALN K is a cyclic quadrilateral.
Let O be the circumcenter of quadrilateral ALN K. Since B is the intersec-
tion of (AGF ) and (AEH) then B is Miquel point of complete quadrilateral
AEJ F.GH or B 2 (J F H).
We obtain
Solution.
Saudi Arabian Mathematical Competitions 2016
Solution.
f (2x) = a + 4 f (x)
for any x 6= 0. Now, by replacing x, y by 2x, 2 y in (⇤) and using the above
property (here we choose x, y such that x + y, x y, x 6= 0), we get
⇥ ⇤ ⇥ ⇤
2x 4 f (x + y) 4 f (x y) = 8 y a + 4 f (x) ,
or
ay 4y
f (x + y) f (x +y) = f (x).
x x
Combining this with (⇤), we get a = 0. It follows that f (0) = 0 and
f (2x) = 4 f (x) for any x.
Replacing y = x in (⇤), we have
or ⇥ ⇤
x f ( y + x) f (y x) = 4 y f (x).
It follows that
⇥ ⇤
x y f ( y + x) f (y x) = 4 y 2 f (x).
⇥ ⇤
From (⇤), we get y f ( y + x) f ( y x) = 4x f ( y). Combine with the
above equation, we get
x 2 f ( y) = y 2 f (x)
for any real numbers x, y. This shows that
f (x) = a x 2 ,
Solution.
Let N = n + r and M = n, then
1, 0, 1, 0, 3, 2, 1, 0, 7, 6, 5, 4, 3, 2, 1, 0, . . .
We divide the sequence into blocks with k th block contains ai for 2k 1 <
i 2k . Within each block, the value an + n is constant, and for the k th
block (k 1) it equals 2k .
Therefore, d = (aN + N ) (a M + M ) is the different of two powers of 2.
Now it’s not difficult to show that there are 51 such possible values.
Problem 2. Find all pairs of polynomials P(x), Q(x) with integer coeffi-
cients such that
P(Q(x)) = (x 1)(x 2) . . . (x 9)
Solution.
We consider 3 cases.
1) Suppose that deg Q = 1. By looking at the leading cooeficient, we have
Q(x) = ±x + a. If Q(x) = x + 1, we have
3) Suppose deg P, deg Q > 1. Then, the only option is deg P = deg Q = 3.
Since 1, 2, . . . 9 are 9 roots of P(Q(x)), we have P(x) have 3 roots a, b, c.
For each root, for example a, the equation Q(x) = a has 3 roots a1 , a2 , a3
then a1 , a2 , a3 , b1 , b2 , b3 , c1 , c2 , c3 form a permutation of 1, 2, . . . , 9.
By Viete’s formula, we have
a1 + a2 + a3 = b1 + b2 + b3 and a1 a2 + a2 a3 + a3 a1 = b1 b2 + b2 b3 + b3 b1
so a12 + a22 + a32 = b12 + b22 + b32 . Since x 2 ⌘ 0 or 1 (mod 4) so the number
of odd numbers in a1 , a2 , a3 is the same as the number of odd numbers in
b1 , b2 , b3 .
This implies that the number of odd numbers in 1, 2, . . . , 9 is divisible by
3, which is a contradiction.
Solution.
Denote vp (k) as the exponent of prime p in prime factorization of positive
integer n. It is easy to see that vp (a b) = vp (a) + vp (b) for all positive
integers a, b.
We have 2015 = 5 · 13 · 31, 2016 = 25 · 32 · 7.
Denote M = 2015 · 2016 and
vpi (x i x i+1 ) < vpi (M ) , vpi (x i ) + vpi (x i+1 ) < vpi (M ) (⇤)
In the other hand, since (i, j), (i + 1, j + 1) are pair of non-adjacent indices
then
vp (x i ) + vp (x j ) a, vp (x i+1 ) + vp (x j+1 ) a.
This implies that
which is a contradiction.
Continue, suppose that there exist index i such that pi = pi+1 = p. If
vp (M ) = 1, because x i x i+1 , x i+1 x i+2 are not divisible by M , we can con-
.
clude that x , x , x are not divisible by p.Hence x x 6 ..M , contradic-
i i+1 i+2 i i+2
tion because x i , x i+2 are not adjacent.
So if pi = pi+1 = p, then we must have vp (M ) 2.
Now we can conclude that the sequence p1 , p2 , . . . , pn has some properties
as follow:
• Each prime pi 2 N appears at most 2 times.
p1 = 2, p2 = 3, p3 = 3, p4 = 5, p5 = 7, p6 = 13, p7 = 31, p8 = 2.
Solution.
‹K F D = ‹K E D = 90 ,
Saudi Arabian Mathematical Competitions 2016
Problem 2. Let a be a positive integer. Find all prime numbers p with the
following property: there exist exactly p ordered pairs of integers (x, y),
with 0 x, y p 1, such that p divides y 2 x 3 a2 x.
Solution.
The case p = 2 works with solutions (0, 0) and (1, 1) if a is even; (0, 0)
and (0, 1) if a is odd.
We claim that any odd prime divisor p of a also works. Of course for
0 x, y p 1, the congruence y 2 ⌘ x 3 (mod p) implies that x = 0 if
and only if y = 0. For any 0 < x p 1, it’s clear that x 3 = x 2 · x is a
quadratic residue modulo p if and only if x is.
Therefore, if x is not a quadratic residue then we can not find any y
such that y 2 ⌘ x 3 (mod p) and if x is a quadratic residue the congruence
y 2 ⌘ x 3 (mod p) has exactly 2 solutions in the set {1, 2, . . . , p 1} (the
condition p is odd ensures that 2 solutions are distinct).
Since there are (p 1)/2 quadratic residues, the number of (x, y) with the
required property is
1 + 2 · (p 1)/2 = p.
If p ⌘ 3 (mod 4) then 1 is not a quadratic residue, so if x 3 + a2 x 6= 0,
then exactly one of x 3 + a2 x and x 3 a2 x is a square and it gives two
solutions. Together with (0, 0), it gives us exactly p solutions.
If p ⌘ 1 (mod 4), let i be a square root of 1 (mod p), i.e. i 2 = 1. Then
we have
y 2 ⌘ x(x + ai)(x ai) (mod p).
For x = 0, ai, ai, we have one choice of y = 0. For others choice of x, we
have either 0 or 2 choices of y. Replacing x by x, since 1 is a quadratic
residue, we also have two choices for y. Hence, the total number of pairs
is 3 (mod 4), which cannot be exactly p.
Thus, the answer is p = 2, all the odd prime divisors of a and p ⌘ 3
(mod 4).
Saudi Arabian Mathematical Competitions 2016
2. There are exactly two indices i < j with 1 i < j 2016 such that
ai = i and a j = j.
Solution.
For each positive integer n 1, we denote sn as the number of permuta-
tions of the first n positive integer that satisfying the condition
ai+1 ai 1, i = 1, n 1.
X
n 1
sn = 1 + sn k = s1 + s2 + . . . + sn 1 + 1.
k=1
for all n 1.
Back to the original problem, we suppose that ai = i and a j = j. Thus,
ai 2 ai 1 1 i + 1 or ai 2 i + 2.
i 1 = 2015 i , i = 1008.
Solution.
We claim that all odd numbers are special, and the only special even num-
ber is 2. For any even N > 2, the number relatively to N must be odd, and
N cannot be expressed as a sum of 3 positive odd numbers.
Now, suppose that N is odd. We consider the binary decomposition of N
N = 2 a1 + 2 a2 + . . . + 2 a i .
N = 2 x1 1
+ 2 x1 1
+ 2 x2 + . . . + 2 x k .
Problem 2. Given a set of 22016 cards with the numbers 1, 2, . . . , 22016 writ-
ten on them. We divide the set of cards into pairs arbitrarily; from each
pair, we keep the card with larger number and discard the other. We now
again divide the 22015 remaining cards into pairs arbitrarily; from each
pair, we keep the card with smaller number and discard the other. We
now have 22014 cards, and again divide these cards into pairs and keep
the larger one in each pair. We keep doing this way, alternating between
keeping the larger number and keeping the smaller number in each pair,
until we have just one card left. Find all possible values of this final card.
Solution.
See the solution in the test of level 4.
Solution.
be a point on the line AG such that F H k AE. Prove that the circumcircle
of triangle HAB passes through the orthocenter of triangle HAC.
Solution.
Let H F cut DE at P. We have ‹H G D = ‹E = ‹H P D so H G P D is cyclic,
we deduce F H.F P = F G.F D = F B.F C so H BP C is cyclic.
2. f (x y)
Solution.
Let x = y in (2), we have f (x 2 ) f 2 (x) 0. This implies that f (x) 0
for all x 0. Let x = 0 in (1), we have f (1) f (0) + 1 1. Let x = y = 1
in (1), we have f (1) f 2 (1), t˘c 0 f (1) 1. These inequalities imply
that f (1) = 1, and hence f (0) = 0. From (1) and (2), by induction, we
have
f (x + n) f (x) + n (⇤)
for all x 2 R, n 2 N, and
f (x n ) f n (x) (⇤⇤)
f (x) x
for x 2 [0, 1]. On the other hand, we can prove by induction from (1) that
f (x n) f (x) n
f 2 (t) f (t 2 ) t 2 .
x = f ( x) f (x) f ( 1) = f (x),
implying f (x) x for all x > 0. Hence, we have f (x) = x for all x 2
(0, 1). Finally, suppose that x > 1, we have
Å ã
1 1
f (x) = f (x) f f (1) = 1
x x
Solution.
Solution.
Let N = n+ r and M = n, then r = N M and s = aN a M , and k = r + s =
(aN + N ) (a M + M ). We need to find the number of possible values of
(aN + N ) (a M + M ), where N M and aN a M .
It is easy to see by induction that a2k = 0 and thus a2k +1 = 2k 1 for all
k 1. The sequence is as the following
1, 0, 1, 0, 3, 2, 1, 0, 7, 6, 5, 4, 3, 2, 1, 0, . . .
We divide the sequence into blocks with k th block contains ai for 2k 1 <
i 2k . Within each block, the value an +n is constant, and for the k th block
(k 1) it equals 2k . Therefore, d = (aN + N ) (a M + M ) is the different
of two powers of 2. Now it’s not difficult to show that there are 51 such
possible values.
Solution.
See the solution in the test of level 4.
Solution.
For convenience, denote 3d = 2016.
Lemma. There exist a polynomial Q(x) 2 Q[x] such that
î∆ ó
Saudi Arabian Mathematical Competitions 2016
3
lim P(x) Q(x) = 0.
x!+1
Proof. Suppose that S(x) 2 Q[x] is a polynomial such that deg P(x) S 3 (x)
is minimize (if there are many S(x) satisfy, we choose one of them).
It is easy to check that:
P(x) (S ⇤ (x))3 =
Å ã
3 l 2d 2 1 2 2l 4d 1 3 3l 6d
P(x) S (x) al x S (x) a x S(x) + a x .
3 l 27 l
The result is a polynomial has degree less than l. This means
Since there exist infinitely many number a such that P(a) is nice, we can
choose some strictly increasing sequence of positive integers (an ) such that
P(ai ) are nice for all i 2 N⇤.
Clearly, for each ai , there exist Ni 2 Z+ such that P(ai ) = Ni3 + 3Ni + 1.
then îq ó
Saudi Arabian Mathematical Competitions 2016
Ni3 + 3Ni + 1
3
lim Ni = 0.
x!+1
Solution.
From O, A1 , A2016 are collinear, there exist some positive number k such
that
x1 x 2016
= = k > 0.
y1 y2016
Saudi Arabian Mathematical Competitions 2016
xi
We shall prove that for all i = 2, 2015, yi > k. Indeed,
Notice that v
t x2 + x2 x n2 + x n+2
2
n n+2 2
x n+1 = , = x n+1 ,
2 2
2
which implies that (x n ) form an arithmetic sequence.
Hence, for all i = 2, 2015, let
2016 i i 1
↵i = , i =
2015 2015
then ↵i + i = 1, 2 i 2015 and
q
x i2 = ↵i x 12 + 2
i x 2016 , x i = ↵i x 12 + 2
i x 2016 .
We need to prove
q p p 2
↵i x 12 + 2
i x 2016 > ↵i x1 + i x 2016
So the inequality (⇤) are true for each 2 i 2015. Since all points are
distinct, then A1 6= A2016 , x 1 6= x 2016 then equality does not occur in (⇤).
Solution.
Let BC, DE, AF intersect bound triangle M N P. Because sum of angle in
hexagon is 720 so ‹A + ‹B = ‹C + ‹D = ‹E + ‹F = 240 .
Saudi Arabian Mathematical Competitions 2016