A211635
Number of ordered triples (w,x,y) with all terms in {1,...,n} and w^2
0, 1, 7, 22, 51, 97, 166, 263, 391, 554, 756, 1004, 1303, 1653, 2061, 2530, 3068, 3677, 4362, 5126, 5973, 6912, 7942, 9071, 10304, 11640, 13087, 14649, 16333, 18142, 20078, 22150, 24357, 26707, 29202, 31845, 34649, 37610, 40739, 44031
Offset: 0
Keywords
Crossrefs
Cf. A211422.
Programs
-
Mathematica
t = Compile[{{n, _Integer}}, Module[{s = 0}, (Do[If[w^2 < x^2 + y^2, s = s + 1], {w, 1, #}, {x, 1, #}, {y, 1, #}] &[n]; s)]]; Map[t[#] &, Range[0, 50]] (* A211635 *) (* Peter J. C. Moses, Apr 13 2012 *)
Comments