A211642 Number of ordered triples (w,x,y) with all terms in {1,...,n} and w^2+x^2+y^2<2n.
0, 0, 1, 1, 4, 7, 10, 11, 17, 20, 26, 32, 35, 38, 48, 54, 60, 66, 75, 78, 87, 96, 105, 114, 120, 127, 139, 145, 157, 169, 178, 184, 196, 202, 217, 232, 238, 244, 263, 278, 284, 296, 308, 314, 329, 347, 365, 371, 383, 389, 410, 428, 434, 452, 467, 477
Offset: 0
Keywords
Crossrefs
Cf. A211422.
Programs
-
Mathematica
t = Compile[{{n, _Integer}}, Module[{s = 0}, (Do[If[w^2 + x^2 + y^2 < 2 n, s = s + 1], {w, 1, #}, {x, 1, #}, {y, 1, #}] &[n]; s)]]; Map[t[#] &, Range[0, 80]] (* A211642 *) (* Peter J. C. Moses, Apr 13 2012 *)
Comments