Category: Sequences and Series Level: 201
an = a1 + (n - 1)d versus gn = g1 rn-1
An arithmetic sequence adds the same number each step, so its dots lie on a line. A geometric sequence multiplies by the same number each step, so its jumps keep growing.
Start at 3 and add 2 each time: 3, 5, 7, 9. Plot term n against its position n.
an: 3, 5, 7, 9
Every step up is the same size, +2. That fixed gap is the common difference d.
d = 5 - 3 = 7 - 5 = 9 - 7 = 2
Start at 3 again, but multiply by 2 each time: 3, 6, 12, 24. Same start, very different ambitions.
gn: 3, 6, 12, 24
Each term is twice the one before, so the jumps double: +3, +6, +12. The fixed number is the ratio r, not the gap.
r = 6/3 = 12/6 = 24/12 = 2
Equal steps put the arithmetic dots on a straight line. Doubling puts the geometric dots on a curve that bends upward and soon leaves the chart.
an = 3 + 2(n - 1), gn = 3ยท2n-1
cd svg-generator python3 -m svgmath render arithmetic-geometric-sequences --out /tmp/arithmetic-geometric-sequences
Source: svgmath/diagrams/sequences.py