OFFSET
0,3
COMMENTS
We define the skew-alternating sum of a sequence (A, B, C, D, E, F, G, ...) to be A - B - C + D + E - F - G + ...
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..250 (first 51 terms from Lucas A. Brown)
Lucas A. Brown, A357640.py.
EXAMPLE
The a(0) = 1 through a(5) = 9 partitions:
() (11) (22) (33) (44) (55)
(1111) (2211) (2222) (3322)
(111111) (3221) (4321)
(3311) (4411)
(221111) (222211)
(11111111) (322111)
(331111)
(22111111)
(1111111111)
MATHEMATICA
skats[f_]:=Sum[f[[i]]*(-1)^(1+Ceiling[(i+1)/2]), {i, Length[f]}];
Table[Length[Select[IntegerPartitions[2n], skats[Reverse[#]]==0&]], {n, 0, 15}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Oct 11 2022
EXTENSIONS
a(31) onwards from Lucas A. Brown, Oct 19 2022
STATUS
approved