Consider the quadratic Diophantine equation of the form:
x^2 – Dy^2 = 1
When D=13, the minimal solution in x is 649^2 – 13×180^2 = 1. It can be assumed that there are no solutions in positive integers when D is square.
Given a value of D, find the minimum value of X that gives a solution to the equation.
How exactly does, "6492 – 13×1802 = 1", as given in the example?
The 2s at the end of 649 and 180 used to be superscripts. I'm not quite sure when that changed, but it is fixed now. Thanks for the heads up on that.
No problem. Thanks for the fix!
Sorry, I got stuck just trying to figure out how to use a switch statement again. This is not a solution.
Nice usage of DEAL and determination of intermediate integer solution to Pell's algorithm.
746 Solvers
Is my wife right? Now with even more wrong husband
1145 Solvers
Getting the indices from a matrice
265 Solvers
Find nearest prime number less than input number
180 Solvers
100 Solvers