Let $p$ be the least prime number for which there exists an integer $n$ such that $n^{8}+1$ is divisible by $p^{2}$. Find the least positive integer $m$ such that $m^{8}+1$ is divisible by $p^{2}$.
$p=2$ fails, since $n^8+1\equiv1$ or $2\pmod4$. An odd prime divisor of $n^8+1$ has $n$ of order $16$, so $p\equiv1\pmod{16}$, $p\ge17$; and $17^2$ works by Hensel lifting.
The solutions mod $17$ are the elements of order $16$, namely $3,5,6,7,10,11,12,14$. Each lifts to one solution mod $289$.
Checking from below, the least is $m=40$ (a lift of $6$).