Arithmetic and geometric progressions

Arithmetic Progression: An arithmetic progression (AP) is a sequence of numbers in which each term after the first is obtained by adding a fixed number to the previous term. This fixed number is called the common difference, denoted by d. The first term of an AP is denoted by a1. The nth term of an…