Step: Find the value of M
Given number: 46M46
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 =4+6+M+4+6
=20+M
The number which is divisible by 3 next to 20 is 21.
So, the required number =21−20 =1
Hence, the value of M is 1.