Step: Find the value of M
Given number: 27M53
A number is divisible by 3 if the sum of its digit is divisible by 3 or multiple of 3.
Here, the sum of digits =2+7+M+5+3
=17+M
The number which is divisible by 3 next to 17 is 18.
So, the required number =18−17 =1
Hence, the value of M is 1.