OFFSET
0,3
COMMENTS
Sequence A118274 is the string of terms of this sequence written in binary and concatenated.
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 0..10000
EXAMPLE
The string of concatenated binary representations of a(0) through a(7) is
11101100111011. Now a(7)= 3, which is 11 in binary. '11' occurs 6 times in the string (with, in this case, some binary digits in the string being used more than once). (The six '11's occur at {with position 1 on the left} positions 1, 2, 5, 9, 10 and 13.) So a(8) = 6. (And '1,1,0' is appended to the end of sequence A118274.)
MAPLE
with(StringTools): a[0]:=1: str:="1": pstr:="1":for n from 1 to 70 do a[n] := nops({SearchAll(pstr, str)}): pstr := convert(convert(a[n], binary), string): str := cat(str, pstr): printf("%d, ", a[n-1]):od: # Nathaniel Johnston, Apr 20 2011
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Leroy Quet, Apr 21 2006
EXTENSIONS
a(14) - a(69) from Nathaniel Johnston, Apr 20 2011
STATUS
approved