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!)
A339407 Number of partitions of n into an odd number of parts that are not multiples of 4. 3
0, 1, 1, 2, 1, 4, 4, 7, 6, 13, 13, 21, 21, 36, 38, 57, 59, 90, 98, 137, 148, 210, 231, 310, 341, 459, 511, 664, 737, 957, 1073, 1357, 1518, 1918, 2156, 2673, 3002, 3712, 4182, 5100, 5737, 6976, 7866, 9460, 10652, 12777, 14402, 17126, 19284, 22867, 25761, 30340, 34139, 40099 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
LINKS
Cristina Ballantine and Mircea Merca, 4-Regular partitions and the pod function, arXiv:2111.10702 [math.CO], 2021.
FORMULA
G.f.: (1/2) * (Product_{k>=1} (1 - x^(4*k)) / (1 - x^k) - Product_{k>=1} (1 + x^(4*k)) / (1 + x^k)).
a(n) = (A001935(n) - A261734(n)) / 2.
EXAMPLE
a(6) = 4 because we have [6], [3, 2, 1], [2, 2, 2] and [2, 1, 1, 1, 1].
MAPLE
b:= proc(n, i, t) option remember; `if`(n=0, t, `if`(i<1, 0,
b(n, i-1, t)+`if`(irem(i, 4)=0, 0, b(n-i, min(n-i, i), 1-t))))
end:
a:= n-> b(n$2, 0):
seq(a(n), n=0..55); # Alois P. Heinz, Dec 03 2020
MATHEMATICA
nmax = 53; CoefficientList[Series[(1/2) (Product[(1 - x^(4 k))/(1 - x^k), {k, 1, nmax}] - Product[(1 + x^(4 k))/(1 + x^k), {k, 1, nmax}]), {x, 0, nmax}], x]
CROSSREFS
Sequence in context: A289918 A127480 A141446 * A077965 A077967 A296188
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Dec 03 2020
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 May 28 19:55 EDT 2024. Contains 372919 sequences. (Running on oeis4.)