OFFSET
0,8
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
FORMULA
EXAMPLE
a(30) = #{0, 7, 14, 15, 28, 30} = #{0, 111, 1110, 1111, 11100, 11110} = 6.
MATHEMATICA
ioQ[n_]:=Module[{idn2=Split[IntegerDigits[n, 2]]}, FreeQ[idn2, {1}]&&FreeQ[ idn2, {1, 1}]]; Accumulate[Table[If[ioQ[n], 1, 0], {n, 0, 90}]] (* Harvey P. Dale, May 15 2016 *)
CROSSREFS
KEYWORD
AUTHOR
Reinhard Zumkeller, Feb 07 2010
STATUS
approved