Why do prime numbers make these spirals? | Dirichlet's theorem and pi approximations
Englishto
Prime Spirals: Unraveling the Hidden Patterns of Numbers.
Imagine mapping numbers on a plane, but not with the usual x and y axes. Instead, picture each point defined by its distance from the origin and the angle it makes—a system called polar coordinates. Now, plot every number where both the distance and the angle equal that number itself. What emerges is a mesmerizing spiral, known as the Archimedean spiral. But the real magic happens when you restrict your attention to prime numbers—those mysterious, indivisible building blocks of mathematics.
Zoom in, and the primes seem scattered and random. But as you pull back, astonishing patterns reveal themselves: swirling spirals like arms of a cosmic galaxy, and at even grander scales, these transform into sharp, radiating rays, sometimes grouped in fours, occasionally with gaps—like a comb with missing teeth. What causes such order to arise from the apparent chaos of primes?
The answer begins with a simple yet powerful idea: residue classes. Think of dividing the number line into groups based on remainders after dividing by a certain number—say, 6. Each group, or “residue class mod 6,” forms its own spiral arm. Primes, however, can only fall into certain arms because, by definition, they're not divisible by smaller numbers. For example, all primes greater than 3 are either 1 or 5 more than a multiple of 6. This simple property carves away many spirals, leaving only those where primes can truly exist.
But the spirals don't just come from primes. They trace their origins to some of the best rational approximations for pi—like 22/7 or 355/113. These fractions are so close to pi that when you count forward by their numerators in your spiral, each point nearly completes a whole number of turns. This results in beautifully separated spiral arms, each representing a residue class for that modulus—44 for 22/7, and 710 for 355/113.
Now, filter out the non-primes, and gaps appear—arms vanish wherever primes can't possibly land due to divisibility. The remaining arms correspond to numbers that share no prime factors with the modulus—those that are “co-prime.” The number of these survivor arms is given by Euler's totient function, denoted phi(n), which counts how many numbers less than n are co-prime to n.
Here's where the grand insight of Dirichlet's theorem enters. Among the remaining residue classes, not only do primes show up, but they show up with remarkable regularity. Whether you look at numbers ending in 1, 3, 7, or 9 (for modulus 10), or across the 20 residue classes co-prime to 44, the primes distribute themselves evenly in the long run. This deep and surprising fact—proved in the 19th century—asserts that for any modulus, primes will be spread out equally among all allowable residue classes, provided those classes are co-prime to the modulus.
This journey from whimsical data visualization to profound mathematical truth showcases the beauty of mathematical exploration. What starts as a playful pattern can lead to the heart of number theory, linking geometry, arithmetic, and the mysterious distribution of the primes. The lesson is clear: Even the most arbitrary-seeming paths in mathematics can open doors to its deepest treasures, and sometimes, it's in the spirals and rays of our imagination that the secrets of the universe are revealed.
0shared

Why do prime numbers make these spirals? | Dirichlet's theorem and pi approximations