I am supposed to find the value of this:
$$ \sum_{i=1}^n i^2 + 3i + 4$$
I'm a bit unsure about how to simplify this.
I know when I plug in numbers, I get:
$$(1+3+4) + (4+6+4) + (9 + 9+ 4) + (16+12+4) = 8 + 14 + 22 + 32$$
I can see the difference between the numbers increases by 2 with the difference between the first and second numbers starting at 6.
But, how do I come up with a general value to this equation using $n$ and $i$?
Here are some sums that I found:
When $n=5, sum = 120$ $n=4, sum = 76$ $n=3, sum = 44$ $n=2, sum = 22$ $n=1, sum = 8$