OFFSET
0,3
LINKS
G. C. Greubel, Rows n = 0..25 of the triangle, flattened
FORMULA
By columns, (1, 0, 0, 0, ...) in leftmost column; all others are (2, 0, 0, 0, ...).
By rows, row 1 = 1, others = (n-1) zeros followed by "2".
From G. C. Greubel, May 03 2021: (Start)
T(n, k) = 2*[k=n] - [n=0].
Sum_{k=0..n} T(n, k) = A040000(n). (End)
EXAMPLE
First few rows of the triangle are:
1;
0, 2;
0, 0, 2;
0, 0, 0, 2;
0, 0, 0, 0, 2;
...
MATHEMATICA
Table[2*Boole[k==n] -Boole[n==0], {n, 0, 12}, {k, 0, n}]//Flatten (* G. C. Greubel, May 03 2021 *)
PROG
(Sage) flatten([[2*bool(k==n) -bool(n==0) for k in (0..n)] for n in (0..12)]) # G. C. Greubel, May 03 2021
CROSSREFS
KEYWORD
AUTHOR
Gary W. Adamson, Jan 02 2008
EXTENSIONS
More terms added by G. C. Greubel, May 03 2021
STATUS
approved