2011 AIME II Problem 14
Problem 14 of 15HarderNumber TheoryCombinatorics
There are permutations of such that for divides for all integers with Find the remainder when is divided by
Your answer
Integer from 0 to 999
Show solution
Solution
For each the condition means the residue of modulo depends only on defining a map from residues to residues. Each residue class of positions has members, and so does each residue class of values; if sent two position classes to the same value class, that class’s values would have to fill positions, which is impossible. So each is a permutation of the residues modulo
Conversely, by the Chinese remainder theorem each position corresponds to a unique triple and likewise for values. Any choice of permutations therefore determines a unique valid permutation of sending the position triple to the prescribed value triple.
Hence and the remainder upon division by is
Tagged: Chinese Remainder Theorem · modular arithmetic · permutations