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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A066535 Number of ways of writing n as a sum of n squares. 2
1, 2, 4, 8, 24, 112, 544, 2368, 9328, 34802, 129064, 491768, 1938336, 7801744, 31553344, 127083328, 509145568, 2035437440, 8148505828, 32728127192, 131880275664, 532597541344, 2153312518240, 8710505815360, 35250721087168 (list; graph; refs; listen; history; internal format)
OFFSET

0,2

FORMULA

a(n) equals the coefficient of x^n in the n-th power of Jacobi theta_3(x) where theta_3(x) = 1 + 2*Sum_{n>=1} x^(n^2). [Paul D. Hanna (pauldhanna(AT)juno.com), Oct 25 2009]

EXAMPLE

There are a(3)=8 solutions (x,y,z) of 3=x^2+y^2+z^2: (1,1,1), (-1,-1, -1), 3 permutations of (1,1,-1) and 3 permutations of (1,-1,-1).

MATHEMATICA

Join[{1}, Table[SquaresR[n, n], {n, 24}]]

PROG

(PARI) {a(n)=local(THETA3=1+2*sum(k=1, sqrtint(n), x^(k^2))+x*O(x^n)); polcoeff(THETA3^n, n)} /* Paul D. Hanna (pauldhanna(AT)juno.com), Oct 25 2009 */

CROSSREFS

Cf. A004018, A005875, A000118, A066536.

Cf. A122141, A166952 [Paul D. Hanna (pauldhanna(AT)juno.com), Oct 25 2009]

Sequence in context: A065654 A002908 A004528 * A191700 A000643 A196265

Adjacent sequences:  A066532 A066533 A066534 * A066536 A066537 A066538

KEYWORD

nonn

AUTHOR

Peter Bertok (peter(AT)bertok.com), Jan 07 2002

EXTENSIONS

Edited by Dean Hickerson (dean.hickerson(AT)yahoo.com), Jan 12, 2002.

a(0) added by Paul D. Hanna (pauldhanna(AT)juno.com), Oct 25 2009

Edited by R. J. Mathar, Oct 29 2009

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 15 07:42 EST 2012. Contains 205717 sequences.