OFFSET
1,2
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for the first 50 rows, flattened
FORMULA
T(1,k) = 2*(k-1) for k>=1; T(n,1)=0 for n>1; T(n,k)=2 otherwise.
EXAMPLE
Northwest corner:
1...2...4...6...8...10...12...14
0...2...2...2...2...2....2....2
0...2...2...2...2...2....2....2
0...2...2...2...2...2....2....2
0...2...2...2...2...2....2....2
MATHEMATICA
f[n_, k_] := 2; f[1, k_] := 2*(k - 1); f[n_, 1] := 0; f[1, 1] := 1;
TableForm[Table[f[n, k], {n, 1, 7}, {k, 1, 7}]] Table[f[n - k + 1, k], {n, 5}, {k, n, 1, -1}] // Flatten (* G. C. Greubel, Jul 21 2017 *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Clark Kimberling, Feb 05 2011
STATUS
approved