# Mathspp Blog

### A blog dedicated to mathematics and programming!

This blog has a really interesting assortment of articles on mathematics and programming. You can use the tags to your right to find topics that interest you, or you may want to have a look at

You should also subscribe to the blog newsletter.

##### TIL #017 – symmetrical indexing with bitwise inversion

Today I learned about the symmetry in indexing from the beginning and end of a list with the bitwise invert operator.

##### Problem #029 - hidden key 2 🗝️🗝️

This problem is a step up from Problem #028 - hidden key. Can you tackle this one?

##### Problem #028 - hidden key 🗝️

There is a key hidden in one of three boxes and each box has a coin on top of it. Can you use the coins to let your friend know where the key is hiding?

##### Problem #024 - hats in a line

Some people are standing quiet in a line, each person with a hat that has one of two colours. How many people can guess their colour correctly?

##### Twitter proof: size of the set of subsets of a set

Let's prove that, if a set has size $$n$$, then that same set has exactly $$2^n$$ subsets.

##### Problem #005 - number me right

This post's 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!