The user inputs a number series, and it returns a program that generates it