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!)
A281704 Expansion of Sum_{i>=1} x^(i^2) / (1 - Sum_{j>=1} x^(j^2))^2. 2
1, 2, 3, 5, 9, 15, 23, 35, 55, 87, 134, 202, 305, 463, 700, 1049, 1565, 2334, 3478, 5168, 7654, 11314, 16705, 24632, 36260, 53295, 78237, 114728, 168059, 245916, 359483, 525021, 766144, 1117107, 1627587, 2369609, 3447549, 5012588, 7283577, 10577198, 15351519, 22268890, 32286666, 46788056, 67770831 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Total number of parts in all compositions (ordered partitions) of n into squares (A000290).
LINKS
FORMULA
G.f.: Sum_{i>=1} x^(i^2) / (1 - Sum_{j>=1} x^(j^2))^2.
a(n) = Sum_{k=0..n} k * A337165(n,k). - Alois P. Heinz, Feb 03 2021
EXAMPLE
a(6) = 15 because we have [4, 1, 1], [1, 4, 1], [1, 1, 4], [1, 1, 1, 1, 1, 1] and 3 + 3 + 3 + 6 = 15.
MAPLE
b:= proc(n) option remember; `if`(n=0, [1, 0], add(
(p-> p+[0, p[1]])(b(n-j^2)), j=1..isqrt(n)))
end:
a:= n-> b(n)[2]:
seq(a(n), n=1..45); # Alois P. Heinz, Aug 07 2019
MATHEMATICA
nmax = 45; Rest[CoefficientList[Series[Sum[x^i^2, {i, 1, nmax}]/(1 - Sum[x^j^2, {j, 1, nmax}])^2, {x, 0, nmax}], x]]
nmax = 45; Rest[CoefficientList[Series[(EllipticTheta[3, 0, x] - 1)/(2 (1 + (1 - EllipticTheta[3, 0, x])/2)^2), {x, 0, nmax}], x]]
CROSSREFS
Sequence in context: A306829 A067798 A205536 * A350607 A074693 A147322
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Jan 30 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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 20:08 EDT 2024. Contains 371963 sequences. (Running on oeis4.)