Confused about how to show independent random variable $Y$ has the Poisson distribution with parameter $t\lambda$ Assume there are $N$ independent exponential random variable $(X_1, X_2,\ldots, X_N)$ with parameter $\lambda$. Fix a real number $t > 0$. Let $Y$ be the largest $N$ so that $X_1 + X_2 + \ldots + X_N \leqslant t$ ($Y = 0$ if $X_1 > t$). How to show independent random variable $Y$ has the Poisson distribution with parameter $t\lambda$?
Approach: I want to prove that $ P(Y \geqslant k) = 1 - \sum_{j=1}^{k-1} \frac{e^{-\lambda t}(\lambda t)^k}{k!}$, in order to do this, I wanted to use
\begin{align}
& P(Y\geqslant k) = P(X_1 + X_2 + \cdots + X_k \leqslant t) \\[8pt]
= {} & \int_{x_1 =0}^t P(X_2 + X_3 + \ldots + X_k \leqslant t - x_1)f_{X_1}(x_1) \, dx_1.
\end{align}
Then I don't know how to keep going from here. please help me...

Let $S_k:=\sum_{i=1}^k X_i$ (note that $S_k\sim \Gamma(k,\lambda^{-1})$). Then
\begin{align}
\mathsf{P}(Y=k)&=\mathsf{P}(S_k\le t, S_k+X_{k+1}>t)=\mathsf{E}\!\left[1\{S_k\le t\} \mathsf{P}(X_{k+1}>t-S_k\mid S_k)\right] \\
&=\mathsf{E}\!\left[1\{S_k\le t\}e^{-\lambda(t-S_k)}\right]=\int_0^t\frac{\lambda^k}{(k-1)!}x^{k-1}e^{-\lambda t}\,dx \\
&=\frac{(\lambda t)^ke^{-\lambda t}}{k!}.
\end{align}
