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!)
A361074 Sum of the j-th number with binary weight n-j+1 over all j in [n]. 3

%I #21 Mar 07 2023 18:05:15

%S 0,1,5,16,40,92,193,401,812,1632,3261,6526,13030,26049,52013,103974,

%T 207797,415496,830636,1661086,3321498,6642591,13283920,26567121,

%U 53131653,106261922,212518857,425034976,850060303,1700115399,3400211408,6800412866,13600787296

%N Sum of the j-th number with binary weight n-j+1 over all j in [n].

%H Alois P. Heinz, <a href="/A361074/b361074.txt">Table of n, a(n) for n = 0..1000</a>

%F a(n) = Sum_{j=1..n} A066884(j,n-j+1) = Sum_{j=1..n} A067576(j,n-j+1).

%F Conjecture: a(n) ~ 19 * 2^n / 6. - _Vaclav Kotesovec_, Mar 04 2023

%e a(0) = 0 (empty sum).

%e a(1) = 1 = 1_2.

%e a(2) = 5 = 2 + 3 = 10_2 + 11_2.

%e a(3) = 16 = 4 + 5 + 7 = 100_2 + 101_2 + 111_2.

%e a(4) = 40 = 8 + 6 + 11 + 15 = 1000_2 + 110_2 + 1011_2 + 1111_2.

%p b:= proc(i, j) option remember; uses Bits: local c, l, k;

%p if j=1 then 2^i-1

%p else c, l:= 0, [Split(b(i, j-1))[], 0];

%p for k while l[k]<>1 or l[k+1]<>0 do c:=c+l[k] od;

%p Join([1$c, 0$k-c, 1, l[k+2..-1][]])

%p fi

%p end:

%p a:= n-> add(b(j, n-j+1), j=1..n):

%p seq(a(n), n=0..32);

%Y Antidiagonal sums of A066884 or of A067576.

%Y Cf. A000120, A057168.

%K nonn,base

%O 0,3

%A _Alois P. Heinz_, Mar 01 2023

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 July 7 20:24 EDT 2024. Contains 374115 sequences. (Running on oeis4.)