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!)
A340621 The number of partitions of n without repeated odd parts having more odd parts than even parts. 3

%I #22 May 29 2022 13:31:48

%S 0,1,0,1,1,1,2,1,4,2,6,3,9,6,12,10,17,17,22,26,30,40,40,57,55,82,74,

%T 112,103,153,140,203,193,270,262,351,357,458,478,589,641,760,846,971,

%U 1114,1244,1450,1582,1880,2018,2412,2558,3086,3247,3914,4102,4949

%N The number of partitions of n without repeated odd parts having more odd parts than even parts.

%H Seiichi Manyama, <a href="/A340621/b340621.txt">Table of n, a(n) for n = 0..10000</a>

%H B. Kim, E. Kim, and J. Lovejoy, <a href="https://doi.org/10.1016/j.ejc.2020.103159">Parity bias in partitions</a>, European J. Combin., 89 (2020), 103159, 19 pp.

%F G.f.: Sum_{n>=1} q^(n^2)*(1-q^(2*n))/Product_{k=1..n} (1-q^(2*k))^2.

%F a(n) ~ exp(Pi*sqrt(2*n/5)) / (2^(3/2) * 5^(3/4) * n). - _Vaclav Kotesovec_, Jan 14 2021

%e a(8) = 4 counts the partitions [7,1], [5,3], [5,2,1], and [4,3,1].

%p b:= proc(n, i, c) option remember; `if`(n=0,

%p `if`(c>0, 1, 0), `if`(i<1, 0, (t-> add(b(n-i*j, i-1, c+j*

%p `if`(t, 1, -1)), j=0..min(n/i, `if`(t, 1, n))))(i::odd)))

%p end:

%p a:= n-> b(n$2, 0):

%p seq(a(n), n=0..60); # _Alois P. Heinz_, Jan 13 2021

%t b[n_, i_, c_] := b[n, i, c] = If[n == 0,

%t If[c > 0, 1, 0], If[i < 1, 0, Function[t, Sum[b[n - i*j, i - 1, c + j*

%t If[t, 1, -1]], {j, 0, Min[n/i, If[t, 1, n]]}]][OddQ[i]]]];

%t a[n_] := b[n, n, 0];

%t Table[a[n], {n, 0, 60}] (* _Jean-François Alcover_, May 29 2022, after _Alois P. Heinz_ *)

%o (PARI) my(N=66, x='x+O('x^N)); concat(0, Vec(sum(k=1, sqrt(N), x^(k^2)*(1-x^(2*k))/prod(j=1, k, (1-x^(2*j))^2)))) \\ _Seiichi Manyama_, Jan 14 2021

%Y Cf. A006950, A143184, A340622, A340623.

%K nonn

%O 0,7

%A _Jeremy Lovejoy_, Jan 13 2021

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 August 13 15:31 EDT 2024. Contains 375142 sequences. (Running on oeis4.)