There are N cars that are parked in N parking spots numbered from 1 to N. After the Nth parking spot, there are N more parking spots numbered from N+1 to 2N. At each step, a car is selected randomly and if the parking spot just ahead of it is empty, then it will move to the next parking spot with probability 1/2. What is the expected number of steps till all cars occupy the spots N+1 to 2N?
I tried using markov chains to solve this. Each state in the chain will be represented as (i,N-i), where i is the number of cars in the parking spots from 1 to N and n-i are the cars in the spots N+1 to 2N. State (0,N) will be the absorbing state. Using this I tried finding the expected number of steps to reach (0,N) from (N,0).