Math

Displayed math

\[ f(n) = \begin{cases} 0 & \text{if $n = 0$,} \\ 1 & \text{if $n = 1$,} \\ f(n - 1) + f(n) & \text{if $n > 1$.} \end{cases} \]

Inline math

Inline math: \( f(n) = \begin{cases} 0 & \text{if $n = 0$,} \\ 1 & \text{if $n = 1$,} \\ f(n - 1) + f(n) & \text{if $n > 1$.} \end{cases} \).