OFFSET
0,3
COMMENTS
1 -> 123, 2 -> 12, 3 -> 2, starting with 1 gives the sequence: 1, 123, 123122, 1231221231212, ... the n-th term has a(n) digits.
Ternary words of length n-1 with subwords (0,1), (1,1) and (1,2) not allowed. - Olivier Gérard, Aug 28 2012
LINKS
FORMULA
MATHEMATICA
LinearRecurrence[{2, 0, 1}, {0, 1, 3}, 30] (* Harvey P. Dale, Sep 04 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Philippe Deléham, Jul 22 2012
STATUS
approved