Assignment 24 step question

Forums: 

STEP question: I've evaluated the integral and got 2 values dependent on n being odd or even, but I'm not sure how one is supposed to change that in a sum... Any advice would be appreciated.
Thank you.