Maths Olympiad Prep

Library / /17 of 17

, 2007

Algebra Difficulty 7.6 National olympiad, round 2 Prove it Japan

In a mathematical competition, gold medals are given to na\lfloor \frac{n}{a} \rfloor people, silver medals to nb\lfloor \frac{n}{b} \rfloor and bronze medals to nc\lfloor \frac{n}{c} \rfloor (abca \ge b \ge c are integer constants and nn is the number of participants). No one gets two or more medals. Determine all triplets (a,b,c)(a, b, c) with the following property.

Property: For all integer k3k \ge 3, there are exactly two nn such that the number of people without medals are kk.

* [r][r] is the maximum integer that does not exceed rr.

Solution

Let f(n)=nnanbncf(n) = n - \lfloor \frac{n}{a} \rfloor - \lfloor \frac{n}{b} \rfloor - \lfloor \frac{n}{c} \rfloor for integer nn. For nn positive, f(n)f(n) is equal to the contestants with no medals on an nn-people contest. Since x1<[x]xx - 1 < [x] \le x, it follows that Snf(n)<Sn+3Sn \le f(n) < Sn + 3 where S=11a1b1cS = 1 - \frac{1}{a} - \frac{1}{b} - \frac{1}{c}. To satisfy the conditions SS must be positive.

It can be conjectured that S=12S = \frac{1}{2}, because f(n)f(n) increases in constant speed SS and takes every integer larger than or equal to 33 twice. We will prove a stronger fact and prove this conjecture from that.

Let LL be the L.C.M. of a,b,ca, b, c. Let S=11a1b1c=MLS = 1 - \frac{1}{a} - \frac{1}{b} - \frac{1}{c} = \frac{M}{L}. MM is integer, and is positive because S>0S > 0. For any integer nn,
f(n+L)=n+Ln+Lan+Lbn+Lc=n+LnaLanbLbncLc=f(n)+L(11a1b1c)=f(n)+M \begin{aligned} f(n+L) &= n+L - \left\lfloor \frac{n+L}{a} \right\rfloor - \left\lfloor \frac{n+L}{b} \right\rfloor - \left\lfloor \frac{n+L}{c} \right\rfloor \\ &= n+L - \left\lfloor \frac{n}{a} \right\rfloor - \frac{L}{a} - \left\lfloor \frac{n}{b} \right\rfloor - \frac{L}{b} - \left\lfloor \frac{n}{c} \right\rfloor - \frac{L}{c} \\ &= f(n) + L \left( 1 - \frac{1}{a} - \frac{1}{b} - \frac{1}{c} \right) = f(n) + M \end{aligned}
and so f(n+tL)=f(n)+tMf(n + tL) = f(n) + tM.

Let fˉ(n)\bar{f}(n) be the remainder of f(n)f(n) divided by MM. From the last equality, fˉ\bar{f} has period LL. Now we prove the following lemma.

Lemma. Let LL and MM be positive integers and g(n)g(n) be a function from integers to integers such that g(n+tL)=g(n)+tMg(n+tL) = g(n)+tM for all n,tn, t. Let gˉ(n)\bar{g}(n) be the remainder of g(n)g(n) divided by MM. Then for 0k<m0 \le k < m we have the following: if there are exactly qq integers nn with 0n<L0 \le n < L and gˉ(n)=k\bar{g}(n) = k, for all integer kk' which is congruent to kk modulo MM there are exactly qq integers nn with g(n)=kg(n) = k'.

Proof of Lemma. Let there be exactly qq integers 0n1,,nq<L0 \le n_1, \dots, n_q < L with gˉ(ni)=k\bar{g}(n_i) = k. Take k=k+uMk' = k + uM. If we write g(ni)=k+tiMg(n_i) = k + t_i M by integer tit_i and let ni=ni+(uti)Ln'_i = n_i + (u - t_i)L, g(ni)=kg(n'_i) = k' and all nin'_i are different since their remainder modulo LL is different. Now we are going to prove that possible cases for nn with g(n)=kg(n) = k' are only n1,,nqn'_1, \dots, n'_q. Suppose g(n)=kg(n) = k' then we have gˉ(n)=k\bar{g}(n) = k. Let nˉ\bar{n} be the remainder of nn divided by LL. Since gˉ\bar{g} has a period LL it follows that gˉ(nˉ)=k\bar{g}(\bar{n}) = k and nˉ\bar{n} is equal to some nin_i. Writing n=ni+sLn = n'_i + sL we have g(ni)=g(n)=g(ni+sL)=g(ni)+sMg(n'_i) = g(n) = g(n'_i + sL) = g(n'_i) + sM and therefore s=0,n=nis = 0, n = n'_i.

Corollary. The condition in the problem is equivalent to the condition that for any 0k<M0 \le k < M there are exactly 2 integers with fˉ(n)=k\bar{f}(n) = k among 0,,L10, \dots, L-1. And if it is satisfied, S=12S = \frac{1}{2}.

Proof of Corollary. If f(n)3f(n) \ge 3, nn must be positive, so the first statement follows from the lemma. Then it must be satisfied that L=2ML = 2M and S=ML=12S = \frac{M}{L} = \frac{1}{2}.

Now we are going to solve the problem with this corollary. First, determine all (a,b,c)(a,b,c) with 1a+1b+1c=12\frac{1}{a} + \frac{1}{b} + \frac{1}{c} = \frac{1}{2}. Since abc>0a \ge b \ge c > 0, 12>1c16\frac{1}{2} > \frac{1}{c} \ge \frac{1}{6} and 3c63 \le c \le 6. If c=3c = 3, 1a+1b=16\frac{1}{a} + \frac{1}{b} = \frac{1}{6}. By aba \ge b we get 1b112\frac{1}{b} \ge \frac{1}{12}. Trying all possible bb, we get (a,b)=(42,7),(24,8),(18,9),(15,10),(12,12)(a,b) = (42,7), (24,8), (18,9), (15,10), (12,12). Checking other possible cc in the same way, we get all (a,b,c)(a,b,c) with 1a+1b+1c=12\frac{1}{a} + \frac{1}{b} + \frac{1}{c} = \frac{1}{2} as (a,b,c)=(42,7,3),(24,8,3),(18,9,3),(15,10,3),(12,12,3),(20,5,4),(12,6,4),(8,8,4),(10,5,5),(6,6,6)(a,b,c) = (42,7,3), (24,8,3), (18,9,3), (15,10,3), (12,12,3), (20,5,4), (12,6,4), (8,8,4), (10,5,5), (6,6,6).

Checking these possibilities by the corollary, we get the answer to the problem: (a,b,c)=(6,6,6),(8,8,4),(10,5,5),(12,6,4)(a,b,c) = (6,6,6), (8,8,4), (10,5,5), (12,6,4).

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.