Para qué sirve el [tex]\frac{n (n + 1)}{2}[/tex] y el [tex]\frac{n (n - 1)}{2}[/tex] ?