Let a random sample of size $n$ from an exponential distribution $X_i \sim EXP(1)$. Give the pdf of
(1) The sample range, $R = Y_n - Y_1$
(2) The first r order statistics
The answers are supposed to be
(1) $f_R(r) = (n-1)e^{-r}(1 - e^{-r})^{n-2}$ and (2) $g(y_1, \dots, y_r) = \frac{n}{(n-r)!}\exp\left ( -\sum_{i=1}^{r} y_i -(n-r)y_r\right)$
I have absolute no idea how they got -2 in the first answer and I don't know how in the second answer, they got a sum
EDIT: I figured out the sum part. They basically just put everything together into the exponent
EDIT#2. The largest order statistic $Y_n$ is $n e^{-y_n}(1 - e^{y_n})^{n-1}$.