# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/ Search: id:a211648 Showing 1-1 of 1 %I A211648 #5 Dec 04 2016 19:46:28 %S A211648 0,1,3,3,1,0,3,6,3,4,6,6,3,0,6,6,1,6,12,6,0,0,12,12,3,7,6,12,6,0,12,6, %T A211648 3,9,6,12,4,0,12,12,6,6,18,18,6,0,12,12,3,7,15,15,0,0,12,12,6,15,18,6, %U A211648 6,0,18,24,1,12,15,18,6,0,12,12,12,12,18,15,6,0,24,18,0,13,18 %N A211648 Number of ordered triples (w,x,y) with all terms in {1,...,n} and w^2+x^2+y^2=3n. %C A211648 For a guide to related sequences, see A211422. %t A211648 t = Compile[{{n, _Integer}}, Module[{s = 0}, %t A211648 (Do[If[w^2 + x^2 + y^2 == 3 n, s = s + 1], %t A211648 {w, 1, #}, {x, 1, #}, {y, 1, #}] &[n]; s)]]; %t A211648 Map[t[#] &, Range[0, 100]] (* A211648 *) %t A211648 (* _Peter J. C. Moses_, Apr 13 2012 *) %Y A211648 Cf. A211422. %K A211648 nonn %O A211648 0,3 %A A211648 _Clark Kimberling_, Apr 18 2012 # Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE