0

As a part of one computer algorithm, I want to find sum for $$n+ \frac{n(n+1)}{2!} + \frac{n(n+1)(n+2)}{3!}+....+ \frac{n(n+1)(n+2)...(n+r-1)}{r!} $$. I looked at $$\frac1{(1-x)^n}$$. But it is infinite series. Is there some formula? Please help.

1 Answers1

0

Hint:

$$\frac{n(n+1)}{2!} = \frac{(n+1)!}{2!(n+1-2)!} = {n+1 \choose 2}$$

John
  • 26,319