Finding the next number in a series