What is the largest possible remainder when a two-digit number is divided by the sum of its digits?
This problem is shared by Aida A from the Malaysian National Mathematical Olympiad.
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.
claps
a very good solution
what is mod?
Log in to reply
In this case a mod b = c means that a / b gives a remainder of c
Similar approach .
That's a great solution, but is there any other way to solve this without going on trial and error attempts??
Log in to reply
i think mine reduces it to a bit...but again it becomes lengthy..however it is based upon a formal approach...
The largest possible digit sum of digits = 9 + 9 = 18,
so no remainder can be less than 17.
Working down from the top:
99/18 → remainder = 9
98/17 → remainder = 13
89/17 → remainder = 4
97/16 → remainder = 1
88/16 → remainder = 8
79/16 → remainder = 15
After that the divisor is 15 or less,
so the remainder is 14 or less,
and so the largest remainder is 15,
from 79 = 4 * 16 + 15.
I believe you meant "so no remainder can be greater* than 17."
To get the largest possible remainder we need to start with numbers whose digits add up to a high number. The highest possible such number is 99, whose digits add up to 18.
9 9 ÷ 1 8 = 5 R 9
89 and 98's digits add to 17:
8 9 ÷ 1 7 = 5 R 4
9 8 ÷ 1 7 = 5 R 1 3
13 might seem high enough to you, but we can't be so sure! 79, 88, and 98's digits add to 16:
7 9 ÷ 1 6 = 5 R 1 5
8 8 ÷ 1 6 = 5 R 8
9 7 ÷ 1 6 = 5 R 1
Notice how in 7 9 ÷ 1 6 , the remainder is one less than the divisor. When this is the case, we know we can't go any higher. Therefore, the highest possible remainder is 1 5 .
I like the conclusion on this solution
When 79 is divided by the sum of its digits (7+9=16), we get a remainder of 15.
Since 15 is the biggest possible remainder when the sum of the digits is 16, the only way we could get a remainder bigger than 15 is if the sum of the digits were 17 or more.
There are only 3 two digit numbers whose sum of digits is 17 or more and they are 89, 98 and 99. If we examine these 3 cases we will find that the remainder in each case is less than 15.
Therefore the largest possible remainder is 15.
i did the same way buddy !!!!!!!!!!!!!!!!!!!!!!!!!!!
The largest possible digit sum = 9 + 9 = 18, so no remainder can be > 17.
Working down from the top: 99/18 → remainder 9 98/17 → remainder 13 89/17 → remainder 4 97/16 → remainder 1 88/16 → remainder 8 79/16 → remainder 15
After that the divisor is 15 or less, so the remainder is 14 or less, and so the largest remainder is 15
To get the required answer we must be clear that--- 1. The 2-digit number is not divisible by the sum of digits So let us consider only the 2 digit primes- Starting from 11, 11 = ( 2 * 5 + 1 ) _ _ _ _ remainder = 1 13 = ( 4 * 3 + 1 ) _ _ _ _ remainder = 1 so on...............................we get the required prime number 79 which bears the largest remainder - 79 = 16 * 4 + 15 so,our answer is 15
N=10 x +y We have to maximize N%(x+y) Which is equal to 9 x%(x+y) If we put x =1 then x+y will vary from 1 to 10 For x= 1 max remainder we get is 9 And for x =2 we have to check only for x+y >=10 because for x+y<10 remainder will be less than 9 . So on we go for x=1 to 9 We get a maximum remainder
SO here is it..without using brute force...it struck me naturally...the solution...it's lengthy but actually it's not..it reduces possibilites at every step and we approach to the final solution smoothly...criticism and appreciation are welcome.
.
The sum of a two digit number's digits can be no more than 18. So the greatest possible remainder is 17?
Unfortunately in reality the answer is 15. Don't ask me how it happens, but here's the practical:
http://dev.byteofk.com/2digit.php
The PHP code to output this if anyone is interested:
<? $largest = 0; for($x=10;$x<100;$x++){ $tens = substr($x,0,1); $ones = substr($x,1,1); $sum = $tens+$ones; $res = floor($x/$sum); $rem = $x-($res*$sum); $display = "$x: $tens + $ones = $sum, $x / $sum = $res rem $rem<br/>"; echo $display; if($rem>$largest){ $largest = $rem; $largestdisplay = $display; } } echo "Largest remainder: $largest<br/>$largestdisplay"; ?>
Let the number equal a and S ( a ) denote the sum of its digits.
⟹ a = S ( a ) q + r , where q is the quotient, r the remainder, such that r < S ( a ) .
Therefore, for r to be maximum, S ( a ) has to be maximum. We test out the largest possible values of S ( a ) :
9 9 = 1 8 × 5 + 9
9 8 = 1 7 × 5 + 1 1
8 9 = 1 7 × 5 + 4
7 9 = 1 6 × 4 + 1 5
Observe that 1 5 is the largest value possible, 1 6 is the largest digit sum we have encountered so far, and all other digit sums will be less. It follows that all other remainders will be lesser as well.
We can write the problem as 1 0 a + b = q ′ ( a + b ) + r where r ∈ [ 0 , a + b ) . Setting q ′ = q + 1 , we have 9 a = q ( a + b ) + r . Basically, b can take any value [ 0 , 9 ] for any value of a . So let a + b = 1 8 . Then m a x ( r e m ( 9 a , 1 8 ) ) = 9 . m a x ( r e m ( 9 a , 1 7 ) ) = 1 3 . m a x ( r e m ( 9 a , 1 6 ) ) = 1 5 . Since m a x ( r e m ( 9 a , y ) ) < 1 5 for all y ∈ [ 0 , 1 5 ] , 15 is the largest possible remainder.
Problem Loading...
Note Loading...
Set Loading...
From Euclid's division b a = q + r ⇒ 0 ≤ r < a
Maximum value = a + b can have is 1 8 . So r ≤ 1 7 .
a + b = 1 8 → a = 9 → b = 9
9 9 mod 1 8 = 9 .
a + b = 1 7 → a = 9 , 8 → b = 8 , 9
9 8 mod 1 7 = 1 3
8 9 mod 1 7 = 4
a + b = 1 6 → a = 9 , 8 , 7 → b = 7 , 8 , 9
9 7 mod 1 6 = 1
8 8 mod 1 6 = 8
7 9 mod 1 6 = 1 5 .
If we carry on with more examples we'd never find any remainder equal or higher than 15 because we know r < a + b , and if we continue a + b = 1 5