0

What are the conditions of solvability of the equation $p^2=2xq^2+2yq+1$ where

$p,q$ being prime and $x,y\in \mathbb{N}$?

Thank you in advance...

Kurtul
  • 355
  • 3
  • 12

1 Answers1

0

The right side of the equation is an odd number, therefore $p$ too.

$q$ devides $p+1$ or $p-1$. Therefore $p:=2kq\pm 1$, $k\in\mathbb{N}$.

$(2kq\pm 1)^2=4k^2 q^2\pm 4kq +1=2xq^2+2yq+1$

You can set $x=2k^2$ and $y=\pm 2k$ independend of $q$.

Because of $y>0$ (means $y=2k$) you can only choose $p:=2kq+1$.

user90369
  • 11,696