The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A339418 Number of compositions (ordered partitions) of n into an even number of squares. 3

%I #8 Dec 03 2020 18:21:29

%S 1,0,1,0,1,2,1,4,2,6,9,8,20,16,35,44,55,102,105,196,242,344,540,652,

%T 1084,1380,2037,2964,3912,6042,7976,11776,16634,22968,33963,46156,

%U 67457,94510,133180,192316,266514,385338,540138,767008,1094576,1534704,2200821,3094248

%N Number of compositions (ordered partitions) of n into an even number of squares.

%H <a href="/index/Com#comp">Index entries for sequences related to compositions</a>

%H <a href="/index/Su#ssq">Index entries for sequences related to sums of squares</a>

%F G.f.: 4 / (3 + 2 * theta_3(x) - theta_3(x)^2), where theta_3() is the Jacobi theta function.

%F a(n) = (A006456(n) + A317665(n)) / 2.

%F a(n) = Sum_{k=0..n} A006456(k) * A317665(n-k).

%e a(9) = 6 because we have [4, 1, 1, 1, 1, 1], [1, 4, 1, 1, 1, 1], [1, 1, 4, 1, 1, 1], [1, 1, 1, 4, 1, 1], [1, 1, 1, 1, 4, 1] and [1, 1, 1, 1, 1, 4].

%p b:= proc(n, t) option remember; local r, f, g;

%p if n=0 then t else r, f, g:=$0..2; while f<=n

%p do r, f, g:= r+b(n-f, 1-t), f+2*g-1, g+1 od; r fi

%p end:

%p a:= n-> b(n, 1):

%p seq(a(n), n=0..50); # _Alois P. Heinz_, Dec 03 2020

%t nmax = 47; CoefficientList[Series[4/(3 + 2 EllipticTheta[3, 0, x] - EllipticTheta[3, 0, x]^2), {x, 0, nmax}], x]

%Y Cf. A000290, A006456, A034008, A317665, A339364, A339416, A339419.

%K nonn

%O 0,6

%A _Ilya Gutkovskiy_, Dec 03 2020

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 May 19 21:06 EDT 2024. Contains 372703 sequences. (Running on oeis4.)