login
Irregular triangle read by rows: T(n,k) = r(n+k)+r(n-k) with r(n) = (n-(n mod 2))/2 for n>=0 and -n<=k<=n.
2

%I #9 May 28 2015 07:13:52

%S 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,

%T 4,5,6,5,6,5,6,5,6,5,6,5,6,5,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,8,7,8,7,

%U 8,7,8,7,8,7,8,7,8,7,8,7,8

%N Irregular triangle read by rows: T(n,k) = r(n+k)+r(n-k) with r(n) = (n-(n mod 2))/2 for n>=0 and -n<=k<=n.

%C r(n+k)-r(n-k) is triangle A196199(n,k).

%F Sum_{k=-n..n} T(n,k) = 2*n^2 = A001105(n).

%e Triangle starts:

%e 0;

%e 1, 0, 1;

%e 2, 1, 2, 1, 2;

%e 3, 2, 3, 2, 3, 2, 3;

%e 4, 3, 4, 3, 4, 3, 4, 3, 4;

%e 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5;

%p r := n -> (n-(n mod 2))/2: T := (n,k) -> r(n+k) + r(n-k):

%p seq(print(seq(T(n,k), k=-n..n)), n=0..6);

%o (Sage)

%o for n in (0..6):

%o [(n+k)//2 + (n-k)//2 for k in (-n..n)]

%Y Cf. A001105, A196199, A253580.

%K tabf,easy,nonn

%O 0,5

%A _Peter Luschny_, May 28 2015