Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on How many draws of a random number [0,1] are needed to sum to 1. Parent comment
E[N] = Sum_{i >= 0} P(N >= i)
Because the chance that (N >= i) is the volume below the standard simplex, which, as you note, is just 1/i!. Plug in to the above and you get
E[N] = Sum_{i >= 0} 1/i! = 1/e
Because the chance that (N >= i) is the volume below the standard simplex, which, as you note, is just 1/i!. Plug in to the above and you get