2012 USAJMO · Question 5
Problem outline
Write for the least nonnegative residue of modulo . Choose distinct in . What is the smallest possible number of indices for which ?
Show answer and methods 1 methods
Answer
The minimum is , attained for example at .
Method 1 Pair opposite invertible residues
Factor , with prime (trial division by the primes up to suffices). Among there are odd numbers. Removing and leaves exactly numbers coprime to .
If is coprime to , multiplication by preserves distinctness and nonzeroness modulo . Thus and are distinct positive residues. At they become and , which reverses the comparison. These coprime indices form disjoint pairs since the only possible fixed index would be , which is even. Every pair contributes exactly one strict win, irrespective of .
Choose and . For even , is a multiple of , so the residues tie. The only remaining noncoprime indices are , for which , so neither is a win. All wins have therefore already been counted in the pairs.
Source and attribution
The outline and worked methods on this page were prepared for DR.WANG Mathematics.
Original question (external)