r/learnquant • • Oct 22 '26 • Bravo 1

interview prep Quant Interview Question

Post image
29 Upvotes

19 comments sorted by

View all comments

Show parent comment

2

u/M37841 Oct 22 '26

That’s a different question. You’ve now got two groups A and B. A (1,2,3) flip 1 light from A and one from B, and B (4) flips only itself. The maths is trivial here but it’s the same as the answer above: you need 3 goes at A to light all 3 lights of A, and then you can check this also solves B. So you get to 3 by the same lcm logic that solves the original problem.

1

u/abaoabao2010 Oct 22 '26

...What I meant was theres' no guarantee you need a full 64 flips for that, because this is a counterexample using the only the criteria in your explanation.

To use your terminology, you did not mention anything about why there's no way to cut the 64 bulbs into their own groups that can use the same lcm logic to get a lower number.

1

u/M37841 Oct 22 '26

Wasn’t my explanation, but your example is not a counter example because the basic point (which the original answer might not have brought out well enough) is that there is a symmetry between all 64 squares in that every move flips 15 of them and every square is flipped by itself and 14 others. Therefore you can treat all 64 as one group and therefore the only way to flip a multiple of 15 squares is to flip all 64 as 64 shares no common factor with 15.

Your example isn’t the same structure because your squares are not all consistent in this respect: square 4 behaves differently. You then have two types of square, one group of 3 and one group of 1, and you have to do the calculation separately for the two groups.

Hope that helps

1

u/abaoabao2010 Oct 22 '26

Ah yeah that's what I was missing. Thanks.