Exercise 1.5.2

Determine all representations of 199 by the form ( 3 , 5 , 7 ) .

Answers

Proof. As in (1.18) and (1.19), the equation

3 x 2 + 5 xy + 7 y 2 = 199

is equivalent to each equation

199 × 12 = ( 6 x + 5 y ) 2 + 59 y 2 , 199 × 28 = ( 14 y + 5 x ) 2 + 59 x 2 .

The first gives y 2 199 × 12 59 = 40 , thus | y | 6 , and the second gives x 2 199 × 28 59 = 94 , thus | x | 9 .

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)

[ ( 3 , 4 ) , ( 3 , 4 ) ]

All representations of 199 by the form 3 x 2 + 5 xy + 7 y 2 are ( 3 , 4 ) and ( 3 , 4 ) . □

User profile picture
2024-06-22 17:30
Comments