I've been shown that : $$\sum_{i=1}^n i = \frac{n(n+1)}{2}$$ Now I need to write an explicit formula for the sum: $$\sum_{i=1}^n {(3i+1)}$$
I've come up with an answer that is: $$\sum_{i=1}^n {(3i+1)} = \frac{9n^2 + 6n + 3}{2}$$
However I am not sure if this is right or not. Thanks in advance for any help.