$\forall$ $a$, $n$ $\in \mathbb Z$, if $a|n^2$ and $a\le n$, then $a|n$.
I've tried:-
From
$
∣
^
2$
$n ^ 2 =ak$, for some integer $$.
Assuming $ =
$
$ =
$
Squaring $$ :
$$^2=(
)
^2= ^
2
^
2 2 ^
2$$
$$\implies a^2+2aqr+r^2=ak$$
$$\implies a^2+2aqr+r^2-ak=0$$ $\therefore r^2\text{ mod }a=0$
I've to prove that $r\text{ mod }a=0$, and I'm back to where I started.
I've tried to prove this with the unique factorization theorem as well, but I can't find the right statements at all. The assertion seems simple, but I can't prove it at all.