First, my answer was overkill.
Second, it missed the point of the problem.
I'm still gonna say partial fractions.
Oh well, here's the "better" answer to a question that wasn't asked.
I'd rewrite it as $$q(T)[f(x)] = p(T)\left[\frac{1}{1-x}\right]$$
since we don't know what the meaning of $q(T)^{-1}$ is.
But in general, we can easily show that $q(T)[\sum a_nx^n] = \sum a_nq(n)x^n$. We can do this directly, since $T^k[x^n] = n^kx^n$ is easy to prove.
But since $f(x)=\sum_n \frac{p(n)}{q(n)}x^n$, that means:
$$q(T)[f(x)] = \sum_n p(n)x^n$$
On the other hand, since $\frac{1}{1-x} =\sum_n x^n$, we see that the right side is the same:
$$p(T)\left[\frac{1}{1-x}\right] =\sum_n p(n)x^n$$
So we are done.
Now, since we have proven $q(T)\left[\sum_n a_nx^n\right]=\sum q(n)a_nx^n$ and $q(n)\neq 0$ for all $n$, then $q(T)^{-1}$ is clearly defined as:
$$q(T)^{-1}\left[\sum_n a_nx^n\right] = \sum \frac{a_n}{q(n)}x^n$$