The students of a Technical Institute went to the house of bulb collector Prof Sharma. He gave them a task- Each of them had to go and switch on bulbs that were switched off and switch off the on ones. At the start, all lights were switched off. They had to proceed in the following manner-
1. The first student switched on all lights.
2. The second one switches off all switches that are multiples of two.
3. The third one switched off all on lights and switched on the off lights that were multiples of 3.This continued for 4, 5, 6 and so on.
If the professor had 1000 bulbs and each of the 1000 students did as told, find the number of bulbs that remained on after the exercise.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Clearly the bulbs which will remain switched on will be theones which have been altered an odd number of times and the number of times each bulb is altered is equal to it's total number of factors.....we know that only perfect square numbers have an odd number od factors and hence the number of bulbs switched on will be the numbers having squares less than 1000 ie 31..
Nice problem :)