@hsbhatt sir
Please examine my explanation and tell me if I am wrong:
It is discontinuous at rational numbers as proved by you
Now we know between every 2 rational numbers there is an irrational number and irrational numbers in (0,1) will look like:
0.1625388946294738...........................till infinite number of decimals and non repeating
Now if an rational number approaches this irrational number then it will look like:
0.1625388946294738........................... but it will end at some point (unlike the irrational number above)
so if we express this in the form of p/q where p and q are integers, q != 0 and gcd of p and q is 1 then p------>infinty and q also -------> infinty
So 1/q tends to zero. So since
and function = 0 at irrational numbers it is continuous at irrational numbers