OFFSET
0,5
COMMENTS
r(n+k)-r(n-k) is triangle A196199(n,k).
FORMULA
Sum_{k=-n..n} T(n,k) = 2*n^2 = A001105(n).
EXAMPLE
Triangle starts:
0;
1, 0, 1;
2, 1, 2, 1, 2;
3, 2, 3, 2, 3, 2, 3;
4, 3, 4, 3, 4, 3, 4, 3, 4;
5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5;
MAPLE
r := n -> (n-(n mod 2))/2: T := (n, k) -> r(n+k) + r(n-k):
seq(print(seq(T(n, k), k=-n..n)), n=0..6);
PROG
(Sage)
for n in (0..6):
[(n+k)//2 + (n-k)//2 for k in (-n..n)]
CROSSREFS
KEYWORD
tabf,easy,nonn
AUTHOR
Peter Luschny, May 28 2015
STATUS
approved