login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A108563 Number of representations of n as sum of twice a square plus thrice a square. 0
1, 0, 2, 2, 0, 4, 0, 0, 2, 0, 0, 4, 2, 0, 4, 0, 0, 0, 2, 0, 4, 4, 0, 0, 0, 0, 0, 2, 0, 4, 4, 0, 2, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 0, 0, 2, 0, 6, 0, 0, 4, 0, 0, 4, 0, 0, 4, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 2, 0, 0, 6, 0, 8, 0, 0, 4, 0, 0, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 6, 4, 0, 4 (list; graph; refs; listen; history; internal format)
OFFSET

0,3

COMMENTS

Number of solutions to n = 2*a^2 + 3*b^2 in integers.

Ramanujan theta functions: f(q) := Prod_{k>=1} (1-(-q)^k) (see A121373), phi(q) := theta_3(q) := Sum_{k=-oo..oo} q^(k^2) (A000122), psi(q) := Sum_{k=0..oo} q^(k*(k+1)/2) (A10054), chi(q) := Prod_{k>=0} (1+q^(2k+1)) (A000700).

a(n) > 0 if and only if n is in A002480. a(n) < 2 if and only if n is in A002481. - Michael Somos Mar 01 2011

LINKS

A. Berkovich and H. Yesilyurt, Ramanujan's identities and representation of integers by certain binary and quaternary quadratic forms

M. Somos, Introduction to Ramanujan theta functions

Eric Weisstein's World of Mathematics, Ramanujan Theta Functions

FORMULA

G.f.: 1 + Sum_{k>0} x^k * (1 + x^(4*k)) * (1 + x^(6*k)) / (1 + x^(12*k)) - Sum_{k>0} kronecker( k, 3) * x^k * (1 - x^(2*k)) / (1 + x^(4*k)).

G.f.: Sum_{ i, j = - inf .. inf} x^(2*i^2 + 3*j^2). - Michael Somos Mar 01 2011

Expansion of phi(q^2) * phi(q^3) in powers of q where phi() is a Ramanujan theta function.

a(n) = A000377(n) - A115660(n).

EXAMPLE

1 + 2*x^2 + 2*x^3 + 4*x^5 + 2*x^8 + 4*x^11 + 2*x^12 + 4*x^14 + 2*x^18 + ...

a(0) = 1 since 0 = 2*0^2 + 3*0^2, a(5) = 4 since 5 = 2*1^2 + 3*1^2 = 2*(-1)^2 + 3*1^2 = 2*1^2 + 3*(-1)^2 = 2*(-1^2) + 3*(-1)^2.

PROG

(PARI) for(n=0, 120, print1(if(n<1, n==0, qfrep([2, 0; 0, 3], n)[n]*2), ", "))

(PARI) {a(n) = if( n<0, 0, polcoeff( 1 + 2 * x * Ser( qfrep([ 2, 0; 0, 3], n)), n))} /* Michael Somos Mar 01 2011 */

CROSSREFS

Cf. A000377, A0002480, A002481, A115660.

Sequence in context: A143396 A090657 A167001 * A138476 A131381 A112080

Adjacent sequences:  A108560 A108561 A108562 * A108564 A108565 A108566

KEYWORD

nonn

AUTHOR

Ralf Stephan, May 13 2007

EXTENSIONS

Edited by Charles R Greathouse IV (charles.greathouse(AT)case.edu), Oct 28 2009

Edited by N. J. A. Sloane, Mar 04 2011

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 17 04:58 EST 2012. Contains 205985 sequences.