The numbers of lattice points falling on the circumference of circles centered at the origin of radii $0, 1, 2, \ldots$ are known to be $$1, 4, 4, 4, 4, 12, 4, 4, 4, 4, 12, 4, 4,\ldots$$ see on the Online Encyclopeadia of Integer Sequences (OEIS A046109).
The relevant function is $r_2(n^2)$ or the sum of squares function. More generally $r_k(n)$ is the function counting the number of representations of $n$ by $k$ squares, allowing zeros and distinguishing signs and order. See equations (17) and (18) in https://mathworld.wolfram.com/SumofSquaresFunction.html.
See also, https://mathworld.wolfram.com/CircleLatticePoints.html for more details.
Is it known whether one can get more lattice points on a circle centred at origin if radii that are not nonnegative integers are allowed? It seems like the answer should be "no".
What about the maximum
$$M(n):=\max\{ r_2(x) : x \in (0,n] \}?$$
Is it possible to bound this maximum from above? It should be less than the maxima achieved on the integers as in the above OEIS sequence.