I have the following sequence given:
$$\sum_{k=1}^{n} (-1)^{k}k^{2}$$
How can I do this? The sequence goes like this:
$$-1 + 4 - 9 + 16 - 25 + 36 - ...$$
So it doesn't have any variables inside. It looks like a geometric sequence for me, so the simple known formula would do the whole thing, but I actually doubt it's that simple.
So there are some generating functions that are quite similar, like:
$$\sum (-1)^{n}x^{n} = x - x^{2} + x^{3} - x^{4} + ...$$
But, uhm, well...what's next? The lack of x variable seems a bit strange to me.