Didn't get the approach to solve puzzel

I applied brute force to solve the above problem.
I didn’t get which method to be used.

Also I can’t get to know what to apply and where to apply

Please paste the question here so that i can check.

Suppose there are N boxes lying in the row numbered from 1 to N. Initially, all boxes are closed. A person walks through multiple times and alters the states of the boxes. Alter the states means the person opens a box that is already closed and closes a box that is already opened. In the first go, the person alters the statesof boxes numbered 1, 2, 3, … , N. In the second go, he alters the states of boxes numbered 2, 4, 6 … In the third go, he alters the states of boxes numbered 3, 6, 9 … This continues till the N’th go in which he alter the state of a box numbered N only. Find the number of open boxes at the end of the procedure? N/2 sqrt(N) N/3 N-1

Read this Puzzle. You will get it.

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.

Yup that cleared my doubt… Sorry for the delay in reply I say your mail yesterday only… thanks