Ben has just moved to Kuala Lumpur ( the capital of Malaysia ) and he wants to buy a new car.Of course,he needs a license plate for his car otherwise he can't use it :) The license plate numbers in Kuala Lumpur are of the form where represents any number from 1 to 9999 and represents any letter from A to Z ( example : W 8888 A ).Ben wants a license plate number that is the same whether it is read from left to right or right to left because he thinks that is lucky. The chance that he gets a number with the above properties can be represented as .Find .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
First, we find the total number of possible license plate numbers which is 9 9 9 9 × 2 6 .Then, we find the total number of license plate numbers which satisfy Ben's conditions.
We know that the last letter has to be W because the number is the same whether read from left to right or right to left.Then, we only need to find the number of palindromes between 1 and 9999.
All 1-digit numbers except 0 are palindromes so there are 9 1-digit palindromes.Any 2-digit palindrome must be in the form of 1 1 × x , and there are 9 possibilities for x so there are 9 2-digit palindromes.
3-digit palindromes ( in the form of a b a )are a little harder. Because there are no restraints on the value of the digit in the middle ( b ), there are 10 possibilities.For the other digits,there are 9 possibilities so there are 9 × 1 0 = 9 0 3-digit palindromes.
4-digit palindromes are in the form of a b b a , where a = 0 .So,there are 99 possibilities ( 1 - 99 ) but the first 9 of them have a = 0 ,so they cannot be accepted.Then, we subtract to get 9 9 − 9 = 9 0 4-digit palindromes.
So,the chance of a random license plate number satisfying Ben's conditions is 9 9 9 9 × 2 6 ( 9 + 9 + 9 0 + 9 0 ) = 2 5 9 9 7 4 1 9 8 = 1 3 1 3 1 .So a = 1 , b = 1 3 1 3 and b − a = 1 3 1 2 .