Arithmetic Progression in Terms of Two Terms
## Formula
If the $$p$$th and $$q$$th terms of an AP are $a_p$ and $a_q$:
$$a_p=a+(p-1)d$$
$$a_q=a+(q-1)d$$
Therefore:
$$a_q-a_p=(q-p)d$$
Hence:
$$d=\frac{a_q-a_p}{q-p}$$
## Usage
- Used when two terms of an AP are given and the general term or common difference is required.