All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Just Math
Extreme Palindrome Exercise (Posted on 2016-04-11) Difficulty: 2 of 5
Determine the respective smallest and largest 3-digit palindromes in base 2017 each of which is divisible by 7.

*** Leading zeros in any of the palindromes is not allowed.

See The Solution Submitted by K Sengupta    
Rating: 5.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution agree Comment 3 of 3 |
ABA in base 2017 is (2017^2 + 1) * A + 2017 * B.

2017 is 1 mod 7; we need the total to be zero mod 0.

For the largest we wand A to be as large as possible: 2016, which is already zero mod 7; we might as well make B 2016 also. The digits are all 2016.

For the smallest, remember that  (2017^2 + 1) is 2 mod 7.  If A is 1, to make ABA small, B must be 5 mod 7, or just plain 5. We have 151. In decimal that's  582625.

  Posted by Charlie on 2016-04-11 10:16:10
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (3)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information