OFFSET
1,1
COMMENTS
LINKS
Rémy Sigrist, Rows n = 1..9 of triangle, flattened
D. Kremer, Permutations with forbidden subsequences and a generalized Schröder number, Discrete Math. 218 (2000) 121-130.
Julian West, Generating trees and the Catalan and Schröder numbers, Discrete Math. 146 (1995), 247-262.
Julian West, Generating trees and forbidden subsequences, Discrete Math., 157 (1996), 363-374.
EXAMPLE
The triangle starts with a root node (at level 1) labeled 2; thereafter every node labeled k has k children at the next level whose labels are 3, 4, ..., k, k+1, k+1.
Rows 1, 2, 3, 4, and part of 5 are:
2,
3,3,
3,4,4,3,4,4,
3,4,4,3,4,5,5,3,4,5,5,3,4,4,3,4,5,5,3,4,5,5,
3,4,4,3,4,5,5,3,4,5,5,3,4,4,3,4,5,5,3,4,5,6,6,3,4,5,6,6,...
...
MAPLE
with(ListTools);
psi:=proc(S)
Flatten(subs( {2=[3, 3], 3=[3, 4, 4], 4=[3, 4, 5, 5], 5=[3, 4, 5, 6, 6], 6=[3, 4, 5, 6, 7, 7], 7=[3, 4, 5, 6, 7, 8, 8]}, S)); # This will only work for the first 7 generations. For further generations, extend the "subs" command
end;
S:=[2];
for n from 1 to 6 do S:=psi(S): od:
S;
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
N. J. A. Sloane, Nov 29 2017
STATUS
approved