Math Riddles, Murderous Maths, Notes on everyday life, Simon's sketch book

Trinagular birthday probabilities

“What is the chance that two people in a group of, say, 30 people would have their birthday on the same day?” I asked Simon as we were sitting on a bench by the river Schelde late last night, waiting for his Dad and sister to arrive by boat. The reason for this question was that one of the professors at Simon’s MathsJam club turned out to have celebrated his birthday exactly on the same day as I the week before. Besides I was afraid of Simon getting bored just sitting there, “enjoying the warm evening”. At first, I thought he didn’t hear my question and repeated myself a couple of times. Then I noticed he was so silent simply because he was completely immersed in the birthday problem.

Eventually, at that time already on Antwerp’s central square, Simon screamed with joy as he told me the formula he came up with involved triangle numbers! “It’s one minus 364/365 to the power of the 29th triangle number!” he shouted. “It’s a binomial coefficient, the choose function!”

Simon’s solution defining the probability of two people having the same birthday in a group of n people. The highlighted diagonal in the Pascal triangle are the triangle numbers. For example, 15 is the 5th triangle number. So in a group of 6 people, the probability would be 1 minus 364/365 tothe power of 15.
Milestones, Murderous Maths, Music, Piano, Simon teaching, Simon's sketch book

Simon’s Fibonacci Music Pesano Periods

Simon writes:

I have composed a piece of music based on the Fibonacci sequence, using modular arithmetic (I assigned numbers from 0-6, the remainders after ÷ by 7, to notes C-B, i.e. 1-C, 2-D, 3-E, 4-F, 5-G, 6-A, 0-B. Then I added harmonies to the left hand). I noticed that after 16 notes, the sequence comes back to where it started!

But what really amazed me, is:

> I tried the same with Lucas #s, and Double fibonacci #s, and it always came back to where it started! Not only that, but always with the same length of period as well! It’s amazing!!!!

So, when you see something like this, you try to go over to a whiteboard and prove it, right? This is exactly what I did. In the vid below, you can see my proof of why this happens. I also analyze it a bit more, by seeing what is special of the Fibonacci #s, and also try ÷ by different numbers, instead of 7.

Disclaimer: Numberphile has already done a musical piece based on the Fibonacci numbers and a discussion of Pesano periods. What’s specific to my video:

* Trying different fibonacci-style sequences
* Proof
* What’s then special about the Fibonacci #s
* Making a table of different divisors
* (And, mathematics-aside, doing my composition in a more mathematical way, by being more strict about the melody)

Simon’s original score
Coding, Community Projects, Contributing, Notes on everyday life, Python, Simon teaching, Simon's Own Code, Together with sis

Drawing with Turtle

Here we are, on the day of my 40th birthday, while recording a lesson of drawing with turtle in Python. It was meant to be my birthday present, a beginner-friendly hour of code, in which Neva would also be able to take an active part. We ended up recording two beautiful sessions only to find out later that our screen capture video was irreparably corrupted (never record in mp4 in OBS). Simon was inconsolable. We also thought this webcam recording was gone but rediscovered it a day later. So nice to have it as a memory.

And I’m relieved to say that we have managed to redo the whole project from scratch today (sadly without Neva’s participation this time as she had better things to do, so I look rather redundant sitting there next to Simon giving the lesson). Once Simon is done with the editing (which is another two days of work I’m afraid), he will upload the hour of code on YouTube. He also plans to create a website for this project to enable his “students” to draw in a built-in application.

From our session today:

And here is an example of Simon drawing with turtle for his own pleasure, a Serpinski triangle in Python (a few days ago):

Coding, JavaScript, Math Riddles, Murderous Maths, Simon makes gamez, Simon teaching, Simon's Own Code

Cat and Mouse

This is a project that Simon started a few weeks ago but never finished, so I think it’s time I archive it here. It’s based upon this wonderful Numberphile video, in which Ben Sparks shows a curious math problem – a game of cat and mouse – in a computer simulation he’d built. The setting is that the mouse is swimming in a round pond and is trying to escape from a cat that is running around the pond. What is the strategy that the mouse should apply to escape, considering that it swims at a quarter of the speed the cat runs?

Simon came up with his own code to recreate the simulation from the Numberphile video. In the four fragments I recorded, he showcases what he has built. Please ignore my silly questions, at the time of the recording I hadn’t viewed the Numberphile video yet and had no idea what the problem entailed.

Codea, Coding, Experiments, Math Tricks, Murderous Maths, Simon's Own Code, Simon's sketch book

Chaos Game and the Serpinski Triangle

Monday morning Simon showed me the Chaos Game: he created three random dots on a sheet of paper (the corners of a triangle) and was throwing dice to determine where all additional dots would appear, always half-way between the previous dot and one of the corners of the triangle.

Very soon, he found it too much work to continue and I though he gave up. Later the same day, however, he suddenly produced the same game in Codea, the points filling in much faster than when he did it manually, yet following exactly the same algorithm. To my surprise, what resulted from this seemingly random scattering of dots was a beautiful Serpinski triangle.

How come a dot never happens inside one of the black triangles in the middle? – I asked.
Sometimes you start there, but the next dot (half-way towards one of the corners) is already outside the black triangle, Simon showed. (The screenshot above is of such an occurance. If you look carefully, you will see a dot in the middle).
Murderous Maths, Milestones, Notes on everyday life, Simon teaching, Simon's sketch book, Logic, Set the beautiful mind free, Computer Science

Why mathematics may become computer science

Walking home from the swimming pool (where he and Neva had been jumping into the water exactly 24 times, calling out all the permutations of 1,2,3 and 4), Simon suddenly stopped to tell me that some day, mathematics may become engulfed by computer science. Apparently, this was what he was thinking about the whole time he kept silent on the way. Once we got home I sat down to listen to the elaborate proof he had coined for his hypothesis. Here is comes, in his own words:

Someday mathematics may become computer science because most of mathematics uses simple equations and stuff like that, but computer science uses algorithms instead. And of course, algorithms are more powerful than equations. Let me just give you an example.

There’s this set of numbers called algebraic numbers, and there’s this set of numbers called computable numbers. The algebraic numbers are everything you can make with simple equations (finite polynomials), so not like trig numbers, which are actually infinite polynomials, just simple finite equations with arithmetic and power. Computable numbers, however, are a set of numbers that you can actually make with a finite algorithm. It may not represent a finite equation, but the rules for the equation have to be finite. So the algorithm that generates that equation has to be finite. It’s pretty easy to see that every algebraic number is by definition computable. Because the algorithm would just basically be the equation itself.

Is every computable number algebraic? Well, we can easily disprove that. It took very long to prove that Pi is not algebraic, that it is transcendental, as it’s called. But Pi is computable, of course, because, well, that’s how we know what Pi is, to 26 trillion decimal places. So there you go. That’s a number that is computable but not algebraic. So the Euler diagram now looks like this:

Simon drew this illustration later the same evening, when he presented his proof in Russian to his grandma via FaceTime

Now we look back at the beginning and we see that algebraic numbers have to do with equations and computable numbers have to do with algorithms. And because the set of all algebraic numbers is in the set of all computable numbers as we’ve just proved, the set of computable numbers will have more numbers than algebraic numbers. We have given just one example of how algorithms are more powerful than equations.

What about the mathematics that deals with numbers that are incomputable? – I asked.

Well, that’s set theory, a different branch of mathematics. I meant applied mathematics, the mathematics that has application.

Coding, Milestones, Murderous Maths, Python, Simon teaching, Simon's Own Code, Simon's sketch book

The Van Eck Sequence

Simon explains that the Van Eck Sequence is and shows the patterns he has discovered in the sequence by programming it in Python and plotting it in Wolfram Mathematica. Simon’s project in Wolfram is online at: https://www.wolframcloud.com/objects/4066d93a-893b-4a99-9fdc-54e265d27888

He also shows Neil Sloane’s proof of why the sequence is not periodic and adds an extra bit to make the proof more complete.

This video is inspired by the Numberphile video about the Van Eck sequence.

Simon’s code in Python to generate the Van Eck sequence
Contributing, Milestones, Murderous Maths, Museum Time, Physics, Trips

The Brachistochrone

Simon believes that he has found a mistake in one of the installations at the Technopolis science museum. Or at least that the background description of the exhibit lacks a crucial piece of info. The exhibit that allows to simultaneously roll three equal-weight balls down three differently shaped tracks, with the start and the end at identical height in all the three tracks, supposes that the ball in the steepest track reaches the end the quickest. The explanation on the exhibit says that it is because that ball accelerates the most. Simon has noticed, however, that the middle track highly resembles a cycloid and says a cycloid is known to be the fastest descent, also called the Brachistochrone Curve in mathematics and physics.

In Simon’s own words:

You need the track to be steep, because then it will accelerate more – that’s right. But it also has to be quite a short track, otherwise it takes long to get from A to B – which is not in the explanation. It’s not the steepest track, it’s the balance between the shortest track and the steepest track.

Galileo Galilei thought that it is the arc of a circle. But then, Johan Bernoulli took over, and proved that the cycloid is the fastest.

The (only) most elegant proof I’ve seen so far is in this 3Blue1Brown video: https://www.youtube.com/watch?v=Cld0p3a43fU

There’s also a VSauce1 video, where they made a mechanical version of this (like Technopolis): https://www.youtube.com/watch?v=skvnj67YGmw

Wikipedia Page: https://en.wikipedia.org/wiki/Brachistochrone_curve

We’ve also made some slow motion footage of us using the exhibit (you can see that the cycloid is slightly faster, but as far as I can tell, it’s not precision-made, so it wasn’t the fastest track every time): https://www.youtube.com/watch?v=5Brub0FnpmQ

I hope that you could mention the brachistochrone/ cycloid in your exhibit explanation. I don’t think you can include the proof, because for such a general audience, it can’t fit on a single postcard!

Exercise, Experiments, Notes on everyday life, Physics, Simon teaching, Together with sis, Trips

A lot of fluid dynamics at Technopolis

Today we celebrated my 40th birthday with a family trip to Technopolis, a mekka for science-minded kids in the Belgian town of Mechelen. (Technically, my real birthday is in two days from now, but I have messed with the arrow of time a little, to speed things up).
The entrance to the museum is adorned with a red lever that anyone can use to lift up a car!
Simon and Neva lifting up the car
The beautiful marble run and math and physics demo in one
Galton’s board and Gaussian distribution
Simon explaining the general relativity demo, which is part of the marble run
This was probably the winner among all the exhibits: a wall to climb with a mission (Simon figured it out rather quickly – one had to turn “mirrors” to change the direction of light (green projection) and have the light rays extinguish the targets.
Simon tried to explain this to other children, but they only seemed to want to climb. It was sad to see how no one cared to listen (well, except for Neva of course).
Simon was already familiar with this optical illusion. Later he saw another version of this on an Antwerp facade.
The logic gates were too easy.
the center of gravity
Huge catenaroids! Something Simon had already demonstrated to us at home, but now in XXL!
cof
And huge vortices! Another passion.
Hydrodynamic levitation! Hydrodynamic levitation!
Look! A standing wave!
And another standing wave!

Here Simon explains one more effect he has played with at home, the Magnus effect.

Exercise, Math Riddles, Murderous Maths, Notes on everyday life, Simon teaching, Simon's sketch book, Together with sis, Trips

Math on the Beach

Sunday at the beach, Simon was reenacting the 5 doors and a cat puzzle (he had learned this puzzle from the Mind Your Decisions channel). The puzzle is about guessing behind which door the cat is hiding in as few guesses as possible, while the cat is allowed to move one door further after every wrong guess.

the little houses served as “doors”, and Simon’s little sister Neva as “the cat”

“Here’s a fun fact!” Simon said all of a sudden. “If you add up all the grains of sand on all the beaches all over the world, you are going to get several quintillion sand grains or several times 10^18!” He then proceeded to try to calculate how many sand grains there might be at the beach around us…

In the evening, while having a meal by the sea, Simon challenged Dad with a Brilliant.org problem he particularly liked:

Simon’s explanation sheet (The general formulas are written by Simon, the numbers underneath the table are his Dad’s, who just couldn’t believe Simon’s counterintuitive solution at first and wanted check the concrete sums. He later accepted his defeat):