A212092
Number of (w,x,y,z) with all terms in {1,...,n} and w^2
0, 1, 15, 73, 231, 562, 1155, 2133, 3632, 5801, 8830, 12907, 18264, 25131, 33766, 44461, 57524, 73274, 92043, 114213, 140173, 170289, 205057, 244884, 290251, 341658, 399594, 464582, 537200, 618046, 707665, 806727, 915828, 1035607
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]] (* A212092 *) (* Peter J. C. Moses, Apr 13 2012 *)
Comments