Problem

Source: Mongolian MO 2002 Teachers P4

Tags: number theory



Let $p\ge5$ be a prime number. Prove that there exists $a\in\{1,2,\ldots,p-2\}$ satisfying $p^2\nmid a^{p-1}-1$ and $p^2\nmid(a+1)^{p-1}-1$.