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


This program uses the bounds provided by Bengt Stolt, to find the fundamental solutions of the diophantine equation ax2+bxy+cv2=n, where n is non-zero, a > 0 and d = b2 - 4ac > 0 is nonsquare. See Arkiv för Matematik, Bd. 3, Nr. 33, 381-390. It turns out that with suitable restriction on when equality occurs in the bounds, the conditions give a characterization of the fundamental solutions. This is explained in the paper On fundamental solutions of binary quadratic form equations, K.R. Matthews, J.P. Robertson and A. Srinivasan, Acta Arith. 169 (2015), 291-299.

This is a BCMath version of the BC program stolt.

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

Last modified 15th January 2015
Return to main page