login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A127159 Triangle T(n,k) with T(n,k) = A061554(n,k) + A107430(n,k). 1

%I #10 Sep 08 2022 08:45:29

%S 2,2,2,3,2,3,4,4,4,4,7,5,8,5,7,11,11,10,10,11,11,21,16,21,12,21,16,21,

%T 36,36,28,28,28,28,36,36,71,57,64,36,56,36,64,57,71,127,127,93,93,72,

%U 72,93,93,127,127,253,211,220,130,165,90,165,130,220,211,253

%N Triangle T(n,k) with T(n,k) = A061554(n,k) + A107430(n,k).

%H G. C. Greubel, <a href="/A127159/b127159.txt">Rows n = 0..100 of triangle, flattened</a>

%F Sum_{k=0..n} T(n,k) = 2^(n+1).

%F T(n, k) = binomial(n, floor((n+1 - (-1)^(n-k)*(k+1))/2)) + binomial(n, floor(k/2)). - _G. C. Greubel_, Jan 31 2020

%e Triangle begins:

%e 2;

%e 2, 2;

%e 3, 2, 3;

%e 4, 4, 4, 4;

%e 7, 5, 8, 5, 7;

%e 11, 11, 10, 10, 11, 11;

%e 21, 16, 21, 12, 21, 16, 21;

%e 36, 36, 28, 28, 28, 28, 36, 36;

%e 71, 57, 64, 36, 56, 36, 64, 57, 71; ...

%p seq(seq( binomial(n, floor((n+1-(-1)^(n-k)*(k+1))/2)) +binomial(n, floor(k/2)), k=0..n), n=0..12); # _G. C. Greubel_, Jan 31 2020

%t T[n_, k_]= Binomial[n, Floor[(n+1 -(-1)^(n-k)*(k+1))/2]] + Binomial[n, Floor[k/2]]; Table[T[n, k], {n,0,12}, {k,0,n}]//Flatten (* _G. C. Greubel_, Jan 31 2020 *)

%o (PARI) T(n,k) = binomial(n, (n+1 -(-1)^(n-k)*(k+1))\2 ) + binomial(n, k\2); \\ _G. C. Greubel_, Jan 31 2020

%o (Magma) [Binomial(n, Floor((n+1 -(-1)^(n-k)*(k+1))/2)) + Binomial(n, Floor(k/2)): k in [0..n], n in [0..12]]; // _G. C. Greubel_, Jan 31 2020

%o (Sage) [[binomial(n, floor((n+1 -(-1)^(n-k)*(k+1))/2)) + binomial(n, floor(k/2)) for k in (0..n)] for n in (0..12)] # _G. C. Greubel_, Jan 31 2020

%o (GAP) Flat(List([0..12], n-> List([0..n], k-> Binomial(n, Int((n+1 -(-1)^(n-k)*(k+1))/2)) + Binomial(n, Int(k/2)) ))); # _G. C. Greubel_, Jan 31 2020

%Y Cf. A061554, A107430.

%K nonn,tabl

%O 0,1

%A _Philippe Deléham_, Mar 25 2007

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 28 18:04 EDT 2024. Contains 371254 sequences. (Running on oeis4.)