1. In mathematics, an arithmetic progression (AP) or arithmeticsequence is a sequence of numbers such that the differencebetween the consecutive terms is constant. For instance,…