OFFSET
1,2
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for the first 50 rows, flattened
FORMULA
T(n,k) = C(k,2)*C(n,2)*(3*k^2+4*k*n-k-4*n+16)/18, k>=1, n>=1.
EXAMPLE
Northwest corner:
1, 5, 16, 40, 85
3, 17, 56, 140, 295
6, 38, 128, 320, 670
10, 70, 240, 600, 1250
MATHEMATICA
(* This program generates A185878 first and then generates A185880 as the accumulation array of A185878. *)
f[n_, k_]:=(k*n/6)(7-3k+2k^2-3n+3kn);
TableForm[Table[f[n, k], {n, 1, 10}, {k, 1, 15}]] (* A185878 *)
Table[f[n-k+1, k], {n, 14}, {k, n, 1, -1}]//Flatten
s[n_, k_]:=Sum[f[i, j], {i, 1, n}, {j, 1, k}];
FullSimplify[s[n, k]]
TableForm[Table[s[n, k], {n, 1, 10}, {k, 1, 15}]] (* A185880 *)
f[n_, k_] := (1/72)*k*(1 + k)*n*(1 + n)*(16 - k + 3 *k^2 + 4 *(-1 + k) *n); Table[f[n - k + 1, k], {n, 10}, {k, n, 1, -1}] // Flatten (* G. C. Greubel, Jul 21 2017 *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Clark Kimberling, Feb 05 2011
STATUS
approved