How many bulbs will be switched on after all the students enter the classroom?

  • Thread starter Thread starter agnibho
  • Start date Start date
AI Thread Summary
In a classroom with 60 bulbs and 60 students, each student toggles bulbs that are multiples of their roll number. Initially, all bulbs are off, and the first student turns them all on. The toggling pattern reveals that a bulb remains on if it has an odd number of divisors, which occurs only for square numbers. Therefore, the bulbs that remain on correspond to the square numbers less than or equal to 60. Ultimately, the teacher finds the bulbs corresponding to these square numbers switched on.
agnibho
Messages
46
Reaction score
0

Homework Statement


There're 60 bulbs in a classroom with 60 students. Initially all of them were switched off.Now gradually the students enter roll number wise and toggle the switches that are multiples of each of their roll numbers. For example, when roll no. 1 enters, he switches on all the bulbs(as they were all switched off initially), and when roll2 enters the room, he toggles the switches that are the multiple of 2 i.e. 2,4,6,8,10...so on.At last when the teacher entered the class how many bulbs did she find switched on??

2. The attempt at a solution
I took the roll no. of the students as i. Then he toggles the switches of the multiple of i.
I couldn't find a way to solve this equation. Can anyone help me??
 
Physics news on Phys.org
Initally, all bulbs are on. After the first student, all are off. After the second student, all the even numbered bulbs are on, odd off. After the third student, All bulbs that are multiples of 3, but NOT 2 (i.e. not multiples of 6) are on, all multiples of 6 are off, even numbers that are not multiples of 3 (even but not multiples of 6)are on, all others, odd but not multiples of 3, are off. Note which bulbs are off: all bulbs that are multiples of both 2 and 3 or are multiples of neither. Can you see (work through the possible on and off switches carefully) that after the fourth student, the bulbs that are multiples of 12 (multiples of 2 and 3 and 4) and bulbs that are multiples of none of 2, 3, and 4 are off?
 
See how many student toggles a certain lamp. If odd number of students, it is on. If even number, it is off. Find the numbers from 1 to 60 which have odd number of divisors. For example, 4 can be divided by 1,2 and 4. Students 1,2, and 4 will toggle it, so it will be on at the end. This is "brute force" but not that terrible.

ehild
 
What a delightful homework problem. It reminds me of my OCD mathematical youth, my later forages into SciAm's mathematical recreations, and a certain problem in my first year computer science class.

I know the answer, but I cannot tell you how or why, as the logic behind the square of the number increase solution eludes me.

pf_2011_09_24_mathematical_recreation.jpg

-1 = off, 1 = on

Good luck!

ps. Is the answer in the back of the book?

pps. I will not be offended if this post is deleted, as I've implied the answer without solving the problem. :redface:
 
The divisors of the number of a bulb N are in pairs: if a divides it, so does N/a. There are odd number of divisors if N/a=a, that is N is a square number.

Initially, all bulbs are off. See bulb 9 for example. The first student switches it on. The second one does not toggle it, but the third student switches off. Then nothing happens till the ninth student arrives, who switches on. Find all square numbers less than 60...

ehild
 
I picked up this problem from the Schaum's series book titled "College Mathematics" by Ayres/Schmidt. It is a solved problem in the book. But what surprised me was that the solution to this problem was given in one line without any explanation. I could, therefore, not understand how the given one-line solution was reached. The one-line solution in the book says: The equation is ##x \cos{\omega} +y \sin{\omega} - 5 = 0##, ##\omega## being the parameter. From my side, the only thing I could...
Essentially I just have this problem that I'm stuck on, on a sheet about complex numbers: Show that, for ##|r|<1,## $$1+r\cos(x)+r^2\cos(2x)+r^3\cos(3x)...=\frac{1-r\cos(x)}{1-2r\cos(x)+r^2}$$ My first thought was to express it as a geometric series, where the real part of the sum of the series would be the series you see above: $$1+re^{ix}+r^2e^{2ix}+r^3e^{3ix}...$$ The sum of this series is just: $$\frac{(re^{ix})^n-1}{re^{ix} - 1}$$ I'm having some trouble trying to figure out what to...
Back
Top