OFFSET
1,1
EXAMPLE
a(3)=166 because the first 3 even numbers in binary are 10 100 110, and the concatenation 10100110 in base 10 = 166. a(4)=2664 because the first 4 even numbers in binary are 10 100 110 1000, and the concatenation 101001101000 in base 10 = 2664.
PROG
(Python)
def a(n):return int("".join(bin(2*(i+1))[2:] for i in range(n)), 2)
print([a(n) for n in range(1, 19)]) # Michael S. Branicky, Feb 20 2021
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Gil Broussard, Sep 01 2009
STATUS
approved