MathOverflow is a question and answer site for professional mathematicians. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is the probability that a number and its digit reversal are relatively prime in base b?

share|cite|improve this question

There is some relevant discussion here:

share|cite|improve this answer

The natural conjecture (stated by someone in @optima's suggested discussion) is that except for the "bad primes" (divisibility by which is "palindromic") the answer should be the "usual" $6/\pi^2.$ For $b=10$ $11$ and $3$ are bad primes, though it is not obvious that there are not others. I am not sure why @optima's answer gets negative feedback, since the discussion is quite relevant, and people there have done numerical experiments consistent with the natural conjecture.

share|cite|improve this answer
It wasn't me who downvoted, but my guess is that it is because @optima has a record of spam. See – Daniel Moskovich Dec 28 '10 at 3:23

I think there are bases $b$ where the probability becomes arbitrarily low. Let $b$ be the product of the first $n$ primes plus one then the difference of $b$ and its palindrome will be divisible by $b-1$ and for them to be relatively prime neither can be divided by the first $n$ primes. So if $n$ is chosen large enough the probability can be made arbitrarily low.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.