Why does this property hold true?
say the kth bit from right side is the first set bit in number \'x\'. (x-1) will toggle every bit upto kth bit from r
It's the same reason if you do (x-1) where x is a base 10 integers all the zeros (if any) on the right will become nines.
9324930000000 - 1 = 9324929999999