I am helping a kid with the preparation for a mathematical competition. One of the training question is:
Find the smallest positive whole number that is equal to seven times the product of its digits
They do not provide the answer, but using this little python script I found out it is 735:
for i in range(1, 1000):
digits = [int(x)for x in str(i)]
prod = 1
for digit in digits:
prod = prod * digit
if prod*7 == i:
print(f"The number is: {i}")
break
Now I want to find a way that could be resolved just with paper and pencil, as they must do in this mathematical competition.
I tried to write: $$ 100a + 10b + c = 7abc $$
and then I tried many more things, including dividing rule by 7 etc. But I couldn't find a way of solving this if not by brute-force substituting digits for a, b and c and find the values that satisfy the equation.
Thanks!
EDIT
I know it is a 3 digits number, so it must be less than 999, and since 0 is not a digit it must be greater than 111. Since the number is 7 times the product of the digits, I know that $$a*b*c ≤ 999/7$$.
I think rather than 999 we could use 994 which is the greatest nnumber divisible by 7 before 1000.
I tried to do a system of equations but I am missing one more condition to make this work. Maybe it can give you guys some idea.