How do we get to door 12 in round 4?

If the jailor is repeating third step over and over till round 100,then in round 3 the doors he will go to are 3,6,9,12,15…99 and then in round 4 the doors he will go to will be 2,5,8,11,14,17…98. I am really confused by this.

Hey @Nitin-Bhattacharyya-2319140631658033 I’ll help you to understand in a better way . Suppose you got drunk and you opened all the doors . Now when you go in your second round you will only treat doors which are multiple of 2 i.e., (2,4,6,8…100) and now you go for third round which means you will only treat doors which are multiple of 3 i.e., (3,6,9,…99). Now when you go in your fourth round you will only treat doors which are multiple of 4 i.e., (4,8,12,16…100) and you have to go till 100 rounds. This will help you in understanding question better :smiley:

Thanks,I thought the jailor repeated step 3 over and over

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.