How to solve sigma notation