OFFSET
0,4
COMMENTS
A length-t rise in a permutation a() is a list of t+1 consecutive values a(i), ..., a(i+t) for which a(i) < a(i+1) < ... < a(i+t), and similarly for a descent. By "maximal" we mean it can't be increased in length on either side. For example, 3 4 5 2 1 6 7 8 has a rise of length 2 (3,4,5), followed by a descent of length 2 (5,2,1), followed by a rise of length 3 (1,6,7,8).
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..479
Therese Biedl, Ahmad Biniaz, Robert Cummings, Anna Lubiw, Florin Manea, Dirk Nowotka, Jeffrey Shallit, Rollercoasters and Caterpillars, arXiv:1801.08565 [cs.CG], 2018.
CROSSREFS
KEYWORD
nonn
AUTHOR
Jeffrey Shallit, Nov 16 2016
EXTENSIONS
a(0), a(16)-a(24) from Alois P. Heinz, Apr 24 2018
STATUS
approved