Monday, January 10, 2011

2011 and prime number sieves

I'm a slow blogger. It's already been more than a week that we entered the 2011th year of the Christian era. Interestingly 2011 is a prime number. Many bloggers have mentioned the fact that the number 2011 is also the sum of 11 (a prime number) consecutive primes, see for example at Republic of Math, at Pat'sBlog, at The Math less Traveled, at Lucky's Notes, at the Pattern Connection ... and I apologize to those whom I forget, there must be many more.

I would state the obvious if I said that primes are special numbers. But what makes primality so special? Don Zagier, an eminent specialist, said: Upon looking at these numbers, one has the feeling of being in the presence of one of the inexplicable secrets of creation. That's awesome, isn't it? In antiquity, the Greeks already tried to understand the patterns underpinning the prime numbers. A way to visualize those patterns is through prime number sieves. Eratosthenes is said to have proposed the first sieve, the Eratosthenes sieve. (Hey, have you noticed that Eratosthenes was born 2287 years ago? So we are in year 2287 of the Eratosthenian era. Also a prime number). But there are other sieves. More of that later.

Prime numbers occur in nature in cyclic processes. Imagine that, somewhere in the universe, there's a star with a huge number of planets, all of them having the same orbiting speed. They are numbered from 1 to N, planet n°1 being the inner planet and the diameters of their circular orbits are as following:
  • The diameter of planet n°2's orbit is twice the diameter of planet n°1's orbit.
  • The diameter of planet n°3's orbit is three times the diameter of planet n°1's orbit.
  • The diameter of planet n°4's orbit is four times the diameter of planet n°1's orbit.
  • And so on, the unit length being the diameter of planet n°1's orbit, the nth planet has an orbit of diameter n, n being an integer between 1 and N.
Imagine also that at some timestamp zero, all the planets are aligned at the same side of the star (yes I know, this is very improbable, but it's just a thought experiment). We define the orbital period of the first planet as unit time. "Prime times" occur when two and only two planets are aligned on the initial direction with the star: the outer planet than has a prime distance to the star (the closest planet being always planet n°1). I should make an animation to visualize this effect. As making an animation is very time-consuming, I looked for other ways to illustrate this principle and ended up with another sieve: a circle sieve. Instead of drawing concentric circles for the orbits, I shift each circle such that all are tangent at the origin (for example the location of the center of the star, see Figure 1). For each period of a planet, I successively copy its circle and place it tangentially to the right (see Figure 2 for the first periods of planet 1 and 2).
Now, as each planet is orbiting at the same speed, the first alignment along the initial direction will occur at timestamp 2. Planet 1 will have circled twice around the star and planet 2 will have circled once. Circles 1 and 2 touch at abscissa 2. Number 2 is a prime number. The next alignment on the axis will occur for planet 3. Circles 1 and 3 touch at abscissa 3 without circle 2 (see Figure 3). Number 3 is a prime number.
The next alignment will occur for planets 1, 2 and 4. Number 4 is not a prime. But number 5 is prime. We can see that easily if we draw only circles 2 and 3 (leaving out the unit circles), see Figure 4. Prime numbers can only occur at vacant places along the axis. The symmetries that show up along this axis help to design primality tests. Any prime number greater than 3 must be of the form 3*2n±1. This formula is a condensed form of the intersection of odd numbers (noted 2n +1) and non-multiples of 3 (noted 3n+{1,2}) and generates all primes between 3 and 5².

The succession of circles n°5 together with n°2 and 3 sieves out all primes between 5 and 7², see Figure 5.
I let you try it further with circles n°7. You will see patterns with concentric circles become more apparent. I like this geometric variant of Eratosthenes' sieve because symmetries can be caught with the eye and suggest prime generating formulas. For example, I came across two simple prime generating polynomials (which must have been noticed by other people because they are less powerful than Euler's P(n) = n² − n + 41):
n²+9n+1
n²+21n+1
This way of sieving has been described earlier and more extensively by physicist Imre Mikoss. Check his work at "The Prime Numbers Hidden Symmetric Structure and its Relation to the Twin Prime Infinitude and an Improved Prime Number Theorem".

Happy prime year!

Thursday, December 23, 2010

Math and Physics: Creative Arts?

My favorite approach towards math is through drawing geometric figures like circles, triangles, squares... They link the mathematical abstraction to the physical reality, whatever that may mean. They help to visualize patterns that may remain hidden when described with symbols. Doodling geometric figures allow digressive exploration of otherwise marked out paths and thus favor creative and curiosity-driven approaches towards math. Although I am not a mathematician, I practice math for my job and as a hobby. I subscribe to views expressed by G.H. Hardy in his Mathematician's Apology
I am interested in mathematics only as a creative art.
or by Paul Halmos in his Mathematics as a Creative Art
Mathematics is far closer to an art than it is to the business of equation-solving.
or by Paul Lockhart in his Mathematician's Lament
I’m just playing. That’s what math  is— wondering, playing, amusing yourself with your imagination.
Interestingly, in these quotes, math could be replaced by physics. Concerning me, it would likewise express my interest in physics. What if all of math and physics could be expressed through art? Well, it should.

Sunday, November 28, 2010

Geometric representations of higher degree binomials

A binomial is a mathematical expression with two terms, say x and y. The simplest binomial is the sum of those two terms x+y. Powers of this binomial (x+y)n are ruled by the so-called binomial theorem, which states that the coefficients of the expansion terms xpyq are given by the Pascal triangle entries. So we have:
(x+y)0 = 1
(x+y)1 = 1.x + 1.y
(x+y)2 = 1.x2+ 2.xy + 1.y2
(x+y)3 = 1.x33.x2y + 3.xy2 + 1.y3
(x+y)4 = 1.x44.x3y + 6.x2y2 + 4.xy3 + 1.y4
and so forth ...

But where do these coefficients come from? You can just be satisfied by the result algebraic calculation, or you could look for geometric representations. For instance, a nice geometric explanation is given at the www.mathaware.org site.
Geometric proof of square binomial (original at The Geometry of the Binomial Theorem, Math Awareness Month site)
Geometric proof of cubic binomial (original at The Geometry of the Binomial Theorem, Math Awareness Month site) 
For the second degree binomial, the Pascal triangle entries emerge naturally as the number of squares or rectangles with area given by the expansion terms xpyq. For third degree binomials, they emerge as the number of cubes or parallelepipeds with volume given by the expansion terms. And for higher degree binomials, they emerge as the number of hypercubes and hyperparallelepipeds given by the expansion terms, so an Euclidean geometric representation for those higher degree binomials seems impossible.

This suggested impossibility prompted me to have a closer look at geometric representations of binomial expansions. As a matter of fact a number to the fourth power x4 is just a number, but it is also a square x4 = (x2)2. And there is no impossibility in representing numbers and squares geometrically, so the suggested impossibility is only an impossibility along the common line of thought, which sees cubic expansions as volumes. Along another line of thought, which seems to have been unnoticed, cubic expansions can be seen as areas, and then geometric representations of higher degree binomials become possible. The following figures illustrate this fact for the special case where x+y is normalized to 1 (for arbitrary x+y, one just has to rescale the figure each time, the pattern remains the same).

For the binomial (x+y)1 = 1.x + 1.y, we can divide a unit square into two rectangles, one rectangle of area x and one rectangle of area y, see Figure 1.
For the binomial (x+y)2 = 1.x22.xy + 1.y2, we can divide the unit square into two squares, one of area x2 and one of area y2, plus two rectangles of area xy, see Figure 2.
For the binomial (x+y)3 = 1.x33.x2y + 3.xy2 + 1.y3, we can divide each of the previous squares and rectangles into proportions x and y, giving eight rectangles, one of area x3one of area y3, plus three rectangles of area x2y and three rectangles of area xy2, see Figure 3.

For the binomial (x+y)4 = 1.x44.x3y + 6.x2y2 + 4.xy3 + 1.y4, we can again divide each of the previous squares and rectangles into proportions x and y, giving one square of area x4, one of area y4, four squares and two rectangles (giving six) of area x2y2, four rectangles of area x3y and four rectangles of area xy3, see Figure 4.

And we could go further indefinitely, doodling areas of incrementing powers, just in 2D, without any reference to unintuitive hyperspaces.

Sunday, October 24, 2010

Explaining electron spin and Pauli exclusion principle to children

Fundamental particles are the building blocks of nature, of which the photon and the electron have the most visible impact on our everyday life. Photons are all pervasive. If they have the right energy, they can stimulate your eyes' photoreceptor cells. At other energies they will warm you up because they radiate from a warm object. Electrons are more energetic than the photons. They can either be free in space, or bound in atoms. Through their motion, they transmit motion to photons, which in turn can excite other electrons at distant places. This phenomenon, known as electromagnetism, is used in all wireless transmissions. Photons are the electromagnetic force carriers and electrons are the electromagnetic force sources.

In order to understand the behavior of photons and electrons, it is important to have analogies that help us keeping track of them. In previous posts, I mentioned some helpful analogies for photons (for example at this post on polarization). Although electrons also show wave behavior, they act a bit differently from photons. You can not stack electrons near to one another, except if they have compatible spinning motions. For spinning motions to be compatible means that the electrons must:
  • either spin at rates whose proportions are expressed with integers: for example one electron spins twice as fast as the other electron,
  • or spin in different directions, if they spin with the same velocity.
I sometimes come across situations that remind me of electrons. If you're standing in the bus or in the metro, you grip a pole to keep equilibrium. In the metro-train in my Paris suburb, the poles occur in pairs, like in the picture aside. When my children were younger, one of their favorite games was to spin around those poles. For parents, if you let your kids spin around the poles disorderedly, this game can be quite stressful, ending with fighting or crying. I used to explain to them that they had to spin like electrons in atoms. If one kid spins in one direction, the other kid needs to spin in opposite direction, in order to avoid hard clashes. I recently asked them if they could do it again so that I could put it on movie and post it to illustrate this electron analogy. But they've grown up and are now ashamed to play such games:-) So I decided to create the following simple animations that illustrate the electron spin and the Pauli exclusion principle.

Right-hand grip ruleA kid spinning around the pole is alike an electron spinning around a proton in its state of minimum energy, see Figure 1. Physicists designate the spinning direction with the help of the right hand rule. The kid of Figure 1 therefore has its spin down.

If your second kid spins in the same direction around the other pole, you can be sure that this game won't last for long. Their motions are incompatible and it ends up with a clash, see Figure 2.

If you want them to play peacefully, you need to instruct them to follow a natural rule: the Pauli exclusion principle, illustrated in Figure 3. Electrons with same spinning velocity and sharing the same space can only occur if their spins are opposite. Very useful rule to keep harmony in the family!

Thursday, October 21, 2010

Volume of a bead vs. volume of a sphere

Imagine you drill a hole through the center of a sphere. The remaining object (a bead, if we think of a little pearl with a hole) has an interesting property as pointed out by Pat Ballew on his blog at the end of this post. Whatever the radius of the initial sphere, the volume of the bead depends only on its height h (see following figure taken from Pat's blog). More precisely, its volume is the same as the volume of a sphere with diameter h. A proof of this property has been given by Pat in a later post.


As I was thinking about it, I thought about another way to prove it, inspired by Mamikon's visual calculus method.

If we think of a plane parallel to the axis of the bead and tangent to its inner cylindrical surface, the intersection of the bead and the plane is a disk of diameter h. If we now rotate the plane around the axis for a whole turn such that it remains tangent to the inner surface, the disk will also rotate a whole turn, as if it sweeps the volume of a sphere of diameter h.



Post scriptum. Afterwards I found a drawing of such a bead in Mamikon's original notes (see second page of his drawings).


Sunday, October 17, 2010

In memoriam: Georges Charpak and Maurice Allais

Time goes by and people die. And so do great scientists. There is Benoit Mandelbrot (November 20, 1924 – October 14, 2010) who developed the study of fractals, because he "decided to go into fields where mathematicians would never go because problems were badly stated". Two others, less known in the English speaking world and who are an example to me have also left us recently. I name: Georges Charpak and Maurice Allais.

Georges Charpak (March 8, 1924 – September 29, 2010) was born in the little town Dubrovytsia located in a region where the political and social situation was very complicated at that time. The region was essentially populated with Ukrainian and Yiddish speaking people. It had suffered the post-WW1 Polish-Russian war and belonged to Poland at the time of his birth. Charpak's family had the opportunity to flee to France, which saved him from later WW2 exterminations of Jews in his natal country. In France, the situation was much better, Georges calling it even "paradise". During the 1920-30s, there was a tolerant spirit in France, allowing him to make friends with people of all origin. The Nazi occupation of France during WW2 brought new dangers for him. He had to change his name to George Charpentier, entered the French Resistance, he was imprisoned, participated to mutiny in the prison, escaped the punishment fusillade for the mutineers (he heard the ball flying around his ears). He was deported to the concentration camp of Dachau and was saved from extermination again because the Nazis could use his young guy's force in Dachau instead of sending him to more severe camps. His career as an experimental physicist started after the war with a thesis on particle detectors in Frédéric Joliot-Curie's group. He excelled in building simple detectors. His wire-detectors slightly replaced the historical bubble and ionization-chambers. He further worked at CERN and one of his detectors, the multi wire proportional chamber ("not the most elegant" in his words), earned him the Nobel in 1992. He also lectured at the ESPCI, where I'm currently PhD student. Apart from this exceptional course, after his Nobel, he had the nobility of mind to start a hands-on program for elementary school students "La Main à la Pâte" (literally Hand in the dough). I am fond of such initiatives because it brings experimental physics nearer to us. It is always preferable to first discover by ourselves how Nature works before learning how to formulate its laws through math. Too often, we learn the formula of a physical law before having experimented it personally.
"If there's one thing to do, it's to engage in education." ~ Georges Charpak.

Maurice Allais (May 31, 1911 – October 9, 2010) was born earlier, before WW1. His father died in a German prison during WW1. Early loss of his father left a profound mark on the rest of his life. He devoted his life to the comprehension of all things he encountered. His passions were history, science, economics, physics. He excelled in all disciplines during his education. He had the opportunity to visit the United States in 1933 and was so impressed by the Great Depression and the inability to solve the crisis, that he studied by himself the principles that would secure economic wealth. The life-long product of this work earned him the Nobel Economics in 1988. I'm not a specialist in Economics, but as far as I understand, one of his findings (before other economists) is the Golden rule of savings rate, which states that the rate of interest a banker applies should be equal to the rate of economic growth: an equilibrium law applied to economics. At the beginning of his professional career, Maurice Allais taught economics at the Ecole des Mines. I suppose Georges Charpak, student at that same school, must have followed some of his lectures (*footnote). While Georges Charpak engaged in "normal" physics, Maurice Allais pondered over the foundations of physics. He wasn't satisfied about the interpretation of relativity and quantum theories. As a physicist, he needed to find it out for himself. In the 19th century tradition, against mainstream, he began to conduct experiments on a pendulum of his invention in order to investigate periodical fluctuations in gravity and electromagnetism and their influence by planetary motion. The interesting thing is that he found unexplained effects, among which the most famous is the "Allais effect", a deviation of the oscillatory plane of the pendulum during solar eclipses. Maurice Allais published some books in French where he details the results of his investigations. These effects remain unexplained today, likewise the Pioneer anomaly. I have no settled idea about these effects. I think that such effects suffer from capricious cosmological (photon, graviton, muon or whatever other particles) weather. One can find some seasonal regularities though. Further investigation is left to us, curious experimenters, satisfied only by what Nature teaches us.

*Update November 20, 2010: This was confirmed to me by close relatives to Maurice Allais and Georges Charpak.

Credit of the portraits of both Nobel Prize winners by Studio Harcourt Paris.

Wednesday, October 13, 2010

Follow-up of my FQXi essay: Ordinary analogues for Quantum Mechanics

Today I had the good surprise to discover the article "Quantum mechanics writ large" written by John W. M. Bush, Professor of Applied Mathematics at MIT, promoting the work of Couder, Fort et al. on the bouncing droplets. John Bush writes: "At the time that pilot wave theory was developed and then overtaken by the Copenhagen interpretation as the standard view of quantum mechanics, there was no macroscopic pilot wave analog to draw upon. Now there is."

I'm totally in line with this opinion. Quantum mechanics has macroscopic analogues which have so far nearly never been discussed and from which we would learn a lot. There has already been some discussion along with my 2009 FQXi essay. In the abstract, I wrote something similar to John Bush: "Classical physics was not sufficiently advanced to deal with macroscopic particle-wave systems at the birth of quantum mechanics. Physicists therefore lacked references to compare quantum with analogous macroscopic behaviour. After consideration of some recent experiments with droplets steered by waves, we examine possibilities to give some intuitive meaning to the rules governing the quantum world."

So, I hope this new article will gain much attention and foster discussion about macroscopic analogues for quantum behavior.