A212093 Number of (w,x,y,z) with all terms in {1,...,n} and w^2<=x^2+y^2+z^2.
0, 1, 15, 76, 234, 565, 1161, 2145, 3644, 5825, 8854, 12940, 18300, 25173, 33814, 44524, 57587, 73346, 92127, 114312, 140272, 170421, 205198, 245043, 290413, 341832, 399774, 464801, 537425, 618289, 707923, 807009, 916110, 1035937
Offset: 0
Keywords
Crossrefs
Cf. A211795.
Programs
-
Mathematica
t = Compile[{{n, _Integer}}, Module[{s = 0}, (Do[If[w^2 <= x^2 + y^2 + z^2, s = s + 1], {w, 1, #}, {x, 1, #}, {y, 1, #}, {z, 1, #}] &[n]; s)]]; Map[t[#] &, Range[0, 50]] (* A212093 *) (* Peter J. C. Moses, Apr 13 2012 *)
Comments