Let be a five-digit number of the form (no leading zeroes). Define . How many values are possible for if is a multiple of 99?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Since N is a multiple of 9, a + b + c + d + e = 9 p is a multiple of 9. It is easy to see that 1 ≤ p ≤ 5 .
Since N is a multiple of 11, a − b + c − d + e = 1 1 q is a multiple of 11. It is easy to see that − 1 ≤ q ≤ 2 .
Adding/subtracting and dividing by two, we obtain { a + c + e = 2 1 ( 9 p + 1 1 q ) b + d = 2 1 ( 9 p − 1 1 q ) This requires that p and q have the same parity. Since digits lie between 1 and 9, we have the inequalities { 6 − 1 1 q ≤ 9 p ≤ 5 4 − 1 1 q 4 + 1 1 q ≤ 9 p ≤ 3 6 + 1 1 q Split out the possible values of q and consider how much p might be.
q = − 1 and p is odd. The inequalities become { 1 7 ≤ 9 p ≤ 6 5 − 7 ≤ 9 p ≤ 2 5 ∴ 2 ≤ p ≤ 2 , which has no odd solutions.
q = 0 and p is even. { 6 ≤ 9 p ≤ 5 4 4 ≤ 9 p ≤ 3 6 ∴ 1 ≤ p ≤ 4 ∴ p = 2 , 4 . Thus we have two solutions: s ( N ) = 9 e.g. N = 1 0 0 9 8 ; s ( N ) = 1 8 e.g. N = 1 9 8 9 9 .
q = + 1 and p is odd. { − 5 ≤ 9 p ≤ 4 3 1 5 ≤ 9 p ≤ 4 7 ∴ 2 ≤ p ≤ 4 ∴ p = 3 . This produces the solution s ( N ) = 2 1 ( 2 7 + 1 1 ) = 1 9 e.g. N = 1 0 9 8 9 .
q = + 2 and p is even. { − 1 4 ≤ 9 p ≤ 3 2 2 6 ≤ 9 p ≤ 5 8 ∴ 3 ≤ p ≤ 3 , which has no even solutions.
The possible values of s ( N ) are therefore 9 , 1 8 , 1 9 ; there are 3 possible values.
The last part of the solution can be illustrated in a graph as follows:
The orange and blue lines correspond to odd and even values, respectively, of p and q . Possible solutions lie on the crossing of lines of the same color. The requirements that 3 ≤ a + c + e ≤ 2 7 and 2 ≤ b + d ≤ 1 8 limit the solutions to the parallelogram defined by the black lines. The three solutions are marked by dots.