S= a1 - a2 + ... an
→ S= a1 + (-a2 + a3)... +(-an-2+ an-1) +an.
Our series is (-a2 + a3)... +(-an-2+ an-1)
This series has (n-2)/2 terms.
So, formula gives answer, (2*5 + (((n-2)/2)-1 )* 4)n-24
= (7-n) (n-2)2
Now, we have to add the first and last terms.
So final answer = 1 + (7-n) (n-2)2 + nth term...
- Sayantan Hazra Check : Put n = 4 ........ :)
- Sayan Sinha This one works when n is odd.