About that one, I made it up on the spot without doing it, I intended the person to use the Gaussian pairing trick which can be used to solve the problem without the (-1)^k, I don't know if it works for this so if it doesn't I apologise lol
I'll have a better look at it soon.