1

Find all prime numbers such that $2p^4-p^2+16$ is a perfect square.

$2p^4-p^2+16=n^2$

$16-n^2=p^2-2p^4$

$(4-n)(4+n)=p^2(1-2p^2)$

What should I do next?

Tapi
  • 1,688

1 Answers1

4

Observe that for $p>3$ we have $$p \equiv 1\ \text {or}\ 2\ (\text {mod}\ 3).$$

Let for $p>3$ $\exists$ $k \in \Bbb N$ such that $$2p^4-p^2+16 = k^2.$$ But then $$2p^4-p^2+16 \equiv 2\ \not\equiv 0\ \text {or}\ 1 \equiv k^2\ (\text {mod}\ 3).$$

So $p=3$ is the only solution.

little o
  • 4,853
  • How did you conclude that 2p^4−p^2+16≡2(mod 3)? Did you just check for the next few primes? – Tapi Apr 20 '19 at 19:08
  • 3
    Because if $p \equiv 1\ \text {or}\ 2\ (\text {mod}\ 3)$ then $p^2 \equiv 1\ (\text {mod}\ 3)$ and hence $p^4 \equiv 1\ (\text {mod}\ 3).$ So we have $$\begin{align} 2p^4-p^2 + 16 & \equiv 2.1 - 1 + 16\ (\text {mod}\ 3). \ & \equiv 17\ (\text {mod}\ 3). \ & \equiv 2\ (\text {mod}\ 3). \end{align}$$ Hope it will help. – little o Apr 20 '19 at 19:13