I have this review question for an exam and I was hoping someone can help me solve it:
Prove that if $a \mid n$ then $a^2\mid (n + 1)(n − 1) + 1$
this is what I have so far, not sure if it is right:
$a^2\mid (n + 1)(n − 1) + 1$
$=(n+1)(n-1)+1$
$=n^2-n+n-1+1$
$=n^2$
You're right. $(n+1)(n-1) + 1 = n^2$. Therefore, $a^2 \mid (n+1)(n-1) + 1$ is exactly the same statement as $a^2 \mid n^2$, even though it looks slightly different.
Now, if $a\mid n$, that means that $n = a\cdot m$ for some integer $m$. What can you say about $n^2$?