This is LaTeX code:
[latex]
a_n:=\frac{n}{2^n}
[/latex]