login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Triangle read by rows: T(n,k) = 2*binomial(n,k) - (-1)^(n-k) (0 <= k <= n).
1

%I #9 Nov 09 2019 01:11:42

%S 1,3,1,1,5,1,3,5,7,1,1,9,11,9,1,3,9,21,19,11,1,1,13,29,41,29,13,1,3,

%T 13,43,69,71,41,15,1,1,17,55,113,139,113,55,17,1,3,17,73,167,253,251,

%U 169,71,19,1,1,21,89,241,419,505,419,241,89,21,1,3,21,111,329

%N Triangle read by rows: T(n,k) = 2*binomial(n,k) - (-1)^(n-k) (0 <= k <= n).

%C Row sums = A051049 starting (1, 4, 7, 16, 31, 64, ...).

%F G.f. = G(t,z) = (1 + 3z - tz - 2tz^2)/((1+z)(1-tz)(1-z-tz)). - _Emeric Deutsch_, Jun 21 2007

%e First few rows of the triangle are

%e 1;

%e 3, 1;

%e 1, 5, 1;

%e 3, 5, 7, 1;

%e 1, 9, 11, 9, 1;

%e 3, 9, 21, 19, 11, 1;

%e 1, 13, 29, 41, 29, 13, 1;

%e ...

%p T := proc (n, k) if k <= n then 2*binomial(n, k)-(-1)^(n-k) else 0 end if end proc: for n from 0 to 11 do seq(T(n, k), k = 0 .. n) end do; # yields sequence in triangular form - _Emeric Deutsch_, Jun 21 2007

%Y Cf. A000012, A051049.

%K nonn,tabl

%O 0,2

%A _Gary W. Adamson_, Jun 14 2007

%E More terms from _Emeric Deutsch_, Jun 21 2007

%E Sequence corrected by _N. J. A. Sloane_, Sep 30 2007