OFFSET
0,1
EXAMPLE
The binary representation of 21 is 10101. This occurs in the concatenation of terms a(0) through a(20) like so: 1101011000111(10101)001. So a(21) = 1.
MATHEMATICA
f[l_List]:=Append[l, Boole[StringPosition[ToString[FromDigits[l]], ToString[FromDigits[IntegerDigits[Length[l], 2]]]]!={}]]; Nest[f, {1}, 125] [From Ray Chandler, Nov 09 2008]
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Leroy Quet, Jul 30 2008
EXTENSIONS
Extended by Ray Chandler, Nov 09 2008
STATUS
approved