Find the largest six-digit palindrome (a number that reads the same forwards and backwards) that is divisible by .
Write the general six-digit palindrome. It has the digit pattern , so
Only , , are free — three digits, not six.
Split 45 into coprime factors. Since and , the number must be divisible by and by . These give two independent digit conditions.
Apply divisibility by 5 to pin down . The last digit must be or . In a palindrome the last digit equals the first, and the first digit of a six-digit number cannot be . Therefore
Apply divisibility by 9 to constrain . The digit sum is
This must be a multiple of . Since , the factor of can be dropped:
so or (the only values reachable with two digits).
Maximise place value from the left. With fixed at , the next most significant free digit is , so take . Then requires , giving :
Verify both divisibility conditions. Digit sum: , and . Last digit . Directly:
A scan downward through all six-digit palindromes confirms nothing larger works, so is the answer.
Need to solve a different problem like this? Open the solver →