[Tex/LaTex] How to write this math term


I have the following sequence definition:

enter image description here

I can't find a way to write this in Latex. Any hints where to start?

Best Answer

Since the other cases questions ask some specific questions about it, here's a working example:

g(n) = 
\frac{2}{3}n & \text{wenn } n \equiv 0 \mod 3,\\
\frac{4}{3}n + \frac{1}{3} & \text{wenn } n \equiv 1 \mod 3,\\
\frac{4}{3}n - \frac{1}{3} & \text{wenn } n \equiv 2 \mod 3.

The mathmode documentation is extremely helpful for answering these sorts of questions. You can find it on your system using texdoc or its equivalent.

Related Question