I would like to know if it's possible to find an expression for the following sequence $\;\{a_n\},\;n=0,\,1,\,2,\,3,\,\dots\;$
$1, 3 , 7, 13, 21...$
Someone would like to explain me what I have to do to solve it? I can see a pattern on them, it adds two more than the previous term added (2,4,6,8...) (like 2^n).
So I would like to know the general term($a_n\,=...$) solution, but mainly I would like to the explanation.
Edit: Solution: $a_n\,=n^2-n+1$
HINT: Compare $a_n$ with $n^2$ for the first few values of $n$.
Added:
$$\begin{array}{rcc} n:&1&2&3&4&5&6&7\\ n^k:&1&4&9&16&25&36&49\\ a_n:&1&3&7&13&21&31&43 \end{array}$$
What’s the difference between the last two rows of that table?