I recently encountered the following problem:
A natural number $n$ is called correct if and only if the sum of the squares of $n$'s divisors equals $(n+3)^2$. Prove that no numbers of the form $n=p^m$, where $p$ is a prime and $m\in\Bbb{N}$ (prime powers) can be correct. (from the N. N. Mihaileanu Mathematics Contest – 8th Grade 2017, Romania)
First of all, I looked at the sum of the divisor squares:
$$S=\sum_{d\in D_{p^m}^+}d^2$$
Where $D_{p^m}^+$ is the set of $p^m$'s positive divisors. However, since $p^m$ is a prime power, this set can also be expressed as:
$$D_{p^m}^+=\{0\le k\le m\mid p^k\}$$
So it follows that our sum can simply be expressed as:
$$S=\sum_{k=0}^m (p^k)^2=\sum_{k=0}^m p^{2k}$$
Now, I tried to continue on with the proof using Reductio ad absurdum, by assuming that $S$ can equal $(n+3)^2$:
$$\sum_{k=0}^m p^{2k}=(p^m+3)^2$$
Subtracting $p^{2m}$ from both sides,
$$\sum_{k=0}^{m-1} p^{2k}=6p^m+9$$
Then, I tried evaluating the sum of that series, obtaining:
$$6p^m+9=\frac{p^{2m}-1}{p^2-1}$$
However, I am stuck here. I tried my best to avoid splitting in cases, but am currently unable to finish my proof. Any hints on what I should do next (preferably, without having to consider cases separately, but that works too)?
Letting $x=p^m$, the key equation becomes $6x+9=(x^2-1)/(p^2-1)$, or
$$x^2-6(p^2-1)x-(9p^2-8)=0$$
for which the quadratic formula tells us
$$x=3(p^2-1)\pm\sqrt{9(p^2-1)^2+(9p^2-8)}=3(p^2-1)\pm\sqrt{9p^4-9p^2+1}$$
This implies the discriminant is a perfect square, which implies
$$36p^4-36p^2+4=(6p^2-3)^2-5$$
is a square. But the only two squares that differ by $5$ are $9$ and $4$, and
$$6p^2-3=3\implies p=\pm1$$