If a nine-digit number 1263487xy is divisible by both 8 and 5 then, the greatest possible values of x and y, respectively, are:
Show answer & explanation
Correct answer: B
Explanation
The correct answer is option 2 i.e. 6 and 0.
To be divisible by 8, the number formed by the last three digits of the number should be divisible by 8
To be divisible by 5, the last digit of the number must end with 0 or 5
For y = 5, 0
If we put y = 5, the number becomes odd. An odd number is not divisible by 8
So, the value of y must be 0
For x = 1, 2, 3, 4, 5, 6, 7, 8, 9
By taking x = 1, 3, 4, 5, 7, 8, 9 and it leaves remainders when the last three digits are divided by 8
Hence, x cannot take these numbers
By putting x = 2 or 6 and dividing the last three digits by 8, the remainder becomes 0
But for the maximum value of x, we put x = 6
Hence, x = 6 and y = 0