In the sequence {an}, if an = n (sin n π / 2 + cos n π / 2), the sum of the first n terms is Sn, then S100 =?

In the sequence {an}, if an = n (sin n π / 2 + cos n π / 2), the sum of the first n terms is Sn, then S100 =?

Let K ∈ nsin [(4K + 1) π / 2] + cos [(4K + 1) π / 2] = 1 + 0 = 1sin [(4K + 2) π / 2] + cos [(4K + 2) π / 2] = 0-1 = - 1sin [(4K + 3) π / 2] + cos [(4K + 3) π / 2] = - 1 + 0 = - 1sin [(4K + 4) π / 2] + cos [(4K + 5) π / 2] = 0 + 1 = 1, so sin (n π / 2) + cos (n π / 2), n starts from 1, press 1, - 1