Sequence explorer

Watch dot and matchstick patterns grow step by step, read their differences in a table, and get the rule for step n with the reason it works. Type any list of numbers to find its linear, quadratic or doubling rule and the next term.

Keep it one tap away for everyday use.

Bookmark Sequence explorer?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Pattern
  2. Differences
  3. nth term
  4. Practise
Nothing is uploadedWorks offline once open
n

Terms and differences

    Find the rule for your own list

      Try this

      • Matchstick squares: why does each new square need only 3 more sticks, not 4?
      • Square numbers: look at the differences. They are the odd numbers, and the L shapes in the "odd numbers" pattern show why.
      • Two triangular numbers side by side make a rectangle n × (n + 1). That is why the nth triangular number is n(n + 1)/2.
      • Type 1, 1, 2, 3, 5, 8. No linear, quadratic or doubling rule fits: each term is the sum of the two before.

      Check yourself

      Fresh questions every time. Nothing is saved.

      What it does

      “What comes next?” is the start of a lot of maths. This page draws growing patterns (matchstick squares in a row, square and triangular numbers, pentagonal and hexagonal numbers, L shapes of odd numbers, cells that double) and helps you see the rule behind them:

      • steps 1, 2 and 3 are drawn side by side with step n, and the dots added at each step are marked in a second colour,
      • a table lists the terms with their differences (and, at the higher level, the second differences),
      • the rule for step n is written out with your n filled in, with a sentence on why it works,
      • a rule finder reads any list you type and says whether it is linear, quadratic or geometric, with the nth term and the next number.

      It follows the Class 9 maths chapter on sequences and progressions (predicting what comes next). The Level switch adds the Class 10–11 view: second differences, quadratic rules and sums.

      For arithmetic progressions with a staircase picture and Gauss’s trick, go on to the arithmetic progression staircase; the dot squares and rectangles here are the same shapes as the algebraic identity tiles, and quadratic rules are graphed in the quadratic explorer.

      How to use it

      1. Pick a Pattern.
      2. Move n with the slider, or type any step number up to a million in the box. Steps too big to draw are still counted.
      3. Read the table: if the difference row is the same number every time the pattern is linear (an arithmetic progression). If the differences change but go up by the same amount, the rule is quadratic. If they double, it is a doubling (geometric) pattern.
      4. Under Find the rule for your own list, type at least three numbers (four to test for a quadratic rule) separated by commas, or press an example.

      A worked example

      Matchstick squares: 4, 7, 10, 13 sticks. Each new square shares a side with the one before, so it needs 3 more sticks: 4 + 3(n − 1) = 3n + 1. Step 5 has 3 × 5 + 1 = 16 sticks, step 100 has 301.

      Triangular numbers: 1, 3, 6, 10, 15. The differences 2, 3, 4, 5 go up by 1 each time, so the rule is quadratic. Two triangles fit together into an n by (n + 1) rectangle, so step n has n(n + 1)/2 dots: step 5 has 15. The rule finder writes it as (1/2)n² + (1/2)n, which is the same thing.

      Your own list 2, 5, 10, 17, 26: differences 3, 5, 7, 9 go up by 2, so the rule is n² + 1 and the next term is 37.

      Tips

      • Always look at the differences first; they tell you what kind of rule to look for.
      • A constant second difference d means the n² part of the rule is (d/2)n².
      • Some lists, like 1, 1, 2, 3, 5, 8, follow a rule that is none of these types (each term is the sum of the two before). The rule finder says so instead of guessing.

      Check yourself

      Four fresh questions each time: the next term of a linear list, a far-away term, the next term of a quadratic list and a triangular number. Nothing is saved.

      FAQ

      Can there be more than one rule for the same numbers? Yes: any short list can be continued in many ways. The rule finder gives the simplest one of each type that fits every number you typed.

      Is this from the NCERT book? It covers the same topic with fibub’s own patterns and examples. fibub is not part of NCERT.

      Where the numbers come from

      • Figurate numbers (triangular n(n + 1)/2, square n², pentagonal n(3n − 1)/2, hexagonal n(2n − 1)), the method of differences and arithmetic and geometric progressions are standard school maths. Written for fibub; the patterns and examples are fibub's own.
      • Rules checked against sympy.interpolate (4, 7, 10, 13 → 3n + 1; 1, 3, 6, 10, 15 → n²/2 + n/2; 2, 5, 10, 17, 26 → n² + 1), every drawn step against its formula, and 200 random quadratics.

      Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

      Last updated 2026-11-09.

      Change log for Sequence explorer

      1. Add #1280 Growing patterns and sequences Details on GitHub

      Every change to fibub

      Related tools

      Number theory toolkit #T372 Test whether a huge number is prime, factorise it, find gcd and lcm with the extended Euclid table, work out modular powers and inverses, solve Chinese remainder systems, and expand continued fractions with their convergents. Exact whole-number arithmetic, in your browser. Quadratic explorer #L68 Slide a, b and c and watch the parabola move: vertex, roots and the discriminant update live, completing the square is drawn with tiles, and the middle term is split for you. With fresh practice questions. Algebraic identity tiles #L75 See each algebraic identity as a picture: slide a and b and the square or rectangle splits into its pieces with the identity filled in. Watch a² − b² turn into (a + b)(a − b), and pull the cube (a + b)³ apart into eight blocks. Arithmetic progression staircase #L79 Slide the first term a and the common difference d and watch the terms grow as a staircase of bars. The nth term and the sum of n terms are worked with your numbers, and Gauss's pairing trick is drawn as the staircase plus its upside-down copy. Pythagoras proof playground #L69 Drag a right triangle and watch the squares on its sides add up. Slide through four visual proofs (rearrangement, Bhaskara, similar triangles, Baudhayana) with your own side lengths, and list Pythagorean triples. Trig ratio explorer #L70 Drag the angle of a right triangle and see sin, cos and tan as ratios of its sides, with the exact values at 0°, 30°, 45°, 60° and 90°, the identities checked live, and the full unit circle for Class 11.