Oohh sorry i had misread the problem statement . I thought the dot ‘.’ In the expression stands for bitwise and operator … But it was the simple product …
Thank you so much for giving ur precious time for it
See the input is an odd integer, we know all odd numbers will have 1 in its LSB and even’s will have 0 in LSB. Now, we have to perform the given on operation on two integers the output has to be the number which is given as an input. We know any number multiplied by 1 result is same number by using this, we try to make one of the expression as 1, so we choose (x^y) because we can make it 1 if we choose two consecutive numbers the reason for this is in every two adjacent numbres one is even and other is odd and they mostly differ by one bit and that one is that LSB so it result to 1. and the number is used to perform OR operation which results with greater number in that two adjacent numbers so we take num and num-1 as the required answer. Hope you understand, have a nice day. All the best😊