How do you compute the density function of X^2, given X is a Geo~(p)?

Here's what I've gotten so far:
P(X^2 = a) => P(X = sqrt(a)) = p*(1-p)^sqrt(a)
a can only take values 0, 1, 4, 9, 16, etc

Thanks!