OFFSET
1,2
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for the first 50 rows, flattened
FORMULA
T(n,k) = k*(k+1)*n*(n+1)*(k*n-n+k+5)/12.
EXAMPLE
Northwest corner:
1....4....10...20...35
2....9....24...50...90
3....15...42...90...165
4....22...64...140..260
5....30...90...200..375
MATHEMATICA
f[n_, k_]:=k+n*k(k-1)/2;
TableForm[Table[f[n, k], {n, 1, 10}, {k, 1, 15}]] (* Array A086270 *)
Table[f[n-k+1, k], {n, 14}, {k, n, 1, -1}]//Flatten (* A086270 *)
s[n_, k_]:=Sum[f[i, j], {i, 1, n}, {j, 1, k}]; (* acc. arr. of {f(n, k)} *)
Factor[s[n, k]] (* formula for A185732 *)
TableForm[Table[s[n, k], {n, 1, 10}, {k, 1, 15}]] (* acc. arr. A185732 *)
Table[s[n-k+1, k], {n, 14}, {k, n, 1, -1}]//Flatten (* A185732 *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Clark Kimberling, Feb 01 2011
STATUS
approved