Problem

Source: Question 6 - Brazilian Mathematical Olympiad 2017

Tags: number theory, Divisibility, prime, Brazilian Math Olympiad, Brazilian Math Olympiad 2017, group theory



6. Let $a$ be a positive integer and $p$ a prime divisor of $a^3-3a+1$, with $p \neq 3$. Prove that $p$ is of the form $9k+1$ or $9k-1$, where $k$ is integer.