0

I want to calculate sum of even binomial coefficients in a efficient way. i.e $^nC_0 + ^nC_2 + ^nC_4 + ... + ^nC_k, 0< n, k < 10^{14}$ and $n>k$. I am using lucas algo for calculating nCr and loop for finding sum of all coefficients. It is taking hell lot of time for large numbers. Can anyone please help me with this ? Is there some kind of short formula or something that can help me ?

0 Answers0