Integer lattice with highlighted points inside the circle
N(r) minus pi r squared

Gauss Circle Problem: Lattice Points, Error Term and the Sum of Two Squares Function (2D)

Count the integer lattice points inside a circle and compare with its area. Grow the radius, shift the centre, and watch the count N(r) step up at every sum of two squares while the error N(r) minus pi r squared stays far smaller than the circumference. A Blender-built board and ring with instanced lattice points, and numerical checks including Jacobi sum of two squares formula and brute-force counts.

Made with 🟠 Blender