I wrote it as the following sum:
$$1 + \sum_{k=1}^n (3k - 2)$$
Which I solved for and got the following formula:
$$\frac{3n^2 - n + 2}2$$
But this seems wrong to me because the base case seems incorrect to me. Any help with this?
I wrote it as the following sum:
$$1 + \sum_{k=1}^n (3k - 2)$$
Which I solved for and got the following formula:
$$\frac{3n^2 - n + 2}2$$
But this seems wrong to me because the base case seems incorrect to me. Any help with this?
The sum should be $\sum_{k=1}^n (3k-2)$.
Using the arithmetic series formula, we have
$$\sum_{k=1}^n (3k-2)=\frac{n}{2}(3n-1)$$
Try to prove it using induction.