![]() |
PR 4 # 29
Find a five digit number whose first two digits, central digit, and last two digits are perfect squares and whose square root is a prime palindrome.
|
I won't give the answer but will say that this is easily solved using excel.
My slightly corrupted answer is [spoiler]911[/spoiler]. Fusion |
A little dilligence
[spoiler] If the square root is a three digit prime palindrome it starts with either 1 or 3 (because otherwise its square would not be 5 digits). The highest two digitsquare is 81 so we can immediately exclude 3 which leaves 4 numbers to check: 131, 151, 181 and 191. For the last to digits of its square to be square, we need it to end on 01 or 81. Which leaves 151 and 191. We can see immediately that 151^2 would give its first two digits between 16 and 25 so our only candidate is 191. Checking gives 36481...:whistle:
Obviously, excel is faster in this kind of puzzles [/spoiler] |
Kees
[QUOTE=Kees][spoiler] which leaves 4 numbers to check: 131, 151, 181 and 191. [/spoiler][/QUOTE] I got to the answer following the same reasoning as you, but I trial multiplied the last four numbers to get the right one. :sad: How did you get from the ten cases to four? not all are obvious non-candidates. thanks Richard |
Here is the method I used with Excel. Its a combination of brute force and logic.
I put the following into the cells indicated: a1 - 1 a2 - =A1+1 b1 - =A1^2 b2 - =A2^2 I pasted down the values in A2 and b2 to the next 500 rows and then copied columns a and b and pasted special values to eliminate the formulas. The smallest 5 digit square was at 100 and the largest was at 316. I deleted all other rows keeping the remaining 217 rows. A quick look showed that the there were several numbers that started with 2 but since all palindromes that started with 2 would end with 2 and therefore be composite, I deleted all numbers starting with 2. I then looked at the 17 numbers that started with 3 and saw that they were all above 90,000. Since the largest 2 digit square is 81 and since 90 is larger than 81, I eliminated all numbers that started with 3 which left me with 100 numbers that started with 1. The next step was to eliminate all non-palindrome numbers. This left me with 101, 111, 121, 131, etc. A quick look showed that there were only 2 numbers left with 5 digit squares that started with a 2 digit square. These were 161 and 191. Since 161 squared did not end with a 2 digit square, and since 191 squared did end with a 2 digit square, I then verified the center digit in 191 was a square and had the answer. It took less than 2 minutes to solve it this way. Fusion |
| All times are UTC. The time now is 05:18. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.