Change or not change the doors
Source: Brazil National Olympiad Junior 2021 #1
February 8, 2022
combinatorics
Problem Statement
In a school there are doors with the numbers . In a day students play the following game: Initially all the doors are closed, and each student receive a card to define the order, there are exactly cards. The numbers in the cards are .
The order will be student first, student will be the second, and going on. The student will change the state of the doors with . Change the state is if the door was close, it will be open and vice versa.
a) After the round of the student , determine the configuration of the doors
b) After the round of the student , determine how many doors are closed.