While observing my cheap robot vaccum cleaner and how crypto mining pools work, I got one question.
Let's say a room is a N by N grid.
A robot would randomly pick a square in this grid and clean it.
The probability to pick any square is uniform and it is possible that the robot visit a same square multiple times.
If the robot was smart, it would take exactly N^2 attempts to clean the entire room.
How many attempt on average would it take for the dumb robot to clean the entire room?