Skip to main content
OlympiadHQ

Browse · MathNet

Print

China Girls' Mathematical Olympiad

China counting and probability

Problem

We say a positive integer is "good" if there is a permutation of such that is a perfect square for all . Determine all the good numbers in the set .
Solution
The good numbers are , , and . However is not.

Note that for , is a perfect square if and only if . Likewise, is a perfect square if and only if . Hence is not good.

Note that is good because

: 1 2 3 4 5 6 7 8 9 10 11 12 13, : 8 2 13 12 11 10 9 1 7 6 5 4 3.

Similarly, , and are good because

: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15, : 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1;

: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17, : 3 7 6 5 4 10 2 17 16 15 14 13 12 11 1 9 8;

: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19, : 8 7 6 5 4 3 2 1 16 15 14 13 12 11 10 9 19 18 17.
Final answer
13, 15, 17, 19

Techniques

Pigeonhole principleMatchings, Marriage Lemma, Tutte's theorem