Number Sequence Generator
Generate arithmetic and geometric number sequences by a common difference or ratio — either the first N terms or every value up to an end value. Choose separators and pad with leading zeros.
Input
Sequence
The first term of the sequence.
Added to each term. Use a negative value to count down.
Length
Formatting
Aligns integer terms to equal width (e.g. 001, 002, 003).
Output
Statistics
| Metric | Value |
|---|---|
| No data yet | |
Guides
The Number Sequence Generator builds a list of numbers that follow a fixed rule — either an arithmetic sequence (each term adds a common difference) or a geometric sequence (each term multiplies by a common ratio). Set a start value, choose how long the sequence should be, pick a separator, and copy or download the result.
How to use it
- Pick a sequence type. Arithmetic adds the same amount each step (1, 3, 5, 7…). Geometric multiplies by the same amount each step (1, 2, 4, 8…).
- Set the start value — the first term of the sequence.
- Set the step or ratio. For arithmetic, the common difference is added to each term; a negative value counts down. For geometric, the common ratio multiplies each term.
- Choose the length. Generate the first N terms, or every value up to an end value (generation stops as soon as a term passes the end).
- Format the output. Separate terms by new line, comma, comma + space, space, or a custom string, and optionally pad integers with leading zeros so every value has equal width.
The statistics panel reports the term count, sum, minimum, and maximum for the generated list.
Examples
- Counting numbers: arithmetic, start 1, step 1, first 10 terms →
1, 2, 3 … 10. - Even numbers: arithmetic, start 2, step 2.
- Multiples up to a limit: arithmetic, start 0, step 5, up to end value 30 →
0, 5, 10, 15, 20, 25, 30. - Powers of two: geometric, start 1, ratio 2, first 10 terms →
1, 2, 4 … 512. - Countdown: arithmetic, start 10, step −1, with leading zeros →
10 09 08 … 01.
What is the difference between arithmetic and geometric sequences?
An arithmetic sequence changes by addition — the gap between consecutive terms is constant (the common difference). A geometric sequence changes by multiplication — the ratio between consecutive terms is constant (the common ratio). Arithmetic sequences grow in a straight line; geometric sequences grow (or shrink) exponentially.
Can I generate a descending sequence?
Yes. Use a negative common difference (e.g. step −1) for an arithmetic countdown, or a ratio between 0 and 1 for a shrinking geometric sequence. In up to an end value mode the end value simply needs to sit on the far side of the start value.
Do steps and ratios have to be whole numbers?
No — decimals and negative values are accepted (e.g. step 0.5 or ratio 1.5). Results are formatted to avoid floating-point display noise. Leading-zero padding is applied only when every term is a whole number.
Privacy
Everything runs entirely in your browser. The numbers you generate are never uploaded or stored.