Copyright © University of Cambridge. All rights reserved.
'Tens' printed from https://nrich.maths.org/
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.