Generate arithmetic sequences with customizable parameters.
An arithmetic sequence is a sequence of numbers where the difference between each consecutive term is constant. This constant difference is called the common difference. Given the first term (a₁) and the common difference (d), each term can be found by adding the common difference to the previous term.
Generate a sequence starting at 1, increasing by 2, for 5 terms
1, 3, 5, 7, 9
Generate a decreasing sequence starting at 10
10 → 7 → 4 → 1
Generate a sequence with decimal numbers
0.5 1 1.5 2 2.5 3