Find the digits of the number
$$789ABC$$
where the resulting number is divisible by $7,8$ and $9$. However, A,B, and C cannot be $7,8$ or $9$
Here are some information i found out:
I know $ABC$ have to be divisible by $8$ and I know $7+8+9+A+B+C$ have to equal a multiple of $9$. Now the $7$ is a bit tricky.
The first number that I test was $ABC=144$ but that is not divisible by $9$
I am looking at multiples that both $8$ and $9$ are divisible by.
However, I noticed trial and error is not so helpful. So i am looking for a strategy or a way someone would solve this problem.
Since $7$, $8$ and $9$ are pairwise coprime, being divisible by all of them is the same as being divisible by their product, which is $504$. So we're looking for a number between $789,000$ and $789,999$ that is divisible by $504$.
One solution will be $504\cdot\left\lfloor\frac{789,999}{504}\right\rfloor = 789,768$, but that doesn't satisfy the condition of not containing the digits 789.
The only other solution is then $789,768-504 = 789,264$, which satisfies all of the conditions.