A method to compute periodic sums — arXiv2