# Mathspp Blog

364 401,576 33,251
articles words lines of code
##### Base conversion in Python

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.

##### Problem #027 - pile of coconuts 🥥

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..?

##### Problem #018 - circle of hats

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

##### Problem #007 - binary multiples

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

##### Problem #004 - solvability of the water buckets

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!