Open the doors.

A team of 1000 1000 persons went to Hazarduari palace in Murshidabad, West Bengal , India. That's very famous for having 1000 1000 doors. They asked one of the travelers who was a mathematician to predict how many door will be open at the end of the game. They played the game as follows. Person P 1 P_1 opens all the doors. Then person P 2 P_2 closed doors D 2 D_2 , D 4 D_4 ... D 1000 D_{1000} . And leaves odd numbered doors open. Similarly, person P m P_m changes the state of the doors D m D_m , D 2 m D_{2m} , D 3 m D_{3m} ..... And leaves other doors untouched. Finally , P 1000 P_{1000} . changes only the state of the door D 1000 D_{1000} and leaves all others untouched. Ok mathematician predict how many doors are open at the end?


The answer is 31.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Chris Lewis
May 4, 2019

If d d is a factor of n n , then person d d changes the state of door n n . So the number of times door n n changes state is equal to the number of factors of n n .

The doors that are open at the end are those whose states have changed an odd number of times. The numbers with an odd number of factors are precisely the square numbers (why?), and since 3 1 2 < 1000 < 3 2 2 31^2<1000<32^2 , there will be 31 \boxed{31} doors left open.

How many doors will be left open if n=10? (10 doors in all)

A Former Brilliant Member - 2 years, 1 month ago

Log in to reply

Only 3 3 doors will be left open: door 1 1 , 4 4 , and 9 9 .

Joshua Lowrance - 2 years, 1 month ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...