This is LaTeX code:
[latex]
g_{X_i}(z)=\frac{z(1-z^6)}{6(1-z)}
[/latex]