Wolfram Demonstrations Project
8773

Experimenting with the Ulam Spiral

The Ulam spiral is named after Stanislaw Ulam, who discovered it by chance in 1963 while doodling on scratch paper at a scientific meeting.
Integers are placed on a square spiral. By marking the prime numbers, you can see that they tend to form patterns lining up in diagonal, horizontal, and vertical lines. This phenomenon can be best observed by drawing a large number of primes.
When starting the spiral with 41, a long diagonal line is clearly visible.
Triangular numbers (of the form ) as well as pentagonal numbers (of the form ) give rise to pinwheel patterns on the spiral.
The divisor function is the sum of the powers of the divisors of . By marking out the numbers for which is odd, you can also see a pinwheel pattern for .
Some things to try
• Play "number of integers" and/or "start from" to see how spiral patterns evolve.
• Set "number of integers" to its maximum and observe the pattern, a very regular, pleasant, spiral shape.
• Slide "start from" to its maximum. Notice the pattern disappears. It looks just like random noise.
• Play "number of integers" and/or "start from" to watch spiral patterns evolve.

THINGS TO TRY

SNAPSHOTS

  • [Snapshot]
  • [Snapshot]
  • [Snapshot]

DETAILS

See also:
Triangle Numbers on Ulam Spiral by Adrian Leatherland http://yoyo.cc.monash.edu.au/~bunyip/primes/triangleUlam.htm
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.









 
RELATED RESOURCES
Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Powered by Wolfram Mathematica © 2013 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+