I had similar experiences as a child when I learned of various puzzling phenomena in science and mathematics. The amazement only deepens when I became older and understood the reasons behind the magic. Let me delineate some examples here.

1. My first computer was a Commodore VIC-20. This is a wonderful machine with features that were quite advanced at the time for a home computer. It outputs in color and has polyphonic sound capabilities. During one of our experiments with sound, my brother and I made two of the sound generators generate tones at frequencies that are almost the same. The result was surprising and quite remarkable to us! We heard a sound whose intensity undulates, like a siren. It is magical how the superposition of two pure tones can create such a strange sound effect. Only year later did I discover that this is a phenomena known as beat frequencies. Mathematically, we can expressed the pure tones generated by the sound generator as a sinusoidal wave of the form sin(2π x frequency x t). The summation of two sinusoidal waves is an exercise in high school trigonometry:

sin(a) + sin(b) = 2sin(0.5(a+b))cos(0.5(a-b))

Given two tones of different frequencies, their superposition results in:

Given two tones of different frequencies, their superposition results in:

sin(2π f1 t) + sin(2π f2 t) = 2sin(2π 0.5(f1+f2)t)cos(2π 0.5(f1-f2)t)

Thus the result is a sinusoidal wave whose frequency is the average of f1 and f2 with the magnitude modulated by a sinusoidal wave of frequency 0.5(f1-f2). If f1 and f2 is close enough and the difference |f1-f2| is small enough that the magnitude modulation is at a frequency that we can distinguish aurally, then this is what the siren-like undulation of the amplitude is about. This is shown in the following figure where the second waveform has a frequency that is 10% higher than the first waveform and the sum of these two sinusoidal waves of slightly different frequencies is shown at the bottom of the figure:2. In a series of books to introduce young children to science and mathematics, I found an article that was truly amazing to me. It describes a simple device for measuring distances between you and a far away object. Most of the time we measured distances using a ruler or a tape measure, but that is not feasible for far away objects. There are sonar measurement devices that bounces ultrasound off an object and measure the time it took for the sound to come back, but that is too high tech. No, this device was simply

To measure the distance from you to, say a tree, you hold the paper with your outstretched arms and close your right eye. You line up the tree with the reference mark "0". Then you close your left eye and open your right eye. The position of the tree on the paper will be the distance. It is as simple as that! Pure magic! The underlying principle behind this cute little device is the parallax principle and can be described in the following bird's eye view (pardon my crude drawing skills):

In essence, your right eye and your left eye will line up the tree with the paper at different spots. How far the markings on the papers need to be is simply a matter of trigonometry. The parameters you need will be the length of your arms

Such an elegant solution to the problem of measuring distances. One drawback of this approach is that the resolving power decreases as the distance increases. As D → ∞, we see that p → s, i.e. all the lines on the paper are bunched up towards the end.

3. Once upon a time, I spend my summers working for a family friend's grocery store and restaurant and there was an avuncular gentleman there who proposed the following enticing offer. He said: "I'll give you Nafl. 100 (Nafl or Florin is the official currency of the Netherlands Antilles) if you can solve the following problem. There are 3 houses and 3 utilities (electricity, water and gas). Each house needs a connection to all 3 utilities. Draw me a set of lines connecting each of the 3 houses to each of the 3 utilities without any of the lines crossing each other."

This seems simple enough. So I spent the next couple of weeks trying to solve this problem, drawing maps on reams of scratch paper. Trying hard as I might, I cannot come up with a solution. It was very frustrating because many times I thought I had the solution, and only not being able to place one final connection. Now I know that the problem is impossible. In mathematical terms, the graph I am trying to draw is the complete bipartite graph K

4. One interesting math trick I learned was how to take fifth root of large integers. The trick goes as follows. Ask your friend to pick a 2 digit number and input that into a calculator. Then raise that number to the fifth power and show you the answer. Within seconds, you can tell your friend which 2 digit number he or she picked. The main ingredient of the trick is the fact that any integer raised to the fifth power has the same last digit as itself. This interesting number theoretical fact is actually easily shown using basic number theory. In mathematical terms, the result we are trying to show is

*a piece of paper with markings on it*!To measure the distance from you to, say a tree, you hold the paper with your outstretched arms and close your right eye. You line up the tree with the reference mark "0". Then you close your left eye and open your right eye. The position of the tree on the paper will be the distance. It is as simple as that! Pure magic! The underlying principle behind this cute little device is the parallax principle and can be described in the following bird's eye view (pardon my crude drawing skills):

In essence, your right eye and your left eye will line up the tree with the paper at different spots. How far the markings on the papers need to be is simply a matter of trigonometry. The parameters you need will be the length of your arms

*L*(or more accurately the distance from your eyes to the paper) and the distance between your eyes*s*. In particular, the congruent triangles show that the distance to the object*D*is related to the distance*p*on the paper between the left and right eye view via the following equation p = s(D-L)/D.Such an elegant solution to the problem of measuring distances. One drawback of this approach is that the resolving power decreases as the distance increases. As D → ∞, we see that p → s, i.e. all the lines on the paper are bunched up towards the end.

3. Once upon a time, I spend my summers working for a family friend's grocery store and restaurant and there was an avuncular gentleman there who proposed the following enticing offer. He said: "I'll give you Nafl. 100 (Nafl or Florin is the official currency of the Netherlands Antilles) if you can solve the following problem. There are 3 houses and 3 utilities (electricity, water and gas). Each house needs a connection to all 3 utilities. Draw me a set of lines connecting each of the 3 houses to each of the 3 utilities without any of the lines crossing each other."

This seems simple enough. So I spent the next couple of weeks trying to solve this problem, drawing maps on reams of scratch paper. Trying hard as I might, I cannot come up with a solution. It was very frustrating because many times I thought I had the solution, and only not being able to place one final connection. Now I know that the problem is impossible. In mathematical terms, the graph I am trying to draw is the complete bipartite graph K

_{3,3}and this is impossible to draw on a piece of paper without some lines crossing each other since the graph K_{3,3}is not planar. In fact the graph K_{3,3}is an important part of the necessary and sufficient conditions for a graph to be planar.4. One interesting math trick I learned was how to take fifth root of large integers. The trick goes as follows. Ask your friend to pick a 2 digit number and input that into a calculator. Then raise that number to the fifth power and show you the answer. Within seconds, you can tell your friend which 2 digit number he or she picked. The main ingredient of the trick is the fact that any integer raised to the fifth power has the same last digit as itself. This interesting number theoretical fact is actually easily shown using basic number theory. In mathematical terms, the result we are trying to show is

x

^{5}≡ x mod 10It is clear that the fifth power of an even number is even and the fifth power of an odd number is odd, i.e.

x

^{5}≡ x mod 2According to Fermat's (little) Theorem (not to be confused with the celebrated Fermat's Last Theorem that took more than 350 years to solve):

x

^{5}≡ x mod 5Since 2 and 5 are relatively prime, this implies that x

^{5}≡ x mod 10.To complete executing the trick, one needs to memorize the fifth powers of 10, 20, ..., 90. Because raising a number to the fifth power is a monotonically increasing operation, this allows one to determine between which of the 2 decades the 2 digit number lies and thus determine the first digit of the number. The last digit one would read off from the last digit of the fifth power.