I'm trying to find all integer solutions of an equation $x^2 + dy^2 = c$ with $d,c \in \mathbb{Z}_{>0}$. I'm well aware of the methods that exists when $d \in \mathbb{Z}_{<0}$ or when $c$ is a square. But what if both are not the case? I'm especially interested in the equation $x^2 + 7y^2 = 116$.
I've tried splitting it up in $\mod 29$ and $\mod 4$, but couldn't find all the solutions in $\mod 29$. Any thoughts?
For this particular equation if $|y|>4$ then $7y^2>116$,also if $|x|>10$ then $x^2>116$(for $x,y$ integers).Now by trial you have that $$(x,y)=(2,4),(-2,4),(2,-4),(-2,-4)$$