Let f(n)=n−⌊an⌋−⌊bn⌋−⌊cn⌋ for integer n. For n positive, f(n) is equal to the contestants with no medals on an n-people contest. Since x−1<[x]≤x, it follows that Sn≤f(n)<Sn+3 where S=1−a1−b1−c1. To satisfy the conditions S must be positive.
It can be conjectured that S=21, because f(n) increases in constant speed S and takes every integer larger than or equal to 3 twice. We will prove a stronger fact and prove this conjecture from that.
Let L be the L.C.M. of a,b,c. Let S=1−a1−b1−c1=LM. M is integer, and is positive because S>0. For any integer n,
f(n+L)=n+L−⌊an+L⌋−⌊bn+L⌋−⌊cn+L⌋=n+L−⌊an⌋−aL−⌊bn⌋−bL−⌊cn⌋−cL=f(n)+L(1−a1−b1−c1)=f(n)+M
and so f(n+tL)=f(n)+tM.
Let fˉ(n) be the remainder of f(n) divided by M. From the last equality, fˉ has period L. Now we prove the following lemma.
Lemma. Let L and M be positive integers and g(n) be a function from integers to integers such that g(n+tL)=g(n)+tM for all n,t. Let gˉ(n) be the remainder of g(n) divided by M. Then for 0≤k<m we have the following: if there are exactly q integers n with 0≤n<L and gˉ(n)=k, for all integer k′ which is congruent to k modulo M there are exactly q integers n with g(n)=k′.
Proof of Lemma. Let there be exactly q integers 0≤n1,…,nq<L with gˉ(ni)=k. Take k′=k+uM. If we write g(ni)=k+tiM by integer ti and let ni′=ni+(u−ti)L, g(ni′)=k′ and all ni′ are different since their remainder modulo L is different. Now we are going to prove that possible cases for n with g(n)=k′ are only n1′,…,nq′. Suppose g(n)=k′ then we have gˉ(n)=k. Let nˉ be the remainder of n divided by L. Since gˉ has a period L it follows that gˉ(nˉ)=k and nˉ is equal to some ni. Writing n=ni′+sL we have g(ni′)=g(n)=g(ni′+sL)=g(ni′)+sM and therefore s=0,n=ni′.
Corollary. The condition in the problem is equivalent to the condition that for any 0≤k<M there are exactly 2 integers with fˉ(n)=k among 0,…,L−1. And if it is satisfied, S=21.
Proof of Corollary. If f(n)≥3, n must be positive, so the first statement follows from the lemma. Then it must be satisfied that L=2M and S=LM=21.
Now we are going to solve the problem with this corollary. First, determine all (a,b,c) with a1+b1+c1=21. Since a≥b≥c>0, 21>c1≥61 and 3≤c≤6. If c=3, a1+b1=61. By a≥b we get b1≥121. Trying all possible b, we get (a,b)=(42,7),(24,8),(18,9),(15,10),(12,12). Checking other possible c in the same way, we get all (a,b,c) with a1+b1+c1=21 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).
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).