The alternating sum of the digits of 63 195 is . In general, the alternating sum of the digits of a positive integer is found by taking its leftmost digit, subtracting the next digit to the right, adding the next digit to the right, then subtracting, and so on. A positive integer is divisible by 11 exactly when the alternating sum of its digits is divisible by 11. For example, is divisible by 11 since the alternating sum of its digits is equal to 0, and 0 is divisible by 11. Similarly, is divisible by 11 since the alternating sum of its digits is 22, but is not divisible by 11 since the alternating sum of its digits is 9. Lynne forms a 7-digit integer by arranging the digits in random order. What is the probability that the integer is divisible by 11?
, 2015
Pick one
Solution
All 2-digit prime numbers are odd numbers, so to create a reversal pair, both digits of each prime must be odd (so that both the original number and its reversal are odd numbers).
We also note that the digit 5 cannot appear in either prime number of the reversal pair since any 2-digit number ending in 5 is not prime.
Combining these two facts together leaves only the following list of prime numbers from which to search for reversal pairs: and 97.
This allows us to determine that the only reversal pairs are: 13 and 31, 17 and 71, 37 and 73, and 79 and 97.
(Note that the reversal of 11 does not produce a different prime number and the reversal of 19 is 91, which is not prime since .)
Given a reversal pair, we must determine the prime numbers (different than each prime of the reversal pair) whose product with the reversal pair is a positive integer less than 10 000.
The product of the reversal pair 79 and 97 is .
Since the smallest prime number is 2 and , which is greater than , then the reversal pair 79 and 97 gives no possibilities that satisfy the given conditions.
We continue in this way, analyzing the other 3 reversal pairs, and summarize our results in the table below.
Prime Number
Product of the Prime Number with the Reversal Pair
13 and 31
17 and 71
37 and 73
79 and 97
2
greater than 10 000
3
5
greater than 10 000
7
11
greater than 10 000
13
can’t use 13 twice
17
19
23
29
greater than 10 000
Total
8
4
2
0
In any column, once we obtain a product that is greater than 10 000, we may stop evaluating subsequent products since they use a larger prime number and thus will exceed the previous product.
In total, there are positive integers less than 10 000 which have the required property.