OFFSET
1,2
LINKS
G. C. Greubel, Rows n = 1..50 of the triangle, flattened
FORMULA
Sum_{k=1..n} T(n, k) = A064808(n).
T(n, k) = (3*k -5 +3*[k=1])*(n-k+1). - G. C. Greubel, Oct 19 2021
EXAMPLE
MATHEMATICA
T[n_, k_]:= (3*k -5 +3*Boole[k==1])*(n-k+1);
Table[T[n, k], {n, 12}, {k, n}]//Flatten (* G. C. Greubel, Oct 19 2021 *)
PROG
(Magma)
A144693:= func< n, k | k eq 1 select n else (3*k-5)*(n-k+1) >;
[A144693(n, k): k in [1..n], n in [1..12]]; // G. C. Greubel, Oct 19 2021
(Sage)
def A144693(n, k): return (3*k -5 +3*bool(k==1))*(n-k+1)
flatten([[A144693(n, k) for k in (1..n)] for n in (1..12)]) # G. C. Greubel, Oct 19 2021
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Gary W. Adamson, Sep 19 2008
STATUS
approved