Random variable $X$ has exponential distribution with parameter $\lambda>0$. Let $T=\lfloor X\rfloor $, $R=\{X\}$ where $\lfloor x\rfloor$ is floor from number $x\in\mathbb{R}$ and $\{x\}$ is it's fraction part. What is the distribution and expected value of $T$ and $R$?
I tried doing that the following way:
$$\mathbb{P}(T=k)=\mathbb{P}(X\in[k,k+1))=\int_k^{k+1}\lambda e^{-\lambda x}=-e^{-\lambda x}\Big|_k^{k+1}=\frac{e^{\lambda}-1}{e^{\lambda +k}}$$ so $$\mathbb{E}T=\sum_{k=0}^{\infty}\frac{k(e^{\lambda}-1)}{e^{\lambda +k}}=\frac{e^{\lambda}-1}{e^{\lambda}}\sum_{k=0}^{\infty}\frac{k}{e^{\lambda k}}=\frac{e^{\lambda}-1}{e^{\lambda}}\frac{e^{\lambda}}{(e^{\lambda}-1)^2}$$
I took the last equality from Wolfram, yet I'm unsure of it's origins. Where does it come from? Secondly, I'm clueless about $R$ distribution. Could you help?