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!)
A300571 a(n) is the concatenation n in base 2, n-1 in base 2, ..., 0 in base 2. 2

%I #18 Feb 26 2023 10:58:08

%S 0,10,1010,111010,100111010,101100111010,110101100111010,

%T 111110101100111010,1000111110101100111010,10011000111110101100111010,

%U 101010011000111110101100111010,1011101010011000111110101100111010,11001011101010011000111110101100111010

%N a(n) is the concatenation n in base 2, n-1 in base 2, ..., 0 in base 2.

%H Seiichi Manyama, <a href="/A300571/b300571.txt">Table of n, a(n) for n = 0..155</a>

%F a(n) = A300570(n)*10. - _Chai Wah Wu_, Feb 26 2023

%o (Python)

%o from functools import reduce

%o def A300571(n): return int(bin(reduce(lambda i,j:(i<<j.bit_length())+j,range(n,0,-1),0))[2:])*10 # _Chai Wah Wu_, Feb 26 2023

%Y Cf. A007088, A058935, A300570.

%K nonn,base

%O 0,2

%A _Seiichi Manyama_, Mar 08 2018

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 25 03:15 EDT 2024. Contains 371964 sequences. (Running on oeis4.)