# Math Help - Big curly bracket

1. ## Big curly bracket

I want to define a function so that even numbers will go somewhere and odd numbers will go somewhere else. How would I get LaTeX to do the curly bracket needed, one that has two rows?

2. Hi,

f(n) = \begin{cases} n, & \mbox{if } n\mbox{ is even} \\ n+1, & \mbox{if } n\mbox{ is odd} \end{cases}

produces

$f(n) = \begin{cases} n, & \mbox{if } n\mbox{ is even} \\ n+1, & \mbox{if } n\mbox{ is odd} \end{cases}$