my question is as follows:
Find a polynomial function $f(n)$ such that $f(1),f(2),…,f(8)$ is exactly the following squence: 1,1,2,4,7,11,16,22.
(Hint: how does the sum $\sum_{n=2}^{i=0}i$ come into this?)
I know that the sequence increases by adding an integer that increases by 1 each time, but I have no idea how to express this in a function. I'm also not quite sure what the hint means either? How do I approach/solve this?
Hint:
You have the sequence $$1,1,2,4,7,11,16,22,\dots\tag{1}$$ Now look at the difference of consecutive elements ($a_{n+1}-a_n$): $$0,1,2,3,4,5,6,\dots\tag{2}$$ Look again at the difference of elements in $(2)$: $$1,1,1,1,1,1,\dots\tag{3}$$ Since the sequence becomes constant after two computing the difference twice, what degree must $f(x)$ have?
Now you know that $f(n)=an^2+bn+c$, and can find the coefficients.
This will give $$f(n)=\frac{n^2}{2}-\frac{3}{2}n+2$$