9. There are 1000 lamps and 1000 switches, each switch controls all lamps whose numbers are multiples of its own, initially all lamps are on. Now pull the switches, then the number of lamps that are still on is .
Problem 675
Official solutions — 2
Solution 1
9. 499 Only the numbers that are not divisible by any of , or are divisible by exactly two of them, have their lights on.
In the range from 1 to 1000, there are 500 numbers divisible by 2, 333 numbers divisible by 3, 200 numbers divisible by 5, 166 numbers divisible by , 100 numbers divisible by , 66 numbers divisible by , and 33 numbers divisible by .
Therefore, the numbers divisible by 2 and 3 but not by 5 are ; the numbers divisible by 2 and 5 but not by 3 are ; the numbers divisible by 3 and 5 but not by 2 are . The numbers not divisible by any of are .
Thus, there are a total of lights that are on.
Solution 2
9. 499 Only the numbers that are not divisible by any of , or are exactly divisible by two of them, have their lights on.
In 1 to 1000, there are 500 numbers divisible by 2, 333 numbers divisible by 3, 200 numbers divisible by 5, 166 numbers divisible by , 100 numbers divisible by , 66 numbers divisible by , and 33 numbers divisible by .
Therefore, the numbers divisible by 2 and 3 but not by 5 are ; the numbers divisible by 2 and 5 but not by 3 are ; the numbers divisible by 3 and 5 but not by 2 are . The numbers not divisible by any of are .
Thus, there are a total of lights that are on.