OFFSET
1,1
EXAMPLE
Read a(1)=5 which produces, doing 5*2=10 ["1" & "0"], a(2)=1 & a(3)=0.
Now read a(2)=1 which produces [a(3) is already written] a(4)=2 because 1*2=2.
Now read a(3)=0 which produces [a(4) is already written] a(5)=0 because 0*2=0.
MATHEMATICA
Flatten[ NestList[ Function[x, Flatten[ IntegerDigits[2IntegerDigits[ x]]]], 5, 14]] (* Robert G. Wilson v, Feb 21 2005 *)
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Alexandre Wajnberg and Eric Angelini, Feb 19 2005
EXTENSIONS
More terms from Robert G. Wilson v, Feb 21 2005
STATUS
approved