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!)
A300558 a(n) is the concatenation n written in base 2 n times, n-1 written in base 2 n-1 times, ..., 1 written in base 2 once. 3

%I #17 Mar 09 2018 06:06:18

%S 1,10101,11111110101,10010010010011111110101,

%T 10110110110110110010010010011111110101,

%U 11011011011011011010110110110110110010010010011111110101,11111111111111111111111011011011011011010110110110110110010010010011111110101

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

%H Seiichi Manyama, <a href="/A300558/b300558.txt">Table of n, a(n) for n = 1..21</a>

%o (Ruby)

%o def A300558(n)

%o a = '1'

%o [1] + (2..n).map{|i| a = (i.to_s(2) * i + a.to_s).to_i}

%o end

%o p A300558(10)

%Y Cf. A007088, A300517, A300557.

%K nonn,base

%O 1,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 24 17:29 EDT 2024. Contains 371962 sequences. (Running on oeis4.)