OFFSET
0,3
COMMENTS
Generalization of Adams-Watters's criterion for complete partitions, that each part is no more than 1 more than the sum of all smaller parts.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..10000
FORMULA
a(n) ~ exp(Pi*sqrt(2*n/3)) / (4*sqrt(3)*n). - Vaclav Kotesovec, May 24 2018
EXAMPLE
For n = 8, a(8) = 20 counts all partitions of 8 except (8) and (7,1).
MATHEMATICA
Table[Count[IntegerPartitions@n, w_ /; And[Last@w <= 4, NoneTrue[ w - Rest@ PadRight[4 + Reverse@Accumulate@Reverse@w, Length@w + 1, Last@w], # > 0 &]]], {n, 50}] (* George Beck, May 17 2017, Version 11.1.1, adapted from A286929 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Brian Hopkins, May 16 2017
STATUS
approved