Arithmetic progression (source code)

= Arithmetic progression
{wiki}

An arithmetic progression is a sequence $a,a+r,\ldots,a+(m-1)r$ with constant successive difference $r$. It is nonconstant when $r\ne0$.