MathDB
Moldova mo 2006, 10th grade

Source: Moldova MO 2006

March 21, 2006
functionnumber theory unsolvednumber theory

Problem Statement

Let nn be a positive integer, n2n\geq 2. Let M={0,1,2,n1}M=\{0,1,2,\ldots n-1\}. For an integer nonzero number aa we define the function fa:MMf_{a}: M\longrightarrow M, such that fa(x)f_{a}(x) is the remainder when dividing axax at nn. Find a necessary and sufficient condition such that faf_{a} is bijective. And if faf_{a} is bijective and nn is a prime number, prove that an(n1)1a^{n(n-1)}-1 is divisible by n2n^{2}.