OFFSET
0,5
COMMENTS
Another variant of Pascal's triangle, cf. A007318.
LINKS
EXAMPLE
The triangle begins:
0: 1
1: 1 1
2: 1 2 1
3: 1 3 2 2
4: 1 4 3 5 2
5: 1 5 4 9 5 5
6: 1 6 5 14 9 14 5
7: 1 7 6 20 14 28 14 14
8: 1 8 7 27 20 48 28 42 14
9: 1 9 8 35 27 75 48 90 42 42
MATHEMATICA
T[_, 0] = 1; T[n_, 1] := n; T[n_, n_] := T[n-1, n-2]; T[n_, k_] /; 1<k<n := T[n, k] = T[n-1, k] + T[n-1, k-2]; Table[T[n, k], {n, 0, 11}, {k, 0, n}] // Flatten (* Jean-François Alcover, Feb 03 2018 *)
PROG
(Haskell)
a208101 n k = a208101_tabl !! n !! k
a208101_row n = a208101_tabl !! n
a208101_tabl = iterate
(\row -> zipWith (+) ([0, 1] ++ init row) (row ++ [0])) [1]
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Reinhard Zumkeller, Mar 04 2012
STATUS
approved