Title: Summation of differences of a function