Suppose we have a random walk where each step's distance $ X \in N$ is drawn from a uniform distribution:
$$X \sim \text{Uniform}\{1,\dots,n\}.$$
Each step takes exactly 1 second, and we denote by $ T$ the time (in seconds) it takes for the cumulative sum of steps to first exceed the boundary $n$. That is:
$$T = \min \left\{ t : \sum_{i=1}^t X_i > n \right\},$$
where $X_i$ are i.i.d. random variables drawn from $ \text{Uniform}\{1,\dots,n\}$.
My reasoning is as follows:
1)The expectation of a single step distance is:
$$
\mathbb{E}[X] = \frac{n}{2}.
$$
2) After $2$ steps, the expected cumulative distance is:
$$ \mathbb{E}\left[\sum_{i=1}^2 X_i\right] = 2 \cdot \frac{n}{2} = n. $$
Thus, it seems intuitive that the expected time $\mathbb{E}[T]$ to cross the boundary $n$ is: $$ \mathbb{E}[T] = 2. $$ Is this reasoning correct? If not, what is the correct value of $\mathbb{E}[T]$, and how can it be derived formally?