login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 56th year, we are closing in on 350,000 sequences, and we’ve crossed 9,700 citations (which often say “discovered thanks to the OEIS”).

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

Table of n, a(n) for n=0..87.

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: A235794 A090030 A293616 * A202023 A080159 A144299

Adjacent sequences:  A211646 A211647 A211648 * A211650 A211651 A211652

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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified December 2 10:34 EST 2021. Contains 349437 sequences. (Running on oeis4.)