We don't need to worry about the n = -1 so we can assume that the function is continuous on any interval [a,b] where a, b are real numbers
if I separate my interval into N partitions, then the right side values in my interval are
a + \frac{b-a}{N}, a + 2 \frac{b-a}{N}, ... , a + k...