Solving diophantine equations: Finding integer solutions

147 Views Asked by At

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!

2

There are 2 best solutions below

2
On BEST ANSWER

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.

0
On

Hint:

$$4x^2+5y=1\iff5y=(1-2x)(1+2x)$$

and

$$5\mid ab\iff 5\mid a\,\,\lor\,\,5\mid b$$