OFFSET
1,5
LINKS
G. C. Greubel, Rows n = 1..50 of the triangle, flattened
FORMULA
T(n, k) = 2^(n-1)*(2*k - 1) - 2^(k-1)*(2*n - 1).
Sum_{k=1..n} T(n, k) = 2^(n-1)*(n^2 - 4*n + 2) + (2*n - 1). - G. C. Greubel, Jul 14 2021
EXAMPLE
Triangle begins as:
0;
-1, 0;
-1, 2, 0;
1, 10, 12, 0;
7, 30, 44, 40, 0;
21, 74, 116, 136, 112, 0;
MATHEMATICA
T[n_, k_]:= 2^(n-1)*(2*k-1) -2^(k-1)*(2*n-1);
Table[T[n, k], {n, 12}, {k, n}]//Flatten
PROG
(Magma) [2^(n-1)*(2*k-1) -2^(k-1)*(2*n-1): k in [1..n], n in [1..12]]; // G. C. Greubel, Jul 14 2021
(Sage) flatten([[2^(n-1)*(2*k-1) -2^(k-1)*(2*n-1) for k in (1..n)] for n in (1..12)]) # G. C. Greubel, Jul 14 2021
CROSSREFS
KEYWORD
sign,tabl
AUTHOR
Roger L. Bagula, Sep 23 2006
EXTENSIONS
Edited by N. J. A. Sloane, Oct 01 2006
STATUS
approved