# History of the Gauss Circle Problem

The Gauss Circle Problem: find the number of integer lattice points inside a circle.

My question is: why was Gauss studying this problem? Was it just math for math's sake, or was this a part of a larger problem he wanted to solve?

I'm guessing there must be a connection to Gaussian integers, but I tried to find the origin on math history books and couldn't find anything.

Apparently it is not very well known that Legendre studied the circle problem in his Essai sur la theorie des nombres (see $$\S$$ 319) published in 1798, also in connection with binary quadratic forms, but on a more elementary level: His aim was provind that a form $$Ax^2 + Bxy + Cy^2$$ represents a small number $$c$$ (less than the determinant $$D$$ of the form) coprime to $$D$$.