Ulam spiral
From Wikipedia, the free encyclopedia
The Ulam spiral, or prime spiral (in other languages also called the Ulam cloth) is a simple method of graphing the prime numbers that reveals a pattern which has never been fully explained. It was discovered by the mathematician Stanisław Ulam in 1963, while doodling on scratch paper at a scientific meeting. Ulam, bored that day, wrote down a regular grid of numbers, starting with 1 at the center, and spiraling out:
He then circled all of the prime numbers and he got the following picture:
To his surprise, the circled numbers tended to line up along diagonal lines. The following image illustrates this. This is a 200×200 Ulam spiral, where primes are black. Black diagonal lines are clearly visible.
All prime numbers (except 2) are obviously odd numbers and end with 1,3,7 or 9. In the Ulam spiral adjacent diagonals are alternatively odd and even numbers, in both ways. Therefore it is no surprise that all prime numbers, being odd numbers, lie in alternate diagonals of the Ulam spiral. What is startling is the tendency of prime numbers to lie on some diagonals more than others, while a random distribution is expected.
It appears that there are diagonal lines no matter how many numbers are plotted. This seems to remain true, even if the starting number at the center is much larger than 1. This implies that there are many integer constants b and c such that the function:
- f(n) = 4n2 + bn + c
generates an unexpectedly-large number of primes as n counts up {1, 2, 3, ...}. This was so significant, that the Ulam spiral appeared on the cover of Scientific American in March 1964.
At sufficient distance from the centre, horizontal and vertical lines are also clearly visible.
[edit] References
- Stein, M. and Ulam, S. M. (1967), "An Observation on the Distribution of Primes." American Mathematical Monthly 74, 43-44.
- Stein, M. L.; Ulam, S. M.; and Wells, M. B. (1964), "A Visual Display of Some Properties of the Distribution of Primes." American Mathematical Monthly 71, 516-520.
- Gardner, M. (1964), "Mathematical Recreations: The Remarkable Lore of the Prime Number." Scientific American 210, 120-128, March 1964.
[edit] External links
- Links to Ulam spiral pages
- pictures
- An applet that draws spirals of various sizes
- An applet with source code
- Extended theory branching from the spiral, involving primes
- amazing picture on first page, extends theory on second page
- continued theory
- Windows software for exploring the Ulam spiral
- Software for exploring the Ulam spiral and prime patterns in other concentric polygon systems, (both spiral and non-spiral)