login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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)
print([a(n) for n in range(1, 19)]) # Michael S. Branicky, Feb 20 2021
CROSSREFS
Sequence in context: A270444 A093130 A043029 * A144485 A115489 A367939
KEYWORD
base,easy,nonn
AUTHOR
Gil Broussard, Sep 01 2009
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 21:09 EDT 2024. Contains 371798 sequences. (Running on oeis4.)