OFFSET
0,5
LINKS
Stefano Spezia, First 101 rows of the triangle, flattened
FORMULA
T(n,m) = ((n!)^2/(m!*(n - m)!))*binomial(n, m) - ((n!)^2/(m!*(n - m)!)) + 1.
From Stefano Spezia, Dec 18 2018: (Start)
T(n,m) = 1 + ((binomial(n, m) - 1)*(n!)^2)/(m!*(n - m)!).
EXAMPLE
Triangle begins:
1
1 1
1 5 1
1 37 37 1
1 289 721 289 1
1 2401 10801 10801 2401 1
1 21601 151201 273601 151201 21601 1
...
MATHEMATICA
T[n_, m_] := (n!^2/(m!(n - m)!))*Binomial[n, m] - (n!^2/(m!(n - m)!)) + 1; Flatten[Table[Table[T[n, m], {m, 0, n}], {n, 0, 10}]]
PROG
(GAP) Flat(List([0..10], n->List([0..n], m->1 + ((- 1 + Binomial(n, m))*(Factorial(n)^2)/(Factorial(m)*Factorial(-m+n))))
)); # Stefano Spezia, Dec 18 2018
(PARI)
T(n, m)= 1 + ((- 1 + binomial(n, m))*(n!)^2)/(m!*(-m+n)!);
tabl(nn) = for(n=0, nn, for(m=0, n, print1(T(n, m), ", ")); print);
tabl(10) \\ Stefano Spezia, Dec 18 2018
CROSSREFS
KEYWORD
AUTHOR
Roger L. Bagula, Mar 29 2010
EXTENSIONS
Edited by Stefano Spezia, Dec 18 2018
STATUS
approved