If S=12−22+32−42 up to n terms if n is even, then S equals
If 1+1+22+1+2+33+....to n terms is S. Then, S is equal to