Let $P(x)$ be a random process where you keep selecting random numbers, uniformly distributed between 0 and 1, until the sum reaches $x$.
From memory, the expected value of the number of terms needed by $P(x)$ is $e^x Q(x)$, where $Q(x)$ is a piecewise polynomial whose degree increases at each integer value of $x$. If I remember, it was
$$Q(x) = \sum_{k=0}^{\lfloor x\rfloor} (-1)^k\frac{(x-k)^k}{(k+1)!}$$
My question is: This formula numerically gives $(2/3)+2x$ plus exponentially decaying but oscillating terms. How do you go from $e^x Q(x)$ to $2/3 + 2x$ plus exponentially decaying terms?