Problem

Source: Korea National Olympiad 2019 P7

Tags: number theory



For prime $p\equiv 1\pmod{7} $, prove that there exists some positive integer $m$ such that $m^3+m^2-2m-1$ is a multiple of $p$.