GenerateRandomSearch

Number Sequence Puzzle Generator

Most published sequence puzzles are arguable, and the reason is that they are written backwards: somebody invents a sequence and then asserts a rule for it. Any finite list of numbers satisfies infinitely many rules, so a puzzle made that way has no single defensible answer. These are built the other way round — the rule comes first and the numbers are generated from it.

What this generator does

Produces a sequence with one term hidden, together with the rule that generated it. Seven rule families are covered — constant difference, constant ratio, squares, triangular numbers, sum-of-the-previous-two, two rules alternating, and a gap that grows by a fixed amount. Because the rule is chosen first and the terms are computed from it, the rule is known to fit rather than asserted to, and the tool checks that it reproduces every term before showing the puzzle.

How to use this tool

  1. Choose a difficulty and how many terms you want.
  2. Choose whether to hide the next term or one from the middle.
  3. Press Generate and work out the missing number.
  4. Reveal to see the answer and the rule that produced it, stated in full.

Understanding the controls

Difficulty
Easy uses the four most familiar rules with small numbers. Medium adds the harder families. Hard allows negative steps, larger starting values and the alternating rule, which is the one most people find genuinely difficult.
Number of terms
Four is the minimum that can suggest a rule at all, and short sequences are much more ambiguous — with four terms, many rules fit. Six to eight is where a sequence starts to point clearly at one answer.
Which term is hidden
Hiding the last term asks what comes next, which is the familiar form. Hiding one from the middle is a genuinely different exercise: you can work backwards from both sides, which is easier in some cases and much harder in others.
Rule families
Restrict the draw to the families you are teaching. Working through one family at a time is far more useful for learning than a mixed set, which mostly tests whether the student can identify the family.

Worked examples

Constant difference
3, 10, 17, 24, ? — add 7 each time. Answer: 31.
Growing gap
5, 6, 9, 14, 21, ? — the gap starts at 1 and grows by 2. Answer: 30.
Alternating
4, 11, 22, 29, 58, ? — add 7, then double, repeating. Answer: 65.
Triangular
1, 3, 6, 10, 15, ? — each is the sum of all whole numbers up to n. Answer: 21.

Common use cases

  • Maths starters and homework at primary and lower secondary level
  • Reasoning practice for entrance tests, where sequences are a standard question type
  • A daily puzzle that never repeats and never runs out
  • Teaching what a sequence rule actually is, using examples where the rule is known
  • Aptitude-test preparation, where number series appear constantly

How this generator works

A rule family is drawn first, then its parameters — the starting value, the step, the ratio — and then the terms are computed forwards from those. That ordering is the whole design. A sequence written first and explained afterwards can always be explained several ways, and the puzzle is only as good as its explanation. Generating forwards means the stated rule is true of the sequence by construction, and the tool re-derives every term from the rule before showing it, so a sequence whose rule does not actually fit is never offered. Sequences with a repeated term are discarded too, because a repeat makes the pattern ambiguous to read even where the rule is sound.

Randomness and fairness

The rule family and its parameters are drawn with the browser's cryptographic random number generator, and everything after that is deterministic — once the rule and its parameters exist, every term follows. Nothing about the answer is chosen. A seed switches to a reproducible, non-cryptographic generator so a teacher can print the same worksheet twice; that mode is not cryptographically secure, which is precisely what makes it reproducible.

For how randomness is produced across the whole site, see how Generate Random works.

Assumptions this tool makes

  • Terms are read left to right, and the rule applies in that direction.
  • The sequence continues indefinitely, so the hidden term is the one the rule produces at that position.

Limitations and good to know

  • The answer is not unique and the tool does not claim it is. Any finite sequence fits infinitely many rules; what is guaranteed is that the rule shown does fit. A different defensible answer is not wrong, it is a different rule.
  • Only seven rule families are covered. Sequences based on primes, digit manipulation or word patterns are outside what this generates.
  • It cannot mark an answer. It gives you the one its rule produces, which is what you check against.
  • Short sequences are much more ambiguous than long ones. Four terms is offered because it is a common exam format, not because it is a good puzzle.
  • Numbers are capped to stay readable, so the harder rules with large parameters are sometimes regenerated rather than shown.

Common mistakes

Assuming there is one right answer
There is one answer the tool's rule produces, and other rules can fit the same terms. If a student gives a different answer and can state a rule that fits every shown term, they have done the exercise correctly.
Looking for a complicated rule first
Check the differences between consecutive terms before anything else. Constant differences, constant ratios and growing gaps between them account for most sequences anybody sets.
Setting four-term sequences for practice
Four terms is genuinely ambiguous — many rules fit. Use six or more for teaching, and save four for exam-format practice where the ambiguity is the exam's problem rather than yours.

Practical tips

  • Write the differences underneath the sequence as a row of their own. If those are constant you have an arithmetic sequence; if they form a pattern themselves, that pattern is the rule.
  • Restrict to one rule family when teaching it. A mixed set mostly tests family recognition, which is a different and later skill.
  • Ask students to state the rule rather than just the number. The rule is the understanding; the number is a by-product.

Troubleshooting

My answer differs from the one shown
Check your rule against every term shown, not just the last two. If it fits all of them, your answer is defensible — the tool's rule is one that fits, not the only one.
The numbers are very large
Geometric and Fibonacci-style rules grow fast. Drop the difficulty or shorten the sequence; both keep the numbers in a readable range.

Privacy and your data

Nothing is entered and nothing is stored. Puzzles are generated in your browser, no sequence is uploaded or written into the page address, and analytics records only that the tool was used along with the difficulty — never a puzzle or an answer.

Frequently asked questions

Is there always only one correct answer?
No, and any tool claiming otherwise is wrong. Every finite sequence is produced by infinitely many rules — you can always construct a polynomial that fits the given terms and then does anything you like. What this guarantees is that the rule it shows genuinely produces every term, which is the strongest honest claim a sequence puzzle can make.
Why generate from a rule instead of making up a sequence?
Because a sequence invented first has to be explained afterwards, and the explanation may not be the only one or even the best one. Generating forwards from a chosen rule means the rule is true by construction, and it means the tool can state the rule with its actual parameters rather than a vague description.
How many terms should I use?
Six to eight for teaching. Four is a common exam format and is genuinely ambiguous — with four terms a great many rules fit, which is a weakness of the format rather than of any particular puzzle.
What is a triangular number?
The running total of the whole numbers: 1, then 1+2=3, then 1+2+3=6, then 10, 15, 21. They are called triangular because that many dots can be arranged into a triangle, and they turn up constantly in counting problems.