Ninety-niner

Let N N be a five-digit number of the form a b c d e \overline{abcde} (no leading zeroes). Define s ( N ) = a + c + e s(N) = a + c + e . How many values are possible for s ( N ) s(N) if N N is a multiple of 99?

13 3 25 6

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.

2 solutions

Arjen Vreugdenhil
Dec 14, 2017

Since N N is a multiple of 9, a + b + c + d + e = 9 p a + b + c + d + e = 9p is a multiple of 9. It is easy to see that 1 p 5 1 \leq p \leq 5 .

Since N N is a multiple of 11, a b + c d + e = 11 q a - b + c - d + e = 11q is a multiple of 11. It is easy to see that 1 q 2 -1 \leq q \leq 2 .

Adding/subtracting and dividing by two, we obtain { a + c + e = 1 2 ( 9 p + 11 q ) b + d = 1 2 ( 9 p 11 q ) \begin{cases} a + c + e = \tfrac12(9p + 11q) \\ b + d = \tfrac12(9p - 11q)\end{cases} This requires that p p and q q have the same parity. Since digits lie between 1 and 9, we have the inequalities { 6 11 q 9 p 54 11 q 4 + 11 q 9 p 36 + 11 q \begin{cases} 6 - 11q \leq 9p \leq 54 - 11q \\ 4 + 11q \leq 9p \leq 36 + 11q \end{cases} Split out the possible values of q q and consider how much p p might be.

  • q = 1 q = -1 and p p is odd. The inequalities become { 17 9 p 65 7 9 p 25 2 p 2 , \begin{cases} 17 \leq 9p \leq 65 \\ -7 \leq 9p \leq 25 \end{cases}\ \ \ \therefore\ \ \ 2 \leq p \leq 2, which has no odd solutions.

  • q = 0 q = 0 and p p is even. { 6 9 p 54 4 9 p 36 1 p 4 p = 2 , 4. \begin{cases} 6 \leq 9p \leq 54 \\ 4 \leq 9p \leq 36 \end{cases}\ \ \ \therefore\ \ \ 1 \leq p \leq 4 \ \ \ \therefore\ \ \ p = 2, 4. Thus we have two solutions: s ( N ) = 9 e.g. N = 10 098 ; s ( N ) = 18 e.g. N = 19 899. s(N) = 9\ \ \text{e.g.}\ N = 10\,098;\ \ \ \ \ \ s(N) = 18\ \ \text{e.g.}\ N = 19\,899.

  • q = + 1 q = +1 and p p is odd. { 5 9 p 43 15 9 p 47 2 p 4 p = 3. \begin{cases} -5 \leq 9p \leq 43 \\ 15 \leq 9p \leq 47 \end{cases}\ \ \ \therefore\ \ \ 2 \leq p \leq 4\ \ \ \therefore\ \ \ p = 3. This produces the solution s ( N ) = 1 2 ( 27 + 11 ) = 19 e.g. N = 10 989. s(N) = \tfrac12(27 + 11) = 19\ \ \text{e.g.}\ N = 10\,989.

  • q = + 2 q = +2 and p p is even. { 14 9 p 32 26 9 p 58 3 p 3 , \begin{cases} -14 \leq 9p \leq 32 \\ 26 \leq 9p \leq 58 \end{cases}\ \ \ \therefore\ \ \ 3 \leq p \leq 3, which has no even solutions.

The possible values of s ( N ) s(N) are therefore 9 , 18 , 19 9, 18, 19 ; there are 3 \boxed{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 p and q q . Possible solutions lie on the crossing of lines of the same color. The requirements that 3 a + c + e 27 3 \leq a + c + e \leq 27 and 2 b + d 18 2 \leq b + d\leq 18 limit the solutions to the parallelogram defined by the black lines. The three solutions are marked by dots.

Giorgos K.
Jan 2, 2018

Mathematica

Union[Tr@IntegerDigits[#][[{1,3,5}]]&/@Table[99n,{n,102,1010}]]

{9, 18, 19}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...