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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A216513 Number of nonnegative integer solutions to the equation x^2 + 6*y^2 = n. 0
1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 1, 2, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 1, 2, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 2, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,26

LINKS

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

MATHEMATICA

r[n_] := Reduce[x >= 0 && y >= 0 && x^2 + 6 y^2 == n, Integers];

a[n_] := Which[rn = r[n]; rn === False, 0, Head[rn] === And, 1, Head[rn] === Or, Length[rn], True, -1];

Table[a[n], {n, 0, 99}] (* Jean-François Alcover, Jun 24 2017 *)

CROSSREFS

Cf. A002481.

Sequence in context: A253786 A078595 A301989 * A291437 A302231 A228101

Adjacent sequences:  A216510 A216511 A216512 * A216514 A216515 A216516

KEYWORD

nonn

AUTHOR

V. Raman, Sep 08 2012

EXTENSIONS

Verified by N. J. A. Sloane, Sep 10 2012

a(96) and a(97) corrected by Jean-François Alcover, Jun 24 2017

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 October 25 05:19 EDT 2021. Contains 348239 sequences. (Running on oeis4.)