LazyTools Header
Sequence Generator — Arithmetic, Geometric, Fibonacci & Custom | LazyTools
Generator

Sequence Generator — Arithmetic, Geometric, Fibonacci & Custom Step

Generate number sequences in four modes — Arithmetic (constant difference), Geometric (constant ratio), Fibonacci (sum of two preceding terms) and Custom step (any repeating step pattern). Furthermore, an SVG chart draws the sequence shape instantly so you can see whether it is linear, exponential or oscillating at a glance. Statistics including min, max, mean and last term appear automatically. Download any sequence as CSV.

Arithmetic / Geometric / Fibonacci / CustomSVG chart previewMin, max, mean statsCustom repeating step patternCSV export

How to use the Sequence Generator

1

Select the sequence type

Click one of the four tabs — Arithmetic, Geometric, Fibonacci or Custom. Furthermore, each tab shows the relevant parameters. Arithmetic needs a start value and a constant step. Geometric needs a start value and a multiplying ratio. Fibonacci accepts custom first and second terms.

2

Set the parameters and term count

Enter the start value, step or ratio, and the number of terms to generate. Furthermore, the term count controls how many values appear in the output. For Geometric sequences, set the decimal places to control rounding precision. Custom mode lets you enter a repeating pattern of step values.

3

Click Generate and read the output

Click Generate to produce the sequence. Furthermore, all terms appear comma-separated in the output box. The SVG chart below draws the shape of the sequence instantly — showing whether values grow, shrink or follow a non-linear curve.

4

Review the statistics strip

The stats strip below the output shows the term count, minimum value, maximum value, mean and the last term. Furthermore, these figures are useful for understanding the range and central tendency of the sequence without manual calculation. The last term is particularly useful for Fibonacci sequences where manual calculation is error-prone.

5

Copy or download

Click Copy to copy the comma-separated sequence to your clipboard. Furthermore, click CSV to download the sequence as a spreadsheet-compatible CSV file. This is useful for importing sequence data into Excel, Python, R or any other analytical tool.

The four sequence types compared

Each sequence type has a different mathematical structure and produces a distinctly different chart shape. Furthermore, recognising these shapes helps identify sequence types in data and understand their growth behaviour.

TypeFormula for term nChart shapeGrowth
Arithmetica + (n-1) × dStraight lineLinear — grows by the same amount each step
Geometrica × r^(n-1)Exponential curveExponential — grows by the same factor each step
FibonacciF(n-1) + F(n-2)Exponential-like curveApproximately geometric with ratio ≈ 1.618 (golden ratio)
CustomPrevious + pattern[n % length]Varies by patternDepends on step pattern — can be irregular

The custom step pattern

Custom mode generates a sequence where the step between consecutive terms cycles through a repeating pattern. Furthermore, a pattern of "1,2,3" produces steps of 1, then 2, then 3, then 1 again — creating an irregular but structured sequence. This models real-world patterns like staggered schedules, rhythmic structures and non-uniform sampling intervals. Moreover, it is useful for creating test data with a specific structural pattern.

Key formulas for number sequences

Each sequence type has a direct formula for calculating any term without generating all preceding terms. Furthermore, understanding these formulas helps predict sequence behaviour and verify output.

Arithmetic: aₙ = a₁ + (n−1)d | Geometric: aₙ = a₁ × rⁿ⁻¹
a₁ = first term
d = common difference (arithmetic)
r = common ratio (geometric)
n = term position (1-indexed)
Fibonacci = F(n) = F(n-1) + F(n-2), where F(1)=0, F(2)=1

Sum formulas

The sum of an arithmetic sequence of n terms is n × (first term + last term) ÷ 2. Furthermore, this is the formula attributed to Gauss — who reputedly calculated the sum 1 to 100 as a child by pairing each number with its complement. For a geometric sequence, the sum is a₁ × (1 − rⁿ) ÷ (1 − r) for r ≠ 1. Moreover, these formulas allow instant sum calculation without adding every term individually.

Worked example: arithmetic sequence for a savings plan

A saver deposits £200 in month 1 and increases their deposit by £25 every month for 12 months. The arithmetic sequence of monthly deposits:

SettingValue
Start (a₁)200
Step (d)25
Terms12

Output: 200, 225, 250, 275, 300, 325, 350, 375, 400, 425, 450, 475

The sum of this arithmetic sequence is 12 × (200 + 475) ÷ 2 = £4,050 deposited over the year. Furthermore, the chart shows a perfectly straight line — confirming linear growth. Moreover, the mean deposit is (200 + 475) ÷ 2 = £337.50 — also immediately visible in the stats strip as the mean of the 12 values.

What is a number sequence?

A number sequence is an ordered list of numbers following a defined rule. Furthermore, each term in the sequence relates to the previous term through a mathematical operation — addition (arithmetic), multiplication (geometric) or addition of preceding terms (Fibonacci). Sequences appear throughout mathematics, science, finance and computing. Moreover, understanding sequence types helps recognise patterns in data and apply appropriate analytical models.

Arithmetic sequences describe constant-rate growth — a salary increasing by the same amount each year, a vehicle travelling at constant speed. Furthermore, geometric sequences describe proportional growth — compound interest, bacterial doubling, radioactive decay. Fibonacci sequences appear in nature — the spiral arrangement of seeds in sunflowers, the branching of trees and the structure of shells all approximate Fibonacci proportions. Moreover, the Fibonacci sequence converges to the golden ratio (φ ≈ 1.618) as terms increase.

Sequences in computer science

Computer science uses sequences extensively — from generating test data to implementing algorithms. Furthermore, arithmetic sequences produce evenly spaced sample indices for signal processing. Geometric sequences model algorithm complexity — O(2ⁿ) exponential algorithms follow a geometric sequence of operation counts. Moreover, Fibonacci sequences appear in algorithm design — the Fibonacci search technique and heap data structures both exploit Fibonacci properties.

Why the chart preview matters

A chart immediately reveals the growth behaviour of a sequence that numbers alone obscure. Furthermore, a geometric sequence with ratio 1.1 looks like slow linear growth for the first ten terms — but the chart shows the curve bending upward. Spotting exponential behaviour early is critical for planning — a cost or metric growing geometrically will accelerate dramatically. Moreover, the flat line of arithmetic sequences versus the steep curve of geometric sequences makes the difference viscerally obvious in a way that a list of numbers does not.

Educators use sequence generators to create practice problems. Furthermore, students learning arithmetic and geometric sequences need large numbers of examples to practice with. Generating fifty different sequences with varying parameters provides varied practice material in seconds. Moreover, the chart preview gives students immediate visual feedback on whether their chosen parameters produce the expected shape — linear, exponential, or Fibonacci-like.

Custom sequences for scheduling

Custom step patterns are useful for generating irregular but structured schedules. Furthermore, a maintenance schedule might follow a pattern of 30, 60, 90, 30 days — repeating this cycle over several years. The custom sequence generator converts any repeating step pattern into a full schedule instantly. Moreover, the CSV export allows the generated schedule dates to be imported directly into a calendar or project management tool.

Frequently asked questions

In an arithmetic sequence, each term differs from the previous by a constant value (the common difference d). Furthermore, this produces linear growth — equal increases on a graph produce a straight line. In a geometric sequence, each term is multiplied by a constant value (the common ratio r). This produces exponential growth or decay — the graph curves increasingly steeply upward or downward. Moreover, most real-world financial and population growth models are geometric rather than arithmetic.
Yes — the Fibonacci tab lets you set both the first and second terms. Furthermore, the standard Fibonacci sequence starts 0, 1, 1, 2, 3, 5… but setting first = 1 and second = 1 gives 1, 1, 2, 3, 5, 8… — also valid. Setting any two starting values generates a generalised Fibonacci sequence (sometimes called a Lucas sequence). Moreover, all generalised Fibonacci sequences converge to the same golden ratio regardless of the starting values.
Enter comma-separated step values — the difference between consecutive terms repeats in the order you specify. Furthermore, a pattern of "2,3,5" means the first step is +2, the second is +3, the third is +5, the fourth is +2 again and so on. Starting from 1 with pattern 2,3,5 gives: 1, 3, 6, 11, 13, 16, 21, 23, 26, 31… Moreover, this allows generating sequences that follow rhythmic or structural patterns — useful for scheduling, music rhythm generation and test data with intentional structure.
Sequences are foundational to calculus, analysis, number theory and combinatorics. Furthermore, convergent sequences are the basis of limits — the fundamental concept underlying derivatives and integrals. Series — the sums of sequences — appear throughout probability, physics and engineering. Sequences also define recursive algorithms: merge sort, quicksort and dynamic programming all rely on sequence-based recurrence relations. Moreover, the Fibonacci sequence in particular connects to number theory, geometry and computer science through its remarkable mathematical properties.
Yes — the CSV export downloads the sequence as a spreadsheet-compatible file. Furthermore, opening the CSV in Excel, Google Sheets or LibreOffice Calc places each term in a cell. From there, you can use the data to build charts, apply formulas or use it as a lookup table. Moreover, the Copy button copies all terms comma-separated — which pastes directly into a single spreadsheet row without downloading.

Related tools

Random Generator Suite

Generate random numbers in 7 formats. Furthermore, Gaussian distribution mode is unique among free tools.

List Randomiser

Shuffle any sequence or list in random order. Furthermore, weighted randomisation gives some items higher probability.

Password Generator

Generate cryptographically secure passwords. Furthermore, entropy display shows the exact security level in bits.

Random Data Generator

Build test datasets with 10 field types. Furthermore, export as CSV, JSON or SQL instantly.

Barcode Generator

Generate barcodes for sequential product codes. Furthermore, batch generation exports all codes as a ZIP file.

Random Name Generator

Generate realistic names with nationality filter. Furthermore, Full Profile mode adds age, job and company.

Rate this tool

3.9
out of 5
394 ratings
5 ★
58%
4 ★
17%
3 ★
4%
2 ★
2%
1 ★
19%
How useful was this tool?