Power of two: https://en.wikipedia.org/wiki/Power_of_two Any power of 2 minus 1 is all ones: (2 ^ N - 1 = 111....b).