OFFSET
1,3
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..12288
MATHEMATICA
A078979list[i_]:=Nest[Join[#, Most[#], {Mod[Last[#], 3]+1}]&, Range[3], i]-1;
A078979list[6] (* Each iteration doubles the number of terms *) (* Paolo Xausa, Aug 31 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Dec 19 2002
STATUS
approved