Doubt about only one step in circular jail cell

why we are taking perfect squares under consideration?
There are total 100 cells and after 100 rounds we have to tell how many doors are opened. Then why perfect squares?? can we take cube also line 2^3, 3^3 etc

refer https://www.geeksforgeeks.org/puzzle-16-100-doors/