A lift has $N$ stops ($1,2,3,4,...,N$), hence have $N(N-1)$ distinct rides of travelling from floor $A$ to floor $B$ such that $A\neq B$. How many arrangements of these rides form a continuous trip that starts from floor 1 and ends at floor 1?
I was lost trying to solve it. Anyone has an idea?