The numbers in the rectangular grid are either increasing by rows, or arranged in a spiral from the centre.
Choose or enter a function (using numbers, the pronumeral n, operators +, -, *, / and brackets), and view the numbers or the patterns that result.
Zoom out to see more numbers or a larger pattern (zoom is continuous if you keep the button pressed), and press and hold on the image to magnify.
Algebra extends arithmetic since it gives us a way to describe and work with many numbers at once — but not just any numbers, but numbers that are related in very specific ways. An algebraic expression represents such relationships, and this activity gives the opportunity to visualise the pattern that results from particular expressions.
There are two views: a normal rectangular grid, and a spiral arrangement where the numbers start in the middle and spiral outwards. Changing from the regular grid view to the spiral view changes the layout of the numbers selected by an expression, and remarkable additional patterns are frequently revealed. Understanding the structure of these patterns, predicting various aspects, and uncovering related patterns and their associated expressions helps develop an understanding of algebra as generalisation.
Some particular problems:
The link with primes and number spirals is the most famous, thanks to Stanislaw Ulam. There is a intriguing predominance of specific diagonals in the distribution of the primes.
Euler found an equation that generates prime numbers for all n from 0 to 40. Try entering the expression n × n - n + 41 and comparing with the primes view.