I have this question that I think may be interesting to all maths' lovers.
We have $5$ rooms in a row : Room $1$-Room $2$-Room $3$-Room $4$-Room $5$.
There is a little mouse in one of the rooms. А cat tries to catch the mouse and put his leg into one room. If the mouse is in this room then he catches the mouse, otherwise the mouse moves to a nearest room. Тhen the cat again chooses any room etc.
What is the cat's algorithm for catching the mouse?