от martin123456 » 26 Дек 2010, 08:39
(1) i assume that u mean that we can use each digit not more than once
a number is divisible by 4 [tex]\Leftrightarrow[/tex] the number formed by the last to digits of its decimal representation is divisible by 4. From the given digits we can form the following two digits numbers that are divisible by 4: 12, 20, 32, 52. Now we have to count the number of the 3 digits numbers that are infront. We can generalize the counting process if we notice that 0 cannot be infront of a number that we are counting - the counting process can be generalized for numbers ending with 12, 32, 52 - let name these endings with xx. Also notice that no 1 can be infront also, for the counted number would be greater than 10000. With this in mind, we split the counting process again into 2 parts - the first is for 32, 52 in the end and the other concerns only 12 ending. In the first case we count _ _ _ xx. The first digit can be only one. The second can be choosen from 2 possible digits, the third one from one. So have 1.2.1=2 possibilities. The total count then is 2.2=4. Now we return back to the case 12. We count _ _ _ 12. The first digit can be choosen from 2 digits, the second - from 2 digits, and the third - from 1 digits. So the count is 2.2.1.=4. Up till now we have 8 numbers.
Finally, we return back to the case of 20. We count _ _ _ 20. For the first digit we can choose from 3 digits. For the second - from 3 digits, and for the last one - from 2. So the count is 3.3.2=18.
So totally we have counted 26 numbers.