1.5.2 problem 52

Let be the event that the -th student takes the same seat on both days. The desired probability then is By inclusion exclusion principle,

,
where , and so on by naive definition of probability.
Hence,