I was asked the following:
Determine a formula for the following sum with $n\in\mathbb N$:
$$S=2+7+12+\cdots+(5n-3)$$
I had no clue about what to do about it. I just wrote, for the sake of doing something, the following:
$$\sum_{i=0}^n(5i-3) = \left(\sum_{i=0}^n(5i) - 3n\right)$$
Curiously, I got a few points for that. But eventually, there is an annotation by the professor:
And?
So apparently I was on the right path. What was I supposed to do afterward? How do you "make up a formula" of a given sum?
So you have $$ S = 2 + 7 + 12 + \dots + (5n - 3) = \sum_{i=1}^n (5i-3) = \left(5\sum_{i=1}^{n} i\right) - 3n. $$ So all you need to know is that $$ \sum_{i=1}^{n} i = \frac{n(n-1)}{2}. $$