MathLabs

Problem 3

Find all positive integers nn such that for any integer kk there exists an integer aa for which a3+a−ka^3+a-k is divisible by nn.
Step 1 of 4: Powers of three work
(a3+a)−(b3+b)=(a−b)(a2+ab+b2+1)(a^3+a)-(b^3+b)=(a-b)(a^2+ab+b^2+1)
Detailed analysis

For modulus three to a positive power, suppose the two values coincide. The displayed factorization holds, and the second factor is never divisible by three, as a direct check modulo three shows. Hence a and b are congruent, so the map is injective on a finite residue system and therefore a permutation. Modulus one also works.