OFFSET
0,9
FORMULA
T(n, 0) = 0; T(n, k) = (k+1)^n - k^n - sum T(n, divisors of k)
EXAMPLE
T(3,2) = 12 because of the six permutations of (2,1,0) and three each of (2,1,1) and (2,2,1).
0;
0, 0;
0, 1, 0;
0, 0, 3, 0;
0, 0, 2, 7, 0;
0, 0, 4, 12, 15, 0;
0, 0, 4, 30, 50, 31, 0;
0, 0, 8, 42,160,180, 63, 0;
0, 0, 4, 84,304,750,602,127, 0;
0, 0, 12, 78,656,1890,3304,1932,255, 0;
MATHEMATICA
aux[n_, k_] := If[k == 0, 0, (k + 1)^n - k^n - Sum[aux[n, Divisors[k][[i]]], {i, 1, Length[Divisors[k]] - 1}]]
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Joshua Zucker, Nov 24 2003
STATUS
approved