Skip to main content
OlympiadHQ

Browse · MathNet

Print

Japan 2007

Japan 2007 algebra

Problem

In a mathematical competition, gold medals are given to people, silver medals to and bronze medals to ( are integer constants and is the number of participants). No one gets two or more medals. Determine all triplets with the following property.

Property: For all integer , there are exactly two such that the number of people without medals are .

* is the maximum integer that does not exceed .
Solution
Let for integer . For positive, is equal to the contestants with no medals on an -people contest. Since , it follows that where . To satisfy the conditions must be positive.

It can be conjectured that , because increases in constant speed and takes every integer larger than or equal to twice. We will prove a stronger fact and prove this conjecture from that.

Let be the L.C.M. of . Let . is integer, and is positive because . For any integer , and so .

Let be the remainder of divided by . From the last equality, has period . Now we prove the following lemma.

Lemma. Let and be positive integers and be a function from integers to integers such that for all . Let be the remainder of divided by . Then for we have the following: if there are exactly integers with and , for all integer which is congruent to modulo there are exactly integers with .

Proof of Lemma. Let there be exactly integers with . Take . If we write by integer and let , and all are different since their remainder modulo is different. Now we are going to prove that possible cases for with are only . Suppose then we have . Let be the remainder of divided by . Since has a period it follows that and is equal to some . Writing we have and therefore .

Corollary. The condition in the problem is equivalent to the condition that for any there are exactly 2 integers with among . And if it is satisfied, .

Proof of Corollary. If , must be positive, so the first statement follows from the lemma. Then it must be satisfied that and .

Now we are going to solve the problem with this corollary. First, determine all with . Since , and . If , . By we get . Trying all possible , we get . Checking other possible in the same way, we get all with as .

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

Techniques

Floors and ceilingsLeast common multiples (lcm)Techniques: modulo, size analysis, order analysis, inequalities