OFFSET
0,2
FORMULA
a(n)=sum{k=0..n, (1+(-1)^A010060(n-k))10^k/2}.
MATHEMATICA
With[{tm=Nest[Join[#, Mod[2#+1, 3]]&, {1}, 10]}, Table[FromDigits[Take[tm, n]], {n, 20}]] (* Harvey P. Dale, May 15 2016 *)
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Paul Barry, Jan 06 2005
STATUS
approved