Help with a recursive equation



Hi,

I derived this recursive equation myself when I was trying to come
up with a general equation for the sum of all binary numbers having
"n" digits with m 1's in them.

Let S(n,m) denote the sum I wish to find.

My recursion is

S(n,m) = S(n-1,m) + (2^(n-1))* C(n-1,m-1) + S(n-1,m-1)

where ^ denotes "raised to the power of"

Could somebody give me any pointers or links that could help in
solving this?

Thanks in advance,

KP

.



Relevant Pages

  • Re: Exact sequence
    ... Gmath wrote: ... interger modulo n and + denote the direct sum.?? ...
    (sci.math)
  • Sums of RV, Convolution plots
    ... My goal is to visualize the sum of iid random variables which I denote L_i. ... Given that I only have the pdf, this is all done in MATLAB using covolutions. ...
    (comp.soft-sys.matlab)
  • Re: what is this equal to
    ... > Let C_N^i denote choose i out of N ... the known sum should start at 0: ... Don Coppersmith ... Prev by Date: ...
    (sci.math)
  • Re: Exact sequence
    ... interger modulo n and + denote the direct sum.?? ... isomorphic image of Z_9. ...
    (sci.math)
  • Re: question on variation of subset sum problem
    ... Reduce subset sum problem with sum b to this problem with k = X + b. ... The correct reduction will be: ... Here I am using N instead of X which denote the sum of all elements of ...
    (comp.theory)

Loading