Arithmetic Sequence:
An arithmetic sequence is a sequence of numbers where the difference between consecutive terms is constant. This difference is called the common difference.
a_n = a_1 + (n - 1) * d
Geometric Sequence:
A geometric sequence is a sequence where each term is found by multiplying the previous term by a constant. This constant is called the common ratio.
g_n = g_1 * r^(n - 1)