Skip to main content
OlympiadHQ

Browse · MathNet

Print

China Western Mathematical Olympiad

China counting and probability

Problem

For a given positive integer , find the greatest positive integer , such that there exist three sets of distinct nonnegative integers, , and with for any .
Solution
By the given condition, we have and then .

The following illustrates the case of :

Set .

When , for , let , , ; for , let , , , and the result is obvious.

When , for , let , , ; for , let , , ; and , , will lead to the expected result.

When , for , let , , ; for , let , , ; and , , , and the result follows.

In summary, the maximum value of is .
Final answer
floor(2n/3) + 1

Techniques

Coloring schemes, extremal argumentsSums and productsIntegers