TeX source:
f(n) =\begin{cases} n/2,& \text{wenn }n\text{ gerade,} \\3n+1, & \text{wenn }n\text{ ungerade.}\end{cases}