OFFSET
0,3
COMMENTS
The reverse-alternating sum of a partition (y_1,...,y_k) is Sum_i (-1)^(k-i) y_i.
Also the number of reversed integer partitions of n with alternating sum >= 0.
A formula for the reverse-alternating sum of a partition is: (-1)^(k-1) times the number of odd parts in the conjugate partition, where k is the number of parts. So a(n) is the number of integer partitions of n whose conjugate parts are all even or whose length is odd. By conjugation, this is also the number of integer partitions of n whose parts are all even or whose greatest part is odd.
All integer partitions have alternating sum >= 0, so the non-reversed version is A000041.
EXAMPLE
The a(1) = 1 through a(8) = 15 partitions:
(1) (2) (3) (4) (5) (6) (7) (8)
(11) (111) (22) (221) (33) (322) (44)
(211) (311) (222) (331) (332)
(1111) (11111) (321) (421) (422)
(411) (511) (431)
(2211) (22111) (521)
(21111) (31111) (611)
(111111) (1111111) (2222)
(3311)
(22211)
(32111)
(41111)
(221111)
(2111111)
(11111111)
MATHEMATICA
sats[y_]:=Sum[(-1)^(i-Length[y])*y[[i]], {i, Length[y]}];
Table[Length[Select[IntegerPartitions[n], sats[#]>=0&]], {n, 0, 30}]
CROSSREFS
The non-reversed version is A000041.
The odd bisection is A160786.
The complement is counted by A344608.
The even bisection is A344611.
A103919 counts partitions by sum and alternating sum.
A344610 counts partitions by sum and positive reverse-alternating sum.
A344612 counts partitions by sum and reverse-alternating sum.
A344618 gives reverse-alternating sums of standard compositions.
KEYWORD
nonn
AUTHOR
Gus Wiseman, May 29 2021
STATUS
approved