OFFSET
0,7
COMMENTS
EXAMPLE
a(3) = 1 since concatenation of 0,1,2 in binary yields "0110", and 3 = "11"[2] occurs once in this string.
PROG
(PARI) (nMax)->my(c=[], cnt(t, s, M)=M=2^#s-1; sum(i=0, #t-#s, vecextract(t, M<<i)==s)); for(n=0, nMax, print1(cnt(c, binary(n))", "); c=concat(c, binary(n)))
CROSSREFS
KEYWORD
nonn
AUTHOR
M. F. Hasler, Jan 03 2013
STATUS
approved