This is LaTeX code:
[latex]
a_n=3^{2n-1}-2^{n-1}
[/latex]