LINKS
Fausto A. C. Cariboni, <a href="/A179255/b179255_1.txt">Table of n, a(n) for n = 0..1000</a> (terms 0..241 from Joerg Arndt)
Fausto A. C. Cariboni, <a href="/A179255/b179255_1.txt">Table of n, a(n) for n = 0..1000</a> (terms 0..241 from Joerg Arndt)
reviewed
approved
proposed
reviewed
editing
proposed
Joerg Arndt, Fausto A. C. Cariboni, <a href="/A179255/b179255_1.txt">Table of n, a(n) for n = 0..1000</a> (terms 0..241</a> from Joerg Arndt)
approved
editing
proposed
approved
editing
proposed
.... has_nondecreasing_diffs = lambda x: min(differences(x, 2)) >= 0
.... allowed = lambda x: len(x) < 3 or has_nondecreasing_diffs(x)
.... return len([x for x in Partitions(n, max_slope=-1).filter(lambda x: if allowed(x[::-1])).cardinality(]) # _D. S. McNeil_, Jan 06 2011
# D. S. McNeil, Jan 06 2011
approved
editing
proposed
approved
editing
proposed