|
|
A164944
|
|
Decimal value of the concatenation of first n even numbers in binary.
|
|
0
|
|
|
2, 20, 166, 2664, 42634, 682156, 10914510, 349264336, 11176458770, 357646680660, 11444693781142, 366230200996568, 11719366431890202, 375019725820486492, 12000631226255567774, 768040398480356337568, 49154585502742805604386
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
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)
|
|
CROSSREFS
|
|
|
KEYWORD
|
base,easy,nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|