Reduce the sequenceor how to calculate it efficiently

  • Thread starter Thread starter kuldeepfouzda
  • Start date Start date
AI Thread Summary
The discussion focuses on calculating a specific sequence defined by a summation involving binomial coefficients and powers of two, specifically for large values of n, up to 10^10. The sequence is expressed as SUMMATION from k=0 to floor(n/2) of (n-k)C(k) * 2^(n-k-1). Participants are seeking methods to simplify the series or find efficient calculation techniques, particularly under modulo conditions like 10^9+7. Mathematica code is provided for evaluation, and users are encouraged to utilize Wolfram Alpha for those without Mathematica. The goal is to derive a manageable solution for large-scale computations.
kuldeepfouzda
Messages
1
Reaction score
0
Sequence is
(in Summation notation)
SUMMATION[from k=0 to k=floor(n/2)] (n-k)C(k) * 2(n-k-1)
refer to this image
http://i.snag.gy/tFI7e.jpg
after expanding it becomes
(n)C(0)*2(n-1) + (n-1)C(1)*2(n-2) + (n-2)C(2) * 2(n-3) +...
I want to calculate the value of function for a large value of n(up to
1010, and ans is to be found MODULUS to some prime number..like
1010+7).

Please simplify the series if possible or let me know the way how to
solve it efficiently.
 
Mathematics news on Phys.org
Mathematica code

Code:
Sum[Binomial[n - k, k]*2^(n - k - 1), {k, 0, Floor[n/2]}]

you can use wolfram alpha to evaluate the exact form, if you don't have mathematica installed.

answer is attached
 

Attachments

  • answer.jpg
    answer.jpg
    27.2 KB · Views: 468
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Back
Top