Answer
$a_n=10368(-0.25)^{n-1}$
Work Step by Step
Here, we have $a_n= a_1r^{(n-1)}$ for the Geometric series.
We are told that $a_5=40.5$ and $r=-0.25$
Here, we have $a_2=(a_1) \times (-0.25)^{(5-1)} \implies 40.5=(a_1) \times (-0.25)^4$
or, $a_1=10368$
Now, $a_n=a_1 \times r^{n-1}$
Hence, $a_n=10368(-0.25)^{n-1}$