[tex]\Leftrightarrow (x+1)(x^2-x+1)=(2y^2)[/tex]
Đặt [tex]gcd(x+1;x^2-x+1)=d(d \in \mathbb{N})\Rightarrow \left\{\begin{matrix} x+1\vdots d\\ x^2-x+1\vdots d \end{matrix}\right.\Rightarrow \left\{\begin{matrix} 3x+3\vdots d\\ x^2+2x+1 \vdots d\\ x^2-x+1\vdots d \end{matrix}\right.\Rightarrow 1\vdots d\Rightarrow d=1[/tex]
[tex]\Rightarrow gcd(x+1,x^2-x+1)=1\Rightarrow \left\{\begin{matrix} x+1=a^2\\ x^2-x+1=b^2 \end{matrix}\right.[/tex]
Xét [tex]x^2-x+1=b^2\Leftrightarrow 4x^2-4x+4=4b^2\Rightarrow (2x-1)^2-(2b)^2=-3\Leftrightarrow (2x-2b-1)(2x+2b-1)=-3[/tex]
Đến đây lập bảng giá trị nhé