>>13016156If there’s only 1 camera, pushing the button any number of times works. If there are two cameras, pushing the button 2 times, 4 times, etc gets you back to where you started, so any 2n works. For 3 cameras, any multiple of 3, so 3n. So on for 4n, 5n, and 6n. So the “easiest” solution is to just take 6*5*4*3*2, since that’s a multiple of everything, and so push the button one less time than that, 720 - 1 = 719. But you can do do better than that since since is by default a multiple of 2 and 3. So you just need something divisible by 4, 5, and 6, so 2 factors of 2, 1 factor of 3, and 1 factor of 5. That’s 2*2*3*5 = 60, and 1 less than that since you already pushed the button once gives 59