First of all, I\'m trying to solve the following problem using Python:
An arithmetic progression is a sequence of the form a, a+b, a+2b, ..., a+nb where n=0,