OFFSET
0,2
COMMENTS
Can construct sequence by starting with 1 and mapping 0->012, 1->120, 2->201 (e.g. 1, 120, 120201012, ...) and looking at n-th digit of a term with sufficient digits.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..2000
MATHEMATICA
Mod[ Nest[ Join[ #, # + 1, # + 2] &, {1}, 5], 3] (* Robert G. Wilson v, Jul 27 2014 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Philippe Deléham, Feb 04 2004
STATUS
approved