|
|
A247647
|
|
Binary numbers that begin and end with 1 and do not contain two adjacent zeros.
|
|
7
|
|
|
1, 11, 101, 111, 1011, 1101, 1111, 10101, 10111, 11011, 11101, 11111, 101011, 101101, 101111, 110101, 110111, 111011, 111101, 111111, 1010101, 1010111, 1011011, 1011101, 1011111, 1101011, 1101101, 1101111, 1110101, 1110111, 1111011, 1111101, 1111111, 10101011, 10101101, 10101111, 10110101, 10110111, 10111011, 10111101
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
FORMULA
|
|
|
MATHEMATICA
|
With[{upto=500}, Map[FromDigits, Select[IntegerString[Range[1, upto, 2], 2], StringFreeQ[#, "00"]&]]] (* Paolo Xausa, Dec 06 2023 *)
|
|
PROG
|
(Python)
A247647_list = [int(bin(n)[2:]) for n in range(1, 10**5) if n % 2 and not '00' in bin(n)]
(Haskell)
|
|
CROSSREFS
|
See A247648 for the decimal equivalents.
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|