What's next?
The applet below presents you with a sequence of numbers. It's your task to surmise
the pattern and guess what would be the next term. Sometimes a pattern may not be unique.
This may be very frustrating for which I am sorry. However, this exercise besides being
useful and sometimes also enjoyable occupation, affords an opportunity to discuss topics
that I consider interesting.
| |
|
Algorithms used
The applet randomly selects one of the following algorithms. In turn, each
of the algorithms has its own random parameters which are mostly coefficients in various formulas.
Arithmetic series.
a0, a0 + d, a0 + 2d, a0 + 3d, ...
Geometric series.
a0, a0q, a0q2, a0q3, ...
Alternate addition and multiplication.
a0, a1 = a0 + d, a2 = a1·q, a3 = a2 + d, ...
Alternate addition of two different quantities.
a0, a1 = a0 + da, a2 = a1 + db, ...
Self-descriptive sequence.
Write a simple number, say, 21. Now scan the number by groups of equal digits at a time. Here
we have one "2" and one "1". Thus the next number will be 1211. In this number we have one "1",
one "2" and two "1"s. Thus the third number - 111221. The next will be 312211.
Sum of preceding two.
a0 and a1 are random. a2 = a0 + a1, a3=a1 + a2, ... (If a0 = 0 and a1 = 1,, the rseult is the famous Fibonacci sequence.)
Three-term sum sequence.
a0, a1 and a2 are random. a3 = a0 + a1 + a2, ...
Shifted powers.
an = a0 + bqn
Just add a constant to all the members of a geometric series and what a difference!
Second degree polynomial.
an = an2 + bn + c
It's easy to detect this case. Take differences of successive terms:
| |
| Mn | = an + 1 - an |
| | = a((n + 1)2 - n2) + b((n + 1) - n) + (c - c) |
| | = a(2n + 1) + b |
|
So that the differences prove to be the values of a first order polynomial. Taking "second order" differences we get constants:
| |
| Mn - Mn-1 | = a((2n + 1) - (2n-1)) + (b-b) |
| | = 2a |
|
Copyright © 1996-2010 Alexander Bogomolny
|