Let$ X$ be a discrete random variable with the probability mass function given by $p_x(x)= 2^{-x}$ for $x=1,2,3,\ldots$ and $0$ otherwise.
a) Let $Y=X^2$, find the probability mass function of $Y$;
b) Let $Z=X-1$, find the probability mass function of $Z$, identify the name of the distribution of $Z$ and all its parameter values.
So the probability mass function is the density function for discrete case right? I tried to integrate the function but somehow got a weird one. Is my thinking correct? thanks for any help!