OFFSET
1,2
COMMENTS
FORMULA
T(n,k) = n + 3*(k-1) - (1 - n Mod 2)*delta_{n,k}, 1<=k<=n; delta is the Kronecker symbol.
EXAMPLE
Triangle T(n,k) begins:
1;
2, 4;
3, 6, 9;
4, 7, 10, 12;
5, 8, 11, 14, 17;
6, 9, 12, 15, 18, 20;
7, 10, 13, 16, 19, 22, 25;
8, 11, 14, 17, 20, 23, 26, 28;
MATHEMATICA
T[n_, k_]:=n+3*(k-1)-(1-Mod[n, 2])*If[k==n, 1, 0];
Flatten[Table[Table[T[n, k], {k, 1, n}], {n, 1, 20}]]
(* From Vaclav Kotesovec, Sep 07 2012 *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Reinhard Zumkeller, Dec 20 2008
STATUS
approved