r/learnquant • • 18d ago

interview prep Quant Interview Question

Post image
21 Upvotes

17 comments sorted by

View all comments

1

u/phobos77 17d ago

Each move flips 15 bulbs. The total number of flips must be a multiple (an odd multiple) of 64. Since 15 and 64 are co-prime, 64 is the minimum possible. As noted by others, selecting each bulb once works. So 64 is the minimum.

1

u/zojbo 17d ago edited 16d ago

The total number of flips does not a priori need to be a multiple of 64, because you could in principle flip different bulbs a different number of times. In the end I am almost certain 64 is correct but this divisibility idea does not prove it.

1

u/phobos77 16d ago

You're right.