login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Triangle T(n, k) = (k+1)*(n-k+1), read by rows.
1

%I #14 Mar 31 2021 01:29:19

%S 2,4,3,6,6,4,8,9,8,5,10,12,12,10,6,12,15,16,15,12,7,14,18,20,20,18,14,

%T 8,16,21,24,25,24,21,16,9,18,24,28,30,30,28,24,18,10,20,27,32,35,36,

%U 35,32,27,20,11,22,30,36,40,42,42,40,36,30,22,12,24,33,40,45,48,49,48,45,40,33,24,13

%N Triangle T(n, k) = (k+1)*(n-k+1), read by rows.

%H G. C. Greubel, <a href="/A141429/b141429.txt">Rows n = 1..50 of the triangle, flattened</a>

%F T(n, k) = (k+1)*(n-k+1).

%F T(n, k) = A158823(n+2, k+2).

%F Sum_{k=1..n} T(n, k) = A005581(n+1).

%e Triangle begins as:

%e 2;

%e 4, 3;

%e 6, 6, 4;

%e 8, 9, 8, 5;

%e 10, 12, 12, 10, 6;

%e 12, 15, 16, 15, 12, 7;

%e 14, 18, 20, 20, 18, 14, 8;

%e 16, 21, 24, 25, 24, 21, 16, 9;

%e 18, 24, 28, 30, 30, 28, 24, 18, 10;

%e 20, 27, 32, 35, 36, 35, 32, 27, 20, 11;

%p A141429 := proc(n,k)

%p (k+1)*(n-k+1) ;

%p end proc:

%p seq(seq(A141429(n,m),m=1..n),n=1..14) ; # _R. J. Mathar_, Nov 10 2011

%t Table[(k+1)*(n-k+1), {n,15}, {k,n}]//Flatten

%o (Magma) [(k+1)*(n-k+1): k in [1..n], n in [1..15]]; // _G. C. Greubel_, Mar 30 2021

%o (Sage) flatten([[(k+1)*(n-k+1) for k in (1..n)] for n in (1..15)]) # _G. C. Greubel_, Mar 30 2021

%Y Cf. A003991, A004247, A005581, A144329, A158823.

%K nonn,easy,tabl

%O 1,1

%A _Roger L. Bagula_ and _Gary W. Adamson_, Aug 06 2008

%E Edited by _G. C. Greubel_, Mar 30 2021