100 hotel rooms and 100 guests?

  • Thread starter Thread starter mimibajiduh
  • Start date Start date
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
5 replies · 3K views
mimibajiduh
Messages
15
Reaction score
0
there are 100 hotel rooms and 100 guests.
change the status means open goes to closed and closed goes to open.

guest 1: goes to every room and changes its status
guest 2: goes to every 2 rooms(2, 4,6,8,...,100) and changes its status
guest 3: goes to every 3 rooms and changes its status
guest 4: goes to every 4 rooms and changes its status
this goes on all the way to guest 100
guest 100: goes to 100 and changes its status

which rooms are closed? i know that room 1 is closed.
 
Physics news on Phys.org
I remember this question from my gr.7 class and I remember writing like huge essay to explain it. Let's see if i can do it in few lines. So, you have 100 rooms. or essentially 100 numbers. Then think about factors of each number. So let's say 8 for example factors are: 1, 2, 4, 8.
Now think about pairs: 1 x 8 = 8 and 2 x 4 = 8.
basically all of the numbers are pairs. Except 10 of them; namely squares: 1,4,9,16,25,36,49,64,81,100... By that i mean consider factors for 36 =>
1 x 36 = 36
2 x 18 = 36
3 x 12 = 36
4 x 9 = 36
BUT:
6 x 6 = 36

Hopefully you get the idea.
 
utkarsh1 said:
I remember this question from my gr.7 class and I remember writing like huge essay to explain it. Let's see if i can do it in few lines. So, you have 100 rooms. or essentially 100 numbers. Then think about factors of each number. So let's say 8 for example factors are: 1, 2, 4, 8.
Now think about pairs: 1 x 8 = 8 and 2 x 4 = 8.
basically all of the numbers are pairs. Except 10 of them; namely squares: 1,4,9,16,25,36,49,64,81,100... By that i mean consider factors for 36 =>
1 x 36 = 36
2 x 18 = 36
3 x 12 = 36
4 x 9 = 36
BUT:
6 x 6 = 36

Hopefully you get the idea.

hey utkarsh 1 , i am utkarsh009, what a coincidence!
first tell me what was the original status of all the rooms and also whether the guests have to change the status of their room for coming out?
now, let me just explain what you said in my words. just see if i am correct or not.
the the numbers which have even number of factors have the same status and the ones with odd number of factors have same status.
if the original status was that all the rooms were opened then the square numbers (which have odd number of factors) will be closed.
just check whether i am right or not?
 
utkarsh009 said:
hey utkarsh 1 , i am utkarsh009, what a coincidence!
now, let me just explain what you said in my words. just see if i am correct or not.

Yes its correct! Probably better explained since its more concise
 
utkarsh1 said:
Yes its correct! Probably better explained since its more concise

thank you very much !