This is one of those interesting items that is truly deserving of the headline "Neat Trick."
It reminds me of a card trick that I learned as a child that appeared to work by magic, but instead worked every time because it involved something complex going on involving math.