\frac{N^2+N+2}{2}