Problem

Source: Mathematics Regional Olympiad of Mexico Southeast 2015 P1

Tags: number theory, prime



Find all integers $n>1$ such that every prime that divides $n^6-1$ also divides $n^5-n^3-n^2+1$.