Combinatorics

Musical Chairs

COMBIN-QKLLH1

A teacher has $n$ students in a class. Each day, the students sit in the same chairs as the previous days. For the final examination, the teacher asks that the students seat themselves in chairs so that no student sits in his or her usual chair.

If there are also $n$ seats in the class in how many ways may the students do this?