Williams, K. S. “Forms Representable by an Integral Positive-Definite Binary Quadratic Form”.
MATHEMATICA SCANDINAVICA
, vol. 29, Dec. 1971, pp. 73-86, doi:10.7146/math.scand.a-11036.