So I've a question in my maths homework which I can't solve:
Find the integer solutions to:
$4x^2 + 5y = 1$
The answer is:
$(x,y) =\begin{cases}(5k+ 2,−(20k^2 + 16k + 3))\\(5k+ 3,−(20k^2 + 24k + 7))\end{cases} $
I've tried a couple of things but I don't think any of them are right, so any help? Thanks!
Since $5y\equiv 0 \bmod 5$, you have $4x^2\equiv 1 \bmod 5$. Then $4^{-1}=4\bmod 5 $ and so $x^2\equiv 4 \bmod 5$
Then $x\equiv \pm 2 \in \{2,3\}\bmod 5$, which can be expressed per your answer as $x = \{5k+2,5k+3\}$ and $y$ can be calculated correspondingly from the original expression.