\sum_{l=0}^{n-1} 2(2l+1) = 4\sum_{l=0}^{n-1} l + 2n = 4 \frac{n(n-1)}{2} + 2n =2 n^2