OFFSET
0,3
COMMENTS
To avoid 231'1 means not to have four consecutive letters such that if the third letter is removed, then in the obtained 3 letter word the smallest letter is the last one, and the largest letter is the second one.
LINKS
S. Kitaev, Introduction to partially ordered patterns, Discrete Applied Mathematics 155 (2007), 929-944.
MATHEMATICA
ok[{x_, y_, _, z_}] := Not[x>z && y>z && y>x]; a[n_] := Length@ Select[ Permutations@ Range@ n, AllTrue[ Partition[#, 4, 1], ok] &]; a /@ Range[0, 9]
CROSSREFS
KEYWORD
nonn
AUTHOR
Signy Olafsdottir (signy06(AT)ru.is), May 09 2010
EXTENSIONS
a(0), a(10)-a(14) from Alois P. Heinz, Mar 10 2020
a(15)-a(16) from Giovanni Resta, Mar 11 2020
a(17)-a(24) from Max Alekseyev, Oct 02 2024
STATUS
approved