OFFSET
0,3
LINKS
Kevin Ryde, PARI/GP Code
MATHEMATICA
s[1] = {2, 3}; s[2] = {3, 4}; s[3] = {}; s[4] = {1, 3};
t[a_] := Join[a, Flatten[s /@ a]];
p[0] = {1}; p[1] = t[{1}]; p[n_] := t[p[n - 1]];
Flatten[Table[p[n], {n, 0, 6}]]
PROG
(PARI) \\ See links.
CROSSREFS
KEYWORD
nonn
AUTHOR
Roger L. Bagula, Apr 25 2005
EXTENSIONS
Definition of s[4] corrected at the suggestion of Kevin Ryde by Georg Fischer, Mar 20 2024
Definition rewritten at the suggestion of Kevin Ryde - N. J. A. Sloane, Mar 23 2024
STATUS
approved