Find the smallest and the greatest digit so that the number formed is divisible by given divisor:
A number is divisible by if the difference of the sum of digits at even places and sum of digits at odd places is or a multiple of .
Sum of digits at odd places is
Sum of digits at even places is
Difference is
So, if we write in the space then it will be the smallest digit so that the number formed is divisible by given divisor.
As, we have to write a single digit so after till there will be no other number which could be placed to have a difference of or a multiple of .
Therefore, the largest digit also will be