OFFSET
1,3
COMMENTS
FORMULA
Main diagonal of array defined by: T(n,1)=1, T(1,k)=1, n >= k: Sum_{i=1..k-1} T(n-i,k), n < k: Sum_{i=1..n-1} T(k-i,n).
MATHEMATICA
Clear[nn, t, n, k]; nn = 25; t[n_, 1] = 1; t[1, k_] = 1; t[n_, k_] := t[n, k] = If[n >= k, Sum[t[n - i, k], {i, 1, k - 1}], Sum[t[k - i, n], {i, 1, n - 1}]]; Table[t[n, n], {n, 1, nn}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Mats Granvik, May 12 2012
STATUS
approved