Let be the array of the binary representation of positive integer .
For example, , and .
Let be the function that returns the array of run-lengths of the given array .
For example, , and .
Let for , and be the minimum integer () such that , where denotes the length of .
Finally, let .
You can verify that , , , , and .
Find .