TeX source:
n(s,i) = \left\{\begin{matrix} s + 1 \; \; \; \mathrm{if \;} i = u\\ s - 1 \; \; \; \mathrm{if \;} i = d \end{matrix}\right.