Skip to main content
OlympiadHQ

Browse · MathNet

Print

Team selection tests 2021

Vietnam 2021 number theory

Problem

Let be a positive integer and be a prime number such that . Let be the set of positive integers with different residues modulo . Show that there exists a positive integer such that there are exactly two ordered triples with distinct elements, such that is divisible by .
Solution
For each integer , let denote the remainder of divided by . For each subset of and integers , denote Every integer is coprime with , has an inverse modulo , therefore, if is coprime with , it's easy to verify that is special if and only if is special. Our solution is based on the following lemmas.

Lemma 1. The set of natural numbers that are at most is special.

Proof. Let be the two largest numbers and be the smallest in . Choose , therefore, for any triple with distinct elements, we have Hence,

Lemma 2. If , for any set of natural numbers, there exists integers , where is coprime with , such that all elements of is at most .

Proof. Assume that , since we can choose arbitrary integer such that . For each , let .

Consider as a -tuple , where and . Each integer corresponds to -tuple , where is the index such that . By Pigeonhole principle, there exists the set with 6 integers , corresponding to the same -tuple. By the same argument, there exist such that Choose , then for all . It's easy to verify that if then . Since then , holds for all integer . Hence, our proof is completed.

Techniques

Inverses mod nPigeonhole principle