I’ve been trying this for 3 hours and I’m done at this point. Can anyone here do it? I want to tell my teacher that I had multiple people try to do it and they didn’t succeed or something.
There was a jail with 100 cells in it, all in a long row. The warden was feeling very jolly one night and told his assistant that he wanted to give all his prisoners a wonderful surprise. While they were sleeping, he wanted the assistant to unlock all the cells. This should be done, he told the assistant, by putting the key in each lock, turning it once. The assistant did this, and then came back to report that the job was done. Meanwhile, however, the warden had second thoughts. “Maybe I shouldn’t let all the prisonders free,” he said. “Go back and leave the first cell open but lock the second one (by putting the key in and turning it once). Then leave the third open, but lock the fourth, and continue in this way for the entire row.” The assistant wasn’t surprised because the warden often changed his mind. Then the warden changed his mind again and after the assistant came back he said, “Here’s what I really want you to do,” he said. “Go back down the row. Leave the first two cells as they are, and put your key in the third cell and turn it once. Then leave the fourth and fifth cells and turn the key in the sixth. Continue down the row this way.” The assistant did as instructed and then the warden changed his mind again and the assistant had to go back and turn the key in the first cell and then every fourth cell down the row (Like 4, 8, 12… etc) This continued all night, next turning the lock in every fifth cell (ex 5, 10 15… etc) and every sixth cell (ex 6, 12, 18… etc…) and so on and so fourth until the assistant just had to turn the key in the hundreth cell. How many prisoners could walk out?
So what I learned so far about it is that if I do it with then when I get to like 6 I run out of jails to do it with and that it goes in multiples like 6, 12, 18… etc
That’s it so far