Find next number in sequence - curve prediction by Mark Knol

Input: