Homepage › Solution manuals › Johannes Buchmann › Binary Quadratic Forms › Exercise 1.5.2
Exercise 1.5.2
Determine all representations of by the form .
Answers
Proof. As in (1.18) and (1.19), the equation
is equivalent to each equation
The first gives , thus , and the second gives , thus .
We obtain all the solutions with the python code
l = [] for x in range(-6, 7): for y in range(-9, 10): if 3*x**2 + 5 * x * y + 7 * y**2 == 199: l.append((x,y)) print(l)
All representations of by the form are and . □
2024-06-22 17:30