Let X1,..,Xn be a random sample of size n from a geometric distribution with pmf . Show that is a sufficient estimator of theta.

So

I don't believe that the factorization theroem can be applied here. Is there some trick to this that I'm not seeing?

Thank you in advance.