Positive integer is given. You are allowed to make an infinite number of permutations of its significant bits, thus obtaining new numbers.
What is the greatest difference between two such numbers that can be obtained as a result of these operations?
One positive integer , 1 \le n \le 2 \cdot 10^{9}.
One number — the "big difference".
Exemplul 1
Exemplul 2
Exemplul 3