OFFSET
0,1
COMMENTS
Sums of pairs of adjacent terms of A007318. - N. J. A. Sloane, Jan 27 2019
FORMULA
T(n, k) = if (k<n, binomial(n, k) + binomial(n, k+1), binomial(n, k) + binomial(n+1, 0)). - Michel Marcus, Nov 25 2018
EXAMPLE
The 8th term is 6 because it is the sum of the 8th and 9th terms of Pascal's triangle read by row (3 + 3).
Triangle begins:
2;
2, 2;
3, 3, 2;
4, 6, 4, 2;
5, 10, 10, 5, 2;
...
MATHEMATICA
v = Flatten[Table[Binomial[n, k], {n, 0, 10}, {k, 0, n}]]; Most[v] + Rest[v] (* Amiram Eldar, Nov 25 2018 *)
PROG
(PARI) T(n, k) = if (k<n, binomial(n, k) + binomial(n, k+1), binomial(n, k) + binomial(n+1, 0));
tabl(nn) = for (n=0, nn, for(k=0, n, print1(T(n, k), ", ")); print); \\ Michel Marcus, Nov 25 2018
CROSSREFS
KEYWORD
AUTHOR
Kei Ryan, Nov 25 2018
STATUS
approved