OFFSET
0,5
COMMENTS
Reverse of triangle A104878.
LINKS
G. C. Greubel, Rows n = 0..50 of the triangle, flattened
FORMULA
EXAMPLE
Triangle begins as:
1;
1, 1;
1, 2, 1;
1, 3, 3, 1;
1, 4, 7, 4, 1;
1, 5, 13, 15, 5, 1;
MATHEMATICA
T[n_, k_]:= If[k==n, 1, Sum[(n-k)^(k-j), {j, 0, k}]];
Table[T[n, k], {n, 0, 12}, {k, 0, n}]//Flatten (* G. C. Greubel, Jun 15 2021 *)
PROG
(Magma) [(&+[ (n-k)^(k-j): j in [0..k]]): k in [0..n], n in [0..12]]; // G. C. Greubel, Jun 15 2021
(Sage) flatten([[sum((n-k)^(k-j) for j in (0..k)) for k in (0..n)] for n in (0..12)]) # G. C. Greubel, Jun 15 2021
CROSSREFS
KEYWORD
AUTHOR
Paul Barry, Mar 28 2005
STATUS
approved