login
A153034
Numbers with adjacent 0's and no adjacent 1's in binary expansion.
0
4, 8, 9, 16, 17, 18, 20, 32, 33, 34, 36, 37, 40, 41, 64, 65, 66, 68, 69, 72, 73, 74, 80, 81, 82, 84, 128, 129, 130, 132, 133, 136, 137, 138, 144, 145, 146, 148, 149, 160, 161, 162, 164, 165, 168, 169, 256, 257, 258, 260, 261, 264, 265, 266, 272, 273, 274, 276, 277
OFFSET
1,1
EXAMPLE
a(1) = 4 because bin(4) = 100.
MATHEMATICA
fQ[n_] := Block[{st = Union@Split@IntegerDigits[n, 2]}, MemberQ[st, {0, __}] && !MemberQ[st, {1, __}]]; Select[Range@ 288, fQ@# &] (* Robert G. Wilson v, Dec 21 2008 *)
CROSSREFS
Cf. A153033, A000975. - Robert G. Wilson v, Dec 21 2008
Sequence in context: A072103 A004756 A237882 * A106840 A242663 A160053
KEYWORD
base,easy,nonn
AUTHOR
Gil Broussard, Dec 17 2008
EXTENSIONS
Extended by Robert G. Wilson v, Dec 21 2008
STATUS
approved