OFFSET
2,1
COMMENTS
T(n,2) = n! = A000142(n).
REFERENCES
R. P. Stanley, Enumerative Combinatorics, Cambridge, Vol. 2, 1999, Exercise 5.28, pp. 81, 124.
LINKS
M. Cho, D. Kim, S. Seo, and H. Shin, Colored Prufer codes for k-edge colored trees, The Electronic Journal of Combinatorics, 11 (2004), #N10.
FORMULA
T(n,k) = k(n-2)!*binomial((k-1)n, n-2).
EXAMPLE
T(3,3) = 18; indeed, a 3-vertex tree ABC can be labeled in 6 ways and for each labeled tree the 2 edges can be colored in 3 ways (a and b, a and c, b and c).
The antidiagonals start:
2;
3, 6;
4, 18, 24;
5, 36, 168, 120;
6, 60, 528, 2160, 720;
MAPLE
T := proc(n, k) options operator, arrow: k*factorial(n-2)*binomial((k-1)*n, n-2) end proc: seq(seq(T(i, j-i), i = 2 .. j-2), j = 4 .. 12); # the command T(n, k) yields T(n, k).
MATHEMATICA
T[n_, k_] := k (n - 2)! * Binomial[(k - 1) n, n - 2];
Table[T[n - k + 2, k], {n, 2, 10}, {k, n, 2, -1}] // Flatten (* Jean-François Alcover, Aug 26 2024 *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Emeric Deutsch, Oct 27 2014
STATUS
approved