A357487 Number of integer partitions of n with the same length as reverse-alternating sum.
1, 1, 0, 0, 0, 1, 0, 2, 0, 4, 0, 5, 0, 9, 0, 13, 0, 23, 0, 34, 0, 54, 0, 78, 0, 120, 0, 170, 0, 252, 0, 358, 0, 517, 0, 725, 0, 1030, 0, 1427, 0, 1992, 0, 2733, 0, 3759, 0, 5106, 0, 6946, 0, 9345, 0, 12577, 0, 16788, 0, 22384, 0, 29641, 0
Offset: 0
Keywords
Examples
The a(1) = 1 through a(13) = 9 partitions: 1 . . . 311 . 322 . 333 . 443 . 553 421 432 542 652 531 641 751 51111 52211 52222 62111 53311 62221 63211 73111 7111111
Crossrefs
Programs
-
Mathematica
ats[y_]:=Sum[(-1)^(i-1)*y[[i]],{i,Length[y]}]; Table[Length[Select[IntegerPartitions[n],Length[#]==ats[Reverse[#]]&]],{n,0,30}]
Comments