Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in --d --h --m --s-- days -- hours -- minutes -- seconds.
Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 1d 16h 07m 41s1 days 16 hours 7 minutes 41 seconds.
Guide: Quant Brainteasers: 10 Classic Interview Puzzles and the Idea Behind Each
In a circle are light bulbs numbered through , all initially on. At time you examine bulb number , counting around the circle (so after bulb comes bulb again). If it is on, you change the state of the next bulb around the circle, bulb (bulb if is bulb ); i.e., you turn it off if it's on, and on if it's off. If the examined bulb is off, you do nothing. If you continue around the ring in this manner, will there be a point when all the bulbs are on again?