Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A113406
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A113406 Half the number of integer solutions to x^2+4y^2=n. +0
3
1, 0, 0, 2, 2, 0, 0, 2, 1, 0, 0, 0, 2, 0, 0, 2, 2, 0, 0, 4, 0, 0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 2, 0, 0, 0, 2, 2, 0, 0, 4, 2, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 4, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 2, 4, 0, 0, 4, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 4, 1, 0, 0, 0, 4, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 6, 2, 0, 0, 4, 0 (list; graph; listen)
OFFSET

1,4

REFERENCES

B. C. Berndt, Ramanujan's Notebooks Part V, Springer-Verlag, see p. 373 Entry 32.

J. H. Conway and N. J. A. Sloane, "Sphere Packings, Lattices and Groups", Springer-Verlag, p. 120.

FORMULA

a(n) is multiplicative with a(2) = 0, a(2^e) = 2 if e>1, a(p^e) = e+1 if p == 1 (mod 4), a(p^e) = (1+(-1)^e)/2 if p == 3 (mod 4)

G.f.: (theta_3(q)theta_3(q^4)-1)/2.

a(4n+2)=a(4n+3)=0.

PROGRAM

(PARI) a(n)=if(n<1, 0, qfrep([1, 0; 0, 4], n)[n])

(PARI) {a(n)=if(n<1, 0, if(n%4==1, sumdiv(n, d, (-1)^(d\2)), if(n%4==0, 2*sumdiv(n, d, kronecker(-4, d)))))}

(PARI) {a(n)=local(A, p, e); if(n<1, 0, A=factor(n); prod(k=1, matsize(A)[1], if(p=A[k, 1], e=A[k, 2]; if(p==2, 2*(e>1), if(p%4==3, (1+(-1)^e)/2, e+1)))))}

CROSSREFS

A004531(n)=2 a(n) if n>0. A008441(n)=a(4n+1). A004018(n)=2*a(4n) if n>0.

Sequence in context: A125226 A059080 A062070 this_sequence A134015 A151851 A033461

Adjacent sequences: A113403 A113404 A113405 this_sequence A113407 A113408 A113409

KEYWORD

nonn,mult

AUTHOR

Michael Somos, Oct 28 2005

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 27 22:38 EST 2009. Contains 167602 sequences.


AT&T Labs Research