How many palindromes are there among the first 1 million whole numbers?
mhmm
2008-05-26 07:35:20 UTC
A palindrome is a word, line, number, or sentence that reads the same backward as forward. The first ten digits- 0, 1, 2..,9- are palindromes, but 10 is not. How many palindromes are there among the first 1 million whole numbers?
Three answers:
Natengall
2008-05-26 07:51:34 UTC
The answer is 1999, I've created a JAVA program in order to figure it out. Here are the results:
http://www.geocities.com/natengall/mhmm.htm
anonymous
2008-05-26 14:44:23 UTC
That's a cool question. Let's add em up.
All one digit numbers are palindromes so 9
Only doubles are palindromes for 2 digit numbers so 9
WIth three digit numbers there are 9 choices for the first and last digits which go with 10 possible numbers for the middle one so 90
Four digit numbers work the same as 3 digit numbers so another 90
Five digit numbers there are 9 possible outside numbers combined with 10 possible inside numbers and 10 possible middle numbers so another 900
Six digits works the same as five so another 900
And 1,000,000 is not a palindrome so that's where we stop. My answer then is 1998 (provided I've added that up correctly.
Beaver1224
2008-05-26 14:45:09 UTC
I believe you'll find 1999 palindromic whole numbers under 1m.
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.