I try to write a math formula but i get many errors and a bad display. Here's the code :
\documentclass[a4paper]{article}
\usepackage{amsmath}
\begin{document}
Suite de Syracuse :
$\forall U_0\ge 1, u_{n+1} =$\left\{
\begin{array}{lcr}
$\dfrac{u_n}{2}$ si $u_n$ est pair\\
$3u_n + 1$ si $u_n$ est impair
\end{array}
Suite compressée :
$\forall U_0\ge 1, u_{n+1} =$\left\{
\begin{array}{lcr}
$\dfrac{u_n}{2}$ si $u_n$ est pair\\
$\dfrac{3u_n + 1}{2}$ si $u_n$ est impair
\end{array}
Suite à termes négatifs :
$\forall U_0\le -1, u_{n+1} =$\left\{
\begin{array}{lcr}
$\dfrac{u_n}{2}$ si $u_n$ est pair\\
$3u_n - 1$ si $u_n$ est impair
\end{array}
\end{document}
So i get 29 errors and this display :
.
Thanks for helping and sorry for my bad english :)


casesenvironments considers only alignment within itself. However, it seams adding a space in front of the "si"s in the first and thirdcasesseems to give pretty good results for this example. – Dan Nov 25 '13 at 04:40