I think the more simple and better, the better, it is from the simplest angle.
Today, I have a friend (a programmer) gave me a question. She said that others are given to her, the question is like this:
Some counts are divided by more than 87, which is divided by more than 7. What is some?
This seems that the written is very troubles, so I decided to write a program. After about one minute, I gave her n answers, the program wrote this:
For i = 10 to 10000: if i mod 9 = 8 and i mod 8 = 7 and i mod 7 = 6 THEN MSGBOX i: Next
script>
Oh, there is only three lines of code, and it is more simple to write in a line.
So I said it is the simplest thinking. The answer is there countless: 503, 1007, 1511 ......
The next day, there is no dove, I think this problem, in fact, it is very simple, it can be unspeakable with the knowledge of primary school or junior high school. If a number Y is divided by X Yu X-1, it means Y is the multiple of X minus 1, Similarly, X MOD 9 = 8, X MOD 8 = 7, X MOD 7 = 6, the common multiple of X = 7, 8, 9 - 1, may it be called in mathematics textbooks, or what is called? ? For this question, x = 7 * 8 * 9-1, that is, 504-1 = 503, the same, as long as it is 504 times, then minus 1, it is the correct answer to this question.
Oh, so I said this is the simplest problem.