If n is an integer, then what is the least possible value of
∣ 1 2 3 − 5 n ∣ ?
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.
Well done. I think that a lot of people chose 3 as the answer.
The question is incomplete. The smallest value of ABS(123-5*n) occurs when N=5. It is 98. The expression has a value of 113 when n=2.
Log in to reply
I also agree with you .The answer must be 5
The question asked is to find the least possible value of abs(123-5n) for any given integer n and not to find the value of n for which abs(125-5n) is least.
yeah.. i wonder how people get 2 as a answer???
Right, because 123-10 = 2.
The trick is in the wording. We aren't trying to find the value of n, we're asking to find the lowest possible outcome of Abs(123-5n) if n is an integer. Therefore if n=25, then the value is 2. If n=24, then value is 3.
The questions is, if n is any integer, which is least possible absolute value of ∣ 1 2 3 − 5 n ∣ , as in the value closest to 0. We are not looking for the lowerst possible value of n .
Therefor, we solve this by looking at how close we can get to 0 by making n any interger of our choice. Using modulus, we get that 5 1 2 3 ≡ 2 4 + 3 where 3 is the remainder after dividing 123 by 24.
You might think that you are done now, and that the answer is 3, but since we are working in absolute numbers we can get even closer to 0 by going into negative numbers.
Therefore, we add 1 to our n making it 25.
So the answer is:
∣ 1 2 3 − ( 2 5 ⋅ 5 ) ∣ = ∣ 1 2 3 − 1 2 5 ∣ = ∣ − 2 ∣ = 2
And that is why the correct answer, the closest we can get to zero following the premises, is 2.
Bonus : Also, a more "mathematical" reason to add 1 to n is because our remainder is larger than x divided by 2. We can replace 5 with any positive integer and get this rule:
if 2 x > r e m a i n d e r then add 1 to n.
Problem Loading...
Note Loading...
Set Loading...
The multiple of 5 closest to 1 2 3 is 1 2 5 and
∣ 1 2 3 − 1 2 5 ∣ = 2
Any multiple of 5 less than or greater than 1 2 5 will give a larger value than 2 . The next best is ∣ 1 2 0 − 1 2 3 ∣ = 3 .