Quoto

Learn / Library / Brainteasers

Palindromes and elevens

BrainteasersMedium

A palindrome reads the same forwards and backwards. How many palindromes with digits and no leading zero, such as , are divisible by ?

Checking an answer needs JavaScript. The hint and the solution open without it.

A whole number, a decimal, a fraction like 3/8 or a percent.

Hint

Write the palindrome as and reduce its value modulo to a condition on , and .

Solution
  1. The palindrome equals , and modulo this is .
  2. For each of the choices of the digits and , exactly one residue of modulo makes the sum , and it is a usable digit unless that residue is .
  3. The residue needs , that is modulo ; for this gives , which is not a digit, while each of the other values of gives exactly one digit .
  4. So pairs are unusable and the count is .

Answer: