parallel_chase wrote:It has to be 136.
Let simplify the question how many integers from 1-20 inclusive are divisible by 2 or by 3 but not by both.
Total integers = 20-1+1 =20
divisible by 2 = 20/2=10
divisible by 3 = 20/3 = 6
divisible by both i.e. 6 = 20/6 = 3
10+6-3 = 13
If you actually note down the numbers n check there are 10 and not 13 numbers that are divisible by 2 or 3 and not 6 (2,3,4,8,9,10,14,15,16,20)
we have to deduct 3 from both 10 and 6 separately hence kshankker's reasoning is correct IMO.
So in the actual question it should be (100-9)+(45-9) [which is the same as 100+45-18]
Hence the answer IMO should be 127.