Cohn, J. H. E. “Squares in Arithmetical Progressions I”. Mathematica Scandinavica, vol. 52, Dec. 1983, pp. 5-19, https://doi.org/10.7146/math.scand.a-11988.