Mathspp Blog

342 391,958 32,910
articles words lines of code

This article shows how to do base conversions in Python with the built-in int, how to write integer literals in other bases, and how to do base conversions in general.

Five sailors and their monkey were washed ashore on a desert island. They decide to go get coconuts that they pile up. During the night, each of the sailors, suspicious the others wouldn't behave fairly, went to the pile of coconuts take their fair share. How many coconuts were there in the beginning..?

\(n\) mathematicians with numbered party hats gather around in a circle... It is a matter of life or death!

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

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!