login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A369730 Number of solutions to +- 1^2 +- 2^2 +- 3^2 +- ... +- n^2 = 1. 2
0, 1, 0, 0, 0, 0, 2, 0, 0, 5, 2, 0, 0, 13, 43, 0, 0, 193, 274, 0, 0, 1552, 3245, 0, 0, 18628, 31048, 0, 0, 188536, 372710, 0, 0, 2376996, 4197425, 0, 0, 27465147, 53072709, 0, 0, 351329160, 650125358, 0, 0, 4398613111, 8429649875, 0, 0, 57629346805, 108986428106 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,7
LINKS
FORMULA
a(n) = [x^1] Product_{k=1..n} (x^(k^2) + 1/x^(k^2)).
MAPLE
b:= proc(n, i) option remember; `if`(n>i*(i+1)*(2*i+1)/6, 0,
`if`(i=0, 1, b(n+i^2, i-1)+b(abs(n-i^2), i-1)))
end:
a:=n-> b(1, n):
seq(a(n), n=0..50); # Alois P. Heinz, Jan 30 2024
MATHEMATICA
Table[Coefficient[Product[(x^(k^2) + 1/x^(k^2)), {k, 1, n}], x, 1], {n, 0, 48}]
CROSSREFS
Sequence in context: A290321 A145430 A143160 * A156387 A370065 A324040
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Jan 30 2024
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 23 15:54 EDT 2024. Contains 374552 sequences. (Running on oeis4.)