TCS
Company
Numerical Ability
Permutation and Combination
Find the total numbers of palindrome between 4200 and 19000?
Read Solution (Total 5)
-
- for palindromes, the sequence of digits needs to be the same when read from either side, therefore if the first digit is 4, the last digit should also be 4.
The first palindrome in the range will be 4224 and then 4334, 4444 and so on. therefore in the range 4200 and 5000, we have 8 palindromes.
The next range will be 5000-6000 in which we have 10 palindromes
The next range will be 6000-7000 in which we have 10 palindromes
The next range will be 7000-8000 in which we have 10 palindromes
The next range will be 8000-9000 in which we have 10 palindromes
The next range will be 9000-10000 in which we have 10 palindromes
Now once we get in the range 10000-19000 the number contains five digits
Since the first digit is 1, the last digit is bound to be 1.
After this we have 1-_-_-_-1
The second and the fourth digit will be the same and can take values from 0 to 8
The third digit can be filled in 10 ways.
Therefore we have 10x9= 90 palindromes in this range
Hence, total palindromes= 8+10+10+10+10+10+90= 148
- 10 years agoHelpfull: Yes(37) No(1)
- palindrome is a number that is the same when seen from both front and end.
there are 8 such numbers between 4200-5000.. 4224, 4334, 4444, 4554, 4664, 4774, 4884, 4994
similarly 5000-6000 has 10 palindromes.. 5005, 5115, 5225, 5335, 5445, 5555, 5665, 5775, 5885, 5995
therefore 5000-10000 has 50 palindromes
now the first palindrome after 10000 is 10001..
considering all arrangements,
1 _ _ _ 1 have three places in between
1st and 3rd digit have to be same for the number to be a palindrome
there can be 9 numbers here (0-8); not 9 as it will become greater than 19000.
the middle digit can be 0-9
number of palidromes =9x10= 90
total number= 8+50+90=148 - 10 years agoHelpfull: Yes(7) No(0)
- for palindromes, the sequence of digits needs to be the same when read from either side, therefore if the first digit is 4, the last digit should also be 4.
The first palindrome in the range will be 4224 and then 4334, 4444 and so on. therefore in the range 4200 and 5000, we have 8 palindromes.
The next range will be 5000-6000 in which we have 10 palindromes
The next range will be 6000-7000 in which we have 10 palindromes
The next range will be 7000-8000 in which we have 10 palindromes
The next range will be 8000-9000 in which we have 10 palindromes
The next range will be 9000-10000 in which we have 10 palindromes
Now once we get in the range 10000-19000 the number contains five digits
10101,10201,..............10901 and 11111,12121,13131,..........19191====>18
hence 9*18=162
total =8+60+162==>230 - 10 years agoHelpfull: Yes(2) No(5)
- total 4 digit number will be 4*7=42
total 5 digit number up to 19000=1*9*10=90
so total palindrom=132 - 10 years agoHelpfull: Yes(0) No(7)
- Answer is 221
The first palindrome in the range will be 4224 and then 4334, 4444 and so on. therefore in the range 4200 and 5000, we have 8 palindromes.
The next range will be 5000-6000 in which we have 10 palindromes
The next range will be 6000-7000 in which we have 10 palindromes
The next range will be 7000-8000 in which we have 10 palindromes
The next range will be 8000-9000 in which we have 10 palindromes
The next range will be 9000-10000 in which we have 10 palindromes
Now once we get in the range 10000-19000 the number contains five digits
10101,10201,..............10901 and 11111,12121,13131,..........19191====>18
hence 9*18=162
Now 162+1(for 10001)=163
Total=8+50+163=221
- 10 years agoHelpfull: Yes(0) No(4)
TCS Other Question