OFFSET
0,2
COMMENTS
Add 1 to all but the top entry in the left column of the Pascal matrix. - R. J. Mathar, Jan 18 2013
LINKS
G. C. Greubel, Rows n = 0..100 of the triangle, flattened
FORMULA
From G. C. Greubel, Feb 16 2021: (Start)
T(n,k) = binomial(n, k) with T(n, 0) = 2 for n>0.
Sum_{k=0..n} T(n, k) = A083318(n) = 2^n + 1^n - 0^n. (End)
EXAMPLE
First few rows of the triangle are:
1;
2, 1;
2, 2, 1;
2, 3, 3, 1;
2, 4, 6, 4, 1;
2, 5, 10, 10, 5, 1;
...
MATHEMATICA
T[n_, k_]:= If[k==n, 1, If[k==0, 2, Binomial[n, k]]];
Table[T[n, k], {n, 0, 12}, {k, 0, n}]//Flatten (* G. C. Greubel, Feb 16 2021 *)
PROG
(Sage)
def A132749(n, k): return 1 if k==n else 2 if k==0 else binomial(n, k)
flatten([[A132749(n, k) for k in [0..n]] for n in [0..12]]) # G. C. Greubel, Feb 16 2021
(Magma)
A132749:= func< n, k | k eq n select 1 else k eq 0 select 2 else Binomial(n, k) >;
[A132749(n, k): k in [0..n], n in [0..12]]; // G. C. Greubel, Feb 16 2021
CROSSREFS
KEYWORD
AUTHOR
Gary W. Adamson, Aug 28 2007
EXTENSIONS
More terms added by G. C. Greubel, Feb 16 2021
STATUS
approved