Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can do:

sage: BinaryQF_reduced_representatives(-47)
[x^2 + x*y + 12*y^2,
2*x^2 - x*y + 6*y^2,
2*x^2 + x*y + 6*y^2,
3*x^2 - x*y + 4*y^2,
3*x^2 + x*y + 4*y^2]

and to get the coefficients:

sage: [qf.polynomial().coefficients() for qf in BinaryQF_reduced_representatives(-47)]
[[1, 1, 12], [2, -1, 6], [2, 1, 6], [3, -1, 4], [3, 1, 4]]