[Math] Number theory question

elementary-number-theory

$K$ is a three digit number such that the ratio of the number to the sum of its digits is least. What is the difference between the hundreds and the tens digits of $K$
a) 9
b) 8
c) 7
d) None of these

I was able to solve this question by using hit and trial but could not think of a proper way to solve it.

Best Answer

We want to minimise $\cfrac {100a+10b+c}{a+b+c}$

This is equal to $$1+\frac{99a+9b}{a+b+c} $$ and this is clearly least when c is greatest. So we have $c=9$.

We then rewrite the fraction as $$100-\frac{90b+99c}{a+b+c}$$ which is least when $a$ is least. So we have $a=1$.

Isolating $b$ as above gives $$10+\frac {90a-9c}{a+b+c}$$ Since $a$ is non-zero the numerator is positive and the minimum is obtained when $b=9$.