Problem 692: (2024 AIME I, 13)
Let $p$ be the least prime number for which there exists an integer $n$ such that $n^{4}+1$ is divisible by $p^{2}$. Find the least positive integer $m$ such that $m^{4}+1$ is divisible by $p^{2}$.
- $p=2$ fails, since $n^4+1\equiv1$ or $2\pmod4$. If an odd prime $p\mid n^4+1$, then $n$ has order $8$ mod $p$, so $p\equiv1\pmod8$; the least candidate is $17$, and solutions mod $17$ lift to mod $17^2$ (the derivative $4n^3$ is nonzero mod $17$). So $p=17$.
- Mod $17$, $m^4\equiv-1$ for $m\equiv2,8,9,15$. Lift $m=8+17t$, $8^4\equiv50\pmod{289}$ and $4\cdot8^3\cdot17t\equiv136t$, so $50+136t\equiv-1$, $8t\equiv14\pmod{17}$, $t\equiv6$, so $m\equiv110$.
- Similarly $2$ lifts to $155$, $9$ to $179$, $15$ to $134$. The least is $m=110$. The answer is $\boxed{110}$.
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}$.