A357709 Number of integer partitions of n whose length is twice their alternating sum.
1, 0, 0, 1, 0, 1, 1, 1, 2, 2, 4, 3, 6, 6, 9, 11, 13, 18, 21, 28, 32, 44, 49, 65, 76, 96, 114, 141, 170, 204, 250, 295, 361, 425, 516, 606, 734, 858, 1031, 1210, 1440, 1690, 2000, 2347, 2759, 3240, 3786, 4441, 5174, 6053, 7030, 8210, 9509, 11074, 12807, 14870
Offset: 0
Keywords
Examples
The a(1) = 0 through a(12) = 6 partitions: . . 21 . 32 3111 43 3221 54 3331 65 4332 4211 411111 4222 422111 4431 4321 521111 5322 5311 5421 6411 51111111
Crossrefs
Programs
-
Mathematica
ats[y_]:=Sum[(-1)^(i-1)*y[[i]],{i,Length[y]}]; Table[Length[Select[IntegerPartitions[n],Length[#]==2ats[#]&]],{n,0,30}]
Comments