login
A317804
Numbers of form 2^i*12^j, with i, j >= 0.
2
1, 2, 4, 8, 12, 16, 24, 32, 48, 64, 96, 128, 144, 192, 256, 288, 384, 512, 576, 768, 1024, 1152, 1536, 1728, 2048, 2304, 3072, 3456, 4096, 4608, 6144, 6912, 8192, 9216, 12288, 13824, 16384, 18432, 20736, 24576, 27648, 32768, 36864, 41472, 49152, 55296, 65536
OFFSET
1,2
PROG
(Python)
from heapq import heappush, heappop
def sequence():
pq = [1]
seen = set(pq)
while True:
value = heappop(pq)
yield value
seen.remove(value)
for x in 2 * value, 12 * value:
if x not in seen:
heappush(pq, x)
seen.add(x)
seq = sequence()
finalsequence_list = [next(seq) for i in range(100)] # Dario Ch, Sep 01 2018
KEYWORD
nonn,easy
AUTHOR
Dario Ch, Sep 01 2018
STATUS
approved