122/ Olympiad Corner
122/ Olympiad Corner
122/ Olympiad Corner
OLYMPIAD CORNER
No. 371
The problems in this section appeared in a regional or national mathematical Olympiad.
OC416. Mim has a deck of 52 cards, stacked in a pile with their backs facing
up. Mim separates the small pile consisting of the seven cards on the top of the
deck, turns it upside down, and places it at the bottom of the deck. All cards are
again in one pile, but not all of them face down; the seven cards at the bottom
do, in fact, face up. Mim repeats this move until all cards have their backs facing
up again. In total, how many moves did Mim make?
OC417. A 2017 × 2017 table is filled with nonzero digits. Among the 4034
numbers whose decimal expansion is formed with the rows and columns of this
table, read from left to right and from top to bottom, respectively, all but one are
divisible by a prime number p, and the remaining number is not divisible by p.
Find all possible values of p.
OC418. There are 100 gnomes with weight 1, 2, . . . , 100 kg gathered on the
left bank of the river. They cannot swim, but they have one boat with capacity
100 kg. Because of the current, it is hard to row back, so each gnome has enough
power only for one passage from right side to left as oarsman. Can all gnomes get
to the right bank?
OC419. Let n be a nonzero natural number, let a1 < a2 < . . . < an be real
numbers and let b1 , b2 , . . . , bn be real numbers. Prove that:
(a) if all the numbers bi are positive, then there exists a polynomial f with real
coefficients and having no real roots such that f (ai ) = bi for i = 1, 2 . . . , n;
(b) there exists a polynomial f of degree at least 1 having all real roots and such
that f (ai ) = bi for i = 1, 2 . . . , n.
OC420. Consider a triangle ABC with ∠A < ∠C. Point E is on the internal
angle bisector of ∠B such that ∠EAB = ∠ACB. Let D be a point on line BC
such that B ∈ CD and BD = AB. Prove that the midpoint M of the segment
AC is on the line DE.
.................................................................
Les problèmes présentés dans cette section ont déjà été présentés dans le cadre d’une
olympiade mathématique régionale ou nationale.
Pour faciliter l’examen des solutions, nous demandons aux lecteurs de les faire parvenir
au plus tard le 15 juin 2019.
La rédaction souhaite remercier Rolland Gaudet, professeur titulaire à la retraite à
l’Université de Saint-Boniface, d’avoir traduit les problèmes.
OC416. Mim a devant elle un paquet de 52 cartes, dans une pile avec les
versos vers le haut. Elle retire la toute petite pile de sept cartes du haut, la renverse
en un mouvement et la place au fond du paquet. Les cartes sont ainsi de nouveau
en une seule pile, mais les versos ne sont plus tous vers le haut; les sept cartes
au fond ont leurs versos vers le bas. Mim répète la même série de déplacements,
jusqu’à ce que tous les versos se retrouvent de nouveau vers le haut. Déterminer
le nombre de déplacements effectués.
OC417. Un tableau 2017 × 2017 consiste de chiffres non nuls. Les rangées,
lues de gauche à droite, et les colonnes, lues du haut vers le bas, donnent les
représentations décimales de 4034 entiers. Pour un certain nombre premier p,
tous ces 4034 entiers sont divisibles par p, sauf un seul. Déterminer toute valeur
possible de p.
OC419. Soit n un nombre naturel non nul et soient a1 < a2 < . . . < an puis
b1 , b2 , . . . , bn des nombres réels. Démontrer que:
(a) si tous les nombres bi sont positifs, alors il existe un polynôme f à coefficients
réels et n’ayant aucune racine réelle tel que f (ai ) = bi pour i = 1, 2 . . . , n;
(b) il existe un polynôme de degré au moins 1 ayant seulement des racines réelles,
tel que f (ai ) = bi pour i = 1, 2 . . . , n.
OC420. Soit un triangle ABC tel que ∠A < ∠C. Le point E se trouve sur la
bissectrice interne de ∠B de façon à ce que ∠EAB = ∠ACB. Enfin, soit D un
point sur la ligne BC tel que B ∈ CD et BD = AB. Démontrer que le mi point
M du segment AC se trouve sur la ligne DE.
OLYMPIAD CORNER
SOLUTIONS
Statements of the problems in this section originally appear in 2018: 44(2), p. 52–53,
and 44(3), p. 100–101.
OC366. Prove that there exist infinitely many positive integer triples (a, b, c)
such that a, b, c are pairwise relatively prime, and ab + c, bc + a, ca + b are pairwise
relatively prime.
Originally 2016 China Western Mathematical Olympiad Day 2 Problem 5.
We received 6 submissions. We present 3 solutions.
Solution 1, by Shuborno Das.
Let a = 2, b = 3 and c be any prime number greater than 3 such that c ≡ 4
(mod 5). We claim that ab + c, bc + a, ca + b are pairwise co-prime for the above
choice. Note that gcd(2, 3) = gcd(2, c) = gcd(3, c) = 1. Now,
ab + c = c + 6, bc + a = 3c + 2, ca + b = 2c + 3.
Therefore,
Now, 6c+4 ≡ c−1 (mod 5). We have assumed that c ≡ 4 (mod 5), that is c−1 6≡ 0
(mod 5), so gcd(5, 6c + 4) = 1. By Dirichlet’s theorem, there are infinitely many
primes of the form 5k + 4. This means there are infinitely many triples (a, b, c)
satisfying the condition.
n = 10k, u = ab + c, v = bc + a, w = ca + b.
Then,
(u, v, w) = (n2 + 1, n2 + 2n − 1, n2 + n − 1).
We have
(n + 3)u − (n + 1)v = 4,
so that every common divisor of u and v is a divisor of 4. Since u = 100k 2 + 1 is
odd, gcd(u, v) = 1. From the identity
(n + 1)v − (n + 2)w = 1,
(n + 3)u − (n + 2)w = 5,
(an , bn , cn ) = (2n , 3, 5)
x = an bn + cn = 3 · 2n + 5, y = bn cn + an = 3 · 5 + 2n , z = cn an + bn = 5 · 2n + 3.
5x − 3z = 25 − 9 = 24 .
5z − y = 24 · 2n = 3 · 2n+3 .
The only odd positive divisors of 3 · 2n+3 are 1 and 3. If d = 3, then d divides y
and d divides 15 implies d divides y − 15 = 2n , a contradiction. Hence, d = 1 so
that y and z are relatively prime.
Therefore, x, y and z are pairwise relatively prime for each positive integer n.
Summarizing, if for each positive integer n, (2n , 3, 5) define infinitely many positive
integer triples that are pairwise relatively prime, then the triples
(3 · 2n + 5, 5 · 3 + 2n , 5 · 2n + 3)
∠A + ∠B
Å ã
∠BKD + ∠BID = (180◦ − ∠DBK − ∠BDK) +
2
∠A + ∠B
Å ã Å ã
◦ ∠DBS ∠A ∠B
= 180 − − − +
2 4 2 2
∠A + ∠B
Å ã Å ã
∠A ∠B
= 180◦ − − +
2 2 2
◦
= 180 ,
∠A ∠B
∠SBI = ∠SBC + ∠CBI = + = ∠BAI + ∠ABI = ∠SIB,
2 2
so SB = SI. As K is the incenter of 4DSB, then KS bisects ∠ISB, which gives
KI = KB.
As point P is the reflection of point I over the line KL, then IK = P K, so
KB = IK = P K. Therefore, the circumcenter of 4BP I is point K and similarly
the circumcenter of 4CP I is point L.
Now, we have
OC370. Integers n and k are given, with n ≥ k ≥ 2. You play the following
game against an evil wizard. The wizard has 2n cards; for each i = 1, . . . , n, there
are two cards labeled i. Initially, the wizard places all cards face down in a row,
in unknown order. You may repeatedly make moves of the following form: you
point to any k of the cards. The wizard then turns those cards face up. If any
two of the cards match, the game is over and you win. Otherwise, you must look
away, while the wizard arbitrarily permutes the k chosen cards and then turns
them back face-down. Then, it is your turn again.
We say this game is winnable if there exist some positive integer m and some
strategy that is guaranteed to win in at most m moves, no matter how the wizard
responds. For which values of n and k is the game winnable?
Originally 2016 USAMO Day 2 Problem 6.
The inequality in the statement will be obtained via AM-GM inequality and
Cauchy-Schwarz inequality.
First, we establish that for any positive real numbers x, y, and, z, we have
xyz xyz xyz
+ 3 + 3 ≤1 (1)
x3 + y 3 + xyz y + z 3 + xyz z + x3 + xyz
Indeed AM-GM inequality implies that
x3 + x3 + y 3 x3 + y 3 + y 3
≥ x2 y, ≥ xy 2
3 3
and so x3 + y 3 ≥ x2 y + xy 2 . Similarly
y 3 + z 3 ≥ y 2 z + yz 2 and z 3 + x3 ≥ z 2 x + zx2 .
After dividing both sides of (3) by 2(a + b + c), we obtain the statement inequality.
Equality holds if and only if a = b = c = 1.
and
∠N CA1 = 180◦ − ∠ACA1 = 90◦ .
then rays AA1 , AB, AC, and AD are also in counterclockwise order and P and
B are on different sides of AC. Moreover, ∠CAD = ∠C − 90◦ and
leading to
180◦ − ∠AP N
∠N AP = = ∠C − 90◦ = ∠CAD,
2
so, again, P belongs to the altitude AD.
As the above is symmetric in a and b, it follows that f (b, a) = f (a, b) for any
a ≥ 1, b ≥ 1.
Relation (1) follows from writing the set T of a-tuples (s1 , . . . , sa ) of integers such
that |s1 | + · · · + |sa | ≤ b as the union of three mutually exclusive sets. Namely,
p
X
(ai+d − ai )2 ≡ 0 (mod p) ,
i=1
Proof of A. If p − 1 | k, the result follows from Fermat’s little theorem. For any
1 ≤ i ≤ p − 1, i is not divisible by p, hence we have ip−1 ≡ 1(mod p), and
ik ≡ 1(mod p). Therefore
p
X
ik ≡ p − 1 + pk (mod p) ≡ −1(mod p).
i=1
(2) ⇒ (1)
Lagrange polynomials and modular multiplicative inverse under p can be used to
construct a polynomial P of degree at most p − 1, such that P (i) ≡ ai (mod p) for
any 1 ≤ i ≤ p. The polynomial P can be thought of as interpolating the data set
of points {(i, ai ), 1 ≤ i ≤ p} mod p.
Assuming (2), we will prove by contradiction that the degree of P is at most
(p − 1)/2, mod p.
Assume deg(P ) ≥ (p − 1)/2 + 1, mod p. Let k be the degree of P mod p, and
let R be the coefficient of xk in P , R 6≡ 0(mod p) . From (B) we know that the
degree of Q in x is at most 2(k − 1) ≤ 2(p − 2). Note that since (2) is valid for any
1 ≤ d ≤ (p − 1)/2, in fact, it is valid for 0 ≤ d ≤ p − 1. Due to (A) and (2) we have
that the coefficient of xp−1 in Q(x), Cp−1 (d) ≡ 0(mod p) for any 0 ≤ d ≤ p − 1.
However, Cp−1 (d) is a polynomial in d of degree at most 2k − (p − 1) ≤ p − 1.
Having more roots modulo p than its degree, it follows that Cp−1 (d) is the zero
polynomial modulo p and that all its coefficients are 0 modulo p.
The coefficient of d2k−p+1 , the monomial with largest exponent in Cp−1 (d), origi-
nates from the expansion of R2 (x + d)2k − 2R2 (x + d)k xk and is a combination of
binomial coefficients
Ç å Ç å
2 2k k
R −2 .
p−1 2k − p + 1
2k k
However, notice that p divides p−1 and does not divide 2k−p+1 , since p+1 ≤ 2k
and k ≤ p − 1. It follows that R ≡ 0(mod p) which is a contradiction. It must be
that deg(P ) ≤ (p − 1)/2.
Editor’s Comments. The question and its solution can be better understood when
viewed in the finite field, Zp , of integers mod p.