The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A211649 Number of ordered triples (w,x,y) with all terms in {1,...,n} and w^2+x^2+y^2=2n. 3
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, 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, 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 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
COMMENTS
For a guide to related sequences, see A211422.
LINKS
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, 400]] (* A211649 *)
-1 + Flatten[Position[%, 0]] (* A182195 *)
(* Peter J. C. Moses, Apr 13 2012 *)
CROSSREFS
Cf. A211422.
Sequence in context: A349911 A090030 A293616 * A202023 A080159 A144299
KEYWORD
nonn
AUTHOR
Clark Kimberling, Apr 18 2012
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 2 00:37 EDT 2024. Contains 373032 sequences. (Running on oeis4.)