\(p=\left(n-1\right)^2\left[\left(n-1\right)^2+1\right]+1\)
\(\left(n-1\right)^4+2.\left(n-1\right)^2+1-\left(n-1\right)^2\)
\(\left[\left(n-1\right)^2+1\right]^2-\left(n-1\right)^2\)
\(\left[\left(n-1\right)^2+1-\left(n-1\right)\right]\left[\left(n-1\right)^2+1+\left(n-1\right)\right]\)
\(\left[n^2-3n+3\right]\left[n^2-n+1\right]\)
can
\(\orbr{\begin{cases}n^2-3n+3=1\Rightarrow n=\orbr{\begin{cases}n=2\\n=1\end{cases}}\\n^2-n+1=1\Rightarrow n=\orbr{\begin{cases}n=0\\n=1\end{cases}}\end{cases}}\)\(\orbr{\begin{cases}n^2-3n+3=1\\n^2-n+1=1\end{cases}}\)
n=(0,1,2)
du
n=2
ds: n=2