OFFSET
0,3
LINKS
David A. Corneth, Table of n, a(n) for n = 0..4999
FORMULA
The sequence a(n)/n^3 converges to Pi/36 as n->oo.
EXAMPLE
The integer triples (x,y,z) with 0 <= x <= y <= z and x^2 + y^2 + z^2 < 2^2 are exactly [0, 0, 0], [0, 0, 1], [0, 1, 1] and [1, 1, 1], so a(2) = 4.
PROG
(PARI) a(n) = sum(z=0, n, sum(y=0, z, sum(x=0, y, x^2+y^2+z^2 < n^2)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Jean-Marc Rebert, May 22 2026
STATUS
approved
