nth term and sum of arithmetic or geometric sequences.
Arithmetic: aₙ = a₁ + (n−1)d. Geometric: aₙ = a₁·rⁿ⁻¹.