Maths WorkshopMaths problems with full solutions
Exercise 706Number theory › Divisibility and gcdOlympiadAdded 31 Oct 2026

30 divides n⁵ − n

#divisibility#factorisation

Statement

Prove that n5−nn^5-n is divisible by 3030 for every integer nn.

Hint

Factor n5−n=n(n−1)(n+1)(n2+1)n^5-n=n(n-1)(n+1)(n^2+1) and check divisibility by 22, 33 and 55 separately.

Show solutionHide solution

Solution

We have n5−n=(n−1) n (n+1) (n2+1)n^5-n=(n-1)\,n\,(n+1)\,(n^2+1).

  • By 2 and 3. The product (n−1)n(n+1)(n-1)n(n+1) of three consecutive integers is divisible by 22 and by 33.
  • By 5. Look at nn modulo 55. If n≡0,1n\equiv0,1 or 44, one of nn, n−1n-1, n+1n+1 is divisible by 55. If n≡2n\equiv2 or 33, then n2≡4n^2\equiv4, so n2+1≡0(mod5)n^2+1\equiv0\pmod5.

The numbers 2,3,52,3,5 are pairwise coprime, so n5−nn^5-n is divisible by 2⋅3⋅5=302\cdot3\cdot5=30.