Finding the solution classes (primitive and imprimitive) of the diophantine equation ax2+bxy+cy2=n, where b2-4ac > 0 and is not a perfect square, n non-zero, gcd(a,b,c)=1


(See paper.) The standard method is due to Gauss (See G.B. Mathews Number Theory, page 97 or L.E. Dickson, Introduction to the theory of numbers, pages 74-75.)

Enter a:
Enter b:
Enter c: (gcd(a,b,c)=1)
Enter n (non-zero):

Last modified 16th March 2015
Return to main page