It is definitely trivial if binary is less than 3 bits long, there are no consecutive ’111’s there.

But what if binary is three bits, or longer – how to approach this question?

Read the rest of this entry »