This is LaTeX code:
[latex]
a(n)=\left\{ \begin{array}{rl} 1, & n \textrm{ mod }10=0,\\ n \textrm{ mod }10, & \textrm{ina\v{c}e} \end{array} \right.
[/latex]