Swapping First and Last Digits
Source:
September 8, 2024
number theory2024
Problem Statement
Let be the answer to problem 15. For a positive integer expressed in base ten, let be the result of swapping its first and last digits (for example, if , then ). Let be the number of -digit positive integers with a nonzero leading digit that satisfy the property that both and are divisible by (note: is allowed to have a leading digit of zero). Compute the sum of the digits of when is expressed in base ten.