I need to solve $5n^2+14n+1=k^2$ over integers $n$ and $k$. I was wondering if there is any general theory for solving diophantine equations of the form $an^2+bn+c=k^2$. For my specific case, I already found the first $21$ solutions.


After this I get overflow problems. I noticed that the sequence grows exponentially, so I wondered what the base is. The ratio of terms seems to oscelate between $1.939$ and $3.535$. I then noticed that $3.535\approx\frac52\sqrt{2}$. Unfortunately I could not find a closed expression that is approximately $1.939$.

So is there a general way of solving such equations? And is there an obvious reason why the sequence grows exponentially?


Complete the square, and you get $$ 5 \left(n + \frac{7}{5}\right)^2 - \frac{44}{5} = k^2 $$ or $$ (5n+7)^2 - 44 = 5 k^2 $$ With $x = 5n+7$, this is a Pell-type equation $$ x^2 - 44 = 5 k^2 $$ where you only want solutions where $x \equiv 2 \mod 5$.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.