Author |
Topic: Palindrome (Read 1598 times) |
|
dsd
Newbie
Gender:
Posts: 1
|
Hello everyone!!! could you guy takes a look at this problem for me I'm totally lost... thnx... A palindrome is a number that reads the same forwards as backwards. Give the next three palindrome number after a1a8a6a3a2a4a8a8 that are divisible by 3, and explain your method for finding them. (For example, the next palindrome number after 119 is 121, and the next after that is 131, etc. Do not count leading O's as part of a number.) next three:___________________________ How did you find them?? Explain please.......
|
« Last Edit: Mar 6th, 2010, 2:34am by dsd » |
IP Logged |
|
|
|
Grimbal
wu::riddles Moderator Uberpuzzler
Gender:
Posts: 7527
|
|
Re: Palindrome
« Reply #1 on: Mar 8th, 2010, 2:03am » |
Quote Modify
|
on Mar 6th, 2010, 12:52am, dsd wrote:what do you mean by this? Quote:(For example, the next palindrome number after 119 is 121, and the next after that is 131, etc. |
| But 121 and 131 are not divisible by 3. The trick would be to take the first half of the digits and create a sequence from that. The rest is just a mirror image. For example, starting from 339374545 you take the first half (rounded up) 33937 and start counting 33937 -> 339373933 33938 -> 339383933 33939 -> 339393933 33940 -> 339404933 33941 -> 339414933 then make sure the first is > the initial number and keep only the multiple of 3.
|
|
IP Logged |
|
|
|
|