OFFSET
0,3
LINKS
T. D. Noe, Table of n, a(n) for n = 0..1000
FORMULA
lim_{n->oo} a(n)/n^2 = Pi. - Chai Wah Wu, Feb 12 2025
EXAMPLE
a(3)=25 from the points of shapes 00 (1), 10 (4), 11 (4), 20 (4), 21 (8), 22 (4).
MATHEMATICA
Table[Sum[SquaresR[2, k], {k, 0, n^2 - 1}], {n, 0, 46}]
PROG
(Haskell)
a051132 n = length [(x, y) | x <- [-n..n], y <- [-n..n], x^2 + y^2 < n^2]
-- Reinhard Zumkeller, Jan 23 2012
(Python)
from math import isqrt
def A051132(n): return 1+(sum(isqrt(k*((n<<1)-k)-1) for k in range(1, n+1))<<2) if n else 0 # Chai Wah Wu, Feb 12 2025
CROSSREFS
KEYWORD
nonn,nice,easy,changed
AUTHOR
Jostein Trondal (jostein.trondal(AT)protech.no)
EXTENSIONS
More terms from James A. Sellers
STATUS
approved