mathspp blog

408 443,826 37,138
articles words lines of code

This post gives you the code to mess around with "Tupper's self-referential formula", a formula that plots itself.

This post shows how fractals occur naturally in broccoli, one of my favourite vegetables.

Can you cover all of the rational numbers in [0, 1] with tiny intervals?

Split the numbers 0, 1, ..., 15 into two sets with sum interesting properties!

Can you find out how many carriages this circular train has?

How often do the hands of a clock overlap?

How can 2018 monks find eternal peace?

In high school I had a colleague that had his birthday on the same day as I did. What a coincidence, right? Right..?

How can 4 friends guess their own hat colours?

How can a greedy pirate captain keep his treasure to himself?

Given some paper squares, can you slice them and then glue them back together to form a single square?

Is it true that every integer you can think of has a multiple written out only with \(0\)s and \(1\)s?

I find the problem in this post rather fun to think about because it is a problem about a game that can actually be played between two players.

In this post we will talk about three different, all very common, ways of writing proofs: proofs by construction, by contrapositive and by contradiction.

This problem is a really interesting problem I solved two times. The first time I solved it I failed to prove exactly how it works... then some years later I remembered the problem statement and was able to solve it properly. Let's see how you do!

I have always loved solving mazes... so naturally I had to write a program to solve mazes for me!

HueHue is a very colourful game I wrote with my colleague @inesfmarques.

In this post I talked about the riddle of the water buckets. Now I challenge you to prove that in some situations it is impossible to solve it!

Can you measure exactly \(2\)L of water with two plain buckets with volumes of \(14\)L and \(5\)L? Of course you can!

A regular expression, without much rigor, is a very compact way of representing several different strings. Given a regular expression (regex), can I find out all the strings the regex can find?