Arithmetic and geometric sequences

An arithmetic sequence adds the same difference at every step and a geometric sequence multiplies by the same ratio, so their terms are $a_n = a_0 + dn$ and $g_n = g_0 r^n$.

From AP Precalculus.