This is LaTeX code:
[latex]
\displaystyle k=\left\{\begin{array}{cc} n-1 & ,n\equiv_2 0 \\ n & ,n\equiv_2 1\end{array}
[/latex]