OFFSET
1,3
FORMULA
a(n) = n - 1, 1 <= n <= 6, a(2^(m+2) + 2^m + k + 2) = 2^(m+2) + 2^(m+1) + 2^m + k, m >= 0, 0 <= k < (2^(m+2) + 2^m). - Yosu Yurramendi, Aug 08 2016
MATHEMATICA
Flatten[Insert[Select[Range[120], If[Length[IntegerDigits[ #, 2]] >= 3, Not[IntegerDigits[ #, 2][[1]] == 1 && IntegerDigits[ #, 2][[2]] == 1 && IntegerDigits[ #, 2][[3]] == 0 ]] &], {0, 1, 2, 3}, 1]] (* Stefan Steinerberger, Apr 15 2006 *)
Join[{0, 1, 2, 3}, Select[Range[4, 90], Take[IntegerDigits[#, 2], 3]!={1, 1, 0}&]] (* Harvey P. Dale, Feb 27 2012 *)
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
STATUS
approved