Originally posted by: Ender
0 to infinity.
Originally posted by: RaynorWolfcastle
expand it out and solve: you'll get a geometric series and another one that's almost geometric but can be solved using the same trick as a geometric series. Looks like your calculating the expectation value of a bernoulli trial.
Originally posted by: Spydermag68
I could give you the exact equation, but I'll give you this instead.
n = 1, 1 = 1
n = 2, 1 + 2 = 2
n = 3, 1 + 2 + 3 = (1 + 3) + 2 = 4 + 2 = 6
n = 4, 1 + 2 + 3 + 4 = (1+ 4) + (2 + 3) = 5 + 5 = 10
n = m 1 + 2 + 3 + 4 + ... + m = (1 + m) + (2 + m - 1) + (3 + m - 2) ... = 🙂
Hint: You need to factor out something.
Originally posted by: Spydermag68
n(n+1) / 2
n = 1, 1(1+1) / 2 = 1
n = 5, 5 (5+1) / 2 = 20 / 2 = 15