A349060 Number of integer partitions of n that are constant or whose part multiplicities, except possibly the first and last, are all even.
1, 1, 2, 3, 5, 7, 10, 13, 18, 22, 29, 35, 45, 53, 68, 77, 98, 112, 140, 157, 195, 218, 270, 298, 367, 404, 495, 542, 658, 721, 873, 949, 1145, 1245, 1494, 1615, 1934, 2091, 2492, 2688, 3188, 3436, 4068, 4369, 5155, 5537, 6511, 6976, 8186, 8763, 10251, 10962
Offset: 0
Keywords
Examples
The a(1) = 1 through a(7) = 13 partitions: (1) (2) (3) (4) (5) (6) (7) (11) (21) (22) (32) (33) (43) (111) (31) (41) (42) (52) (211) (221) (51) (61) (1111) (311) (222) (322) (2111) (411) (331) (11111) (2211) (511) (3111) (2221) (21111) (4111) (111111) (22111) (31111) (211111) (1111111)
Links
- John Tyler Rascoe, Table of n, a(n) for n = 0..300
Crossrefs
Programs
-
Mathematica
Table[Length[Select[IntegerPartitions[n], SameQ@@#||And@@EvenQ/@Take[Length/@Split[#],{2,-2}]&]],{n,0,30}]
-
PARI
A_x(N)={my(x='x+O('x^N), g= 1 + sum(i=1, N, (x^i/(1-x^i)) * (1 + sum(j=i+1, N-i, (x^j/((1-x^j))) / prod(k=1, j-i-1, 1-x^(2*(i+k))))))); Vec(g)} A_x(52) \\ John Tyler Rascoe, Mar 20 2024
Formula
G.f.: 1 + Sum_{i>0} (x^i/(1-x^i)) * (1 + Sum_{j>i} (x^j/(1-x^j)) / Product_{k=1..j-i-1} (1-x^(2*(i+k)))). - John Tyler Rascoe, Mar 20 2024
Comments