第 616 题:(2003 AIME II, 2)
Let $N$ be the greatest integer multiple of 8, whose digits are all different. What is the remainder when $N$ is divided by 1000?
- To be as large as possible, $N$ uses all ten digits, and starts with $9876543$ if possible. A number is divisible by $8$ exactly when its last three digits are.
- The last three digits are then an arrangement of $0,1,2$: of $210,201,120,102,021,012$, the largest multiple of $8$ is $120$.
- So $N=9876543120$, and the remainder is $120$. The answer is $\boxed{120}$.
Let $N$ be the greatest integer multiple of 7, whose digits are all different. What is the remainder when $N$ is divided by 1000?