The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A118416 Triangle read by rows: T(n,k) = (2*k-1)*2^(n-1), 0<k<=n. 16

%I #21 Aug 09 2015 15:32:15

%S 1,2,6,4,12,20,8,24,40,56,16,48,80,112,144,32,96,160,224,288,352,64,

%T 192,320,448,576,704,832,128,384,640,896,1152,1408,1664,1920,256,768,

%U 1280,1792,2304,2816,3328,3840,4352,512,1536,2560,3584,4608,5632,6656,7680

%N Triangle read by rows: T(n,k) = (2*k-1)*2^(n-1), 0<k<=n.

%C Row sums give A014477: sum(k=1..n, T(n,k) ) = A014477(n-1);

%C central terms give A118415; T(2*k-1,k) = A058962(k-1);

%C T(n,1) = A000079(n-1);

%C T(n,2) = A007283(n-1) for n>1;

%C T(n,3) = A020714(n-1) for n>2;

%C T(n,4) = A005009(n-1) for n>3;

%C T(n,5) = A005010(n-1) for n>4;

%C T(n,n-1) = A118417(n-1) for n>1;

%C T(n,n) = A014480(n-1) = A118413(n,n);

%C A001511(T(n,k)) = A002024(n,k);

%C A003602(T(n,k)) = A002260(n,k).

%H Reinhard Zumkeller, <a href="/A118416/b118416.txt">Rows n=1..100 of triangle, flattened</a>

%F T(n,k) = 2*T(n-1,k), 1 <= k < n; T(n,n) = A014480(n-1).

%e 1;

%e 2, 6;

%e 4, 12, 20;

%e 8, 24, 40, 56;

%e 16, 48, 80, 112, 144;

%e 32, 96, 160, 224, 288, 352;

%e 64, 192, 320, 448, 576, 704, 832;

%p A118416 := proc(n,k) 2^(n-1)*(2*k-1) ; end proc: # _R. J. Mathar_, Sep 04 2011

%t Flatten[Table[(2k-1)2^(n-1),{n,10},{k,n}]] (* _Harvey P. Dale_, Aug 26 2014 *)

%o (Haskell)

%o a118416 n k = a118416_tabl !! (n-1) !! (k-1)

%o a118416_row 1 = [1]

%o a118416_row n = (map (* 2) $ a118416_row (n-1)) ++ [a014480 (n-1)]

%o a118416_tabl = map a118416_row [1..]

%o -- _Reinhard Zumkeller_, Jan 22 2012

%Y Cf. A118413, A117303, A054582.

%K nonn,tabl

%O 1,2

%A _Reinhard Zumkeller_, Apr 27 2006

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 May 17 17:07 EDT 2024. Contains 372603 sequences. (Running on oeis4.)