Determine the $\gcd$ and $\text{lcm}$ of $\,n^{2}+1$ and $\,n(n^{2}-1)$
My attempt :
Let: $\ d\mid n^{2}+1 $ and $\,d\mid n(n^{2}-1) $
Then: $\ d\mid n(n^{2}+1)-n(n^{2}-1) = 2n$
For example: $n=2$ then $d=1$ ??
$n=3$ then $d=2$
I'm correct or no ??
And what about $\text{lcm}$ ??