This is LaTeX code:

[latex]
\mathds{E}\left(A_n\right)=3 \cdot \left[2^n - \left(\frac{3}{2}\right)^n\right],\, n \in \mathbb{N}
[/latex]