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