|
|
A118586
|
|
Numbers whose binary expansion contains group of at least two 1's followed by a nonempty group of 0's.
|
|
1
|
|
|
6, 12, 14, 24, 28, 30, 48, 56, 60, 62, 96, 112, 120, 124, 126, 192, 224, 240, 248, 252, 254, 384, 448, 480, 496, 504, 508, 510, 768, 896, 960, 992, 1008, 1016, 1020, 1022, 1536, 1792, 1920, 1984, 2016, 2032, 2040, 2044, 2046, 3072, 3584, 3840, 3968, 4032
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
All terms are even.
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
4080_10 = 111111110000_2.
|
|
MATHEMATICA
|
Sort[Flatten[Table[Sum[2^k, {k, k1, k2}], {k1, 1, 10}, {k2, k1+1, 11}]]]
|
|
PROG
|
(Python)
from itertools import count, islice
def agen(): # generator of terms
for d in count(3):
for i in range(2, d):
yield int("1"*i + "0"*(d-i), 2)
|
|
CROSSREFS
|
|
|
KEYWORD
|
base,nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|