This is LaTeX code:

[latex]
f(n,z) = \left\{\begin{array}{r@{,\ }l}
\sum_{i=z}^9 f(n-1,i) & n > 0 \\
1 & n = 0
\end{array}\right.
[/latex]