You could write $9^n$ as $(10-1)^n$ and consider the terms of the binomial expansion...

Or you could use Modular Arithmetic - there's a useful introduction here.