Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Let f(n) denote the probability of the n-th person getting correct seat in n-person case, then: f(1) = 1 (base case, trivial) f(2) = 1/2 (also trivial)
Try to calculate f(3), f(4), and f(5) using the base cases. What is the value of them? f(i) for i >= 2 will also be 1/2.
Try to proof why f(i) = 1/2 for i >= 2.