In my high school's math club today, we explored but did not solve this interesting problem:
100 autonomous robotic vehicles enter a warehouse in arbitrary order to park. Inside the warehouse, there are 100 sequential parking spaces enumerated from 1 to 100. Each vehicle has an assigned number where it will attempt to park. However, there is an error in the programming such that if a vehicle finds its path to the assigned parking spot blocked by an already-parked robot, the robot will immediately park in the spot before it. For example, if vehicle 50 parks in spot 50 but vehicle 75 is immediately behind it, vehicle 75 will park in spot 49. Also, if vehicle 1 parks in spot 1, every robot behind it will be blocked from entering the warehouse at all. The vehicles do not have the ability to maneuver around already-parked vehicles.
What is the most likely number of robots that will be parked in the warehouse at the end of the routine?
So far the group came up with just some underlying intuition that the most likely number should be fewer than 50, as it is likely that some robot will park in position $\leq 50$ early on and leave many spaces unable to be occupied. I tried manually exploring small cases with 2, 3, 4, and 5 parking spaces, but this did not produce much help.

Let $X_i$ be a random variable where the $i$th vehicle parks.
Clearly $X_1=U[1,n]$, with $n=100$ in the specific example but lets keep it general at the moment.
Now, because the value of the car in the $i$th position is independent of $i$:
$$P(X_i|X_{i-1})=\begin{cases} \frac{n-\lfloor X_{i-1}\rfloor+1}{n-1}&,X_i= \lfloor X_{i-1}\rfloor-1\\ \frac{1}{n-1}&,X_i=x\lt X_{i-1}\\ \end{cases}$$
So the expected value of $X_i$ for $i\gt 1$ is:
$$\begin{align} E(X_i)&=\sum_{j=1}^{\lfloor X_{i-1}\rfloor-1}\frac{1}{n-1}j+\frac{n-\lfloor X_{i-1}\rfloor+1}{n-1}(\lfloor X_{i-1}\rfloor-1)\\ &=\frac{1}{n-1}\left(\frac{(\lfloor X_{i-1}\rfloor-1)\lfloor X_{i-1}\rfloor}{2}+(n-\lfloor X_{i-1}\rfloor+1)(\lfloor X_{i-1}\rfloor-1)\right)\\ &=\frac{1}{2(n-1)}\left(-\lfloor X_{i-1}\rfloor^2+(2n+2)\lfloor X_{i-1}\rfloor-2n-1\right)\\ &=\frac{(\lfloor X_{i-1}\rfloor-1)(-\lfloor X_{i-1}\rfloor+2n+1)}{2(n-1)}\\ \end{align}$$
Note that if $\lfloor X_{i-1}\rfloor=1$ then $E(X_{i})=0$ and if $\lfloor X_{i-1}\rfloor=2$ then $E(X_{i})=1$ as required.
Now I think that the linearity of expectation can be used (I would love feedback on why or why not) to say, for $n=100$.
$$\begin{align} E(X_0)&=50.5\\ E(X_{2})&\approx37.4\\ E(X_{3})&\approx29.8\\ E(X_{4})&\approx24.3\\ E(X_{5})&\approx20.6\\ E(X_{6})&\approx17.4\\ E(X_{7})&\approx14.9\\ E(X_{8})&\approx12.3\\ E(X_{9})&\approx10.5\\ E(X_{10})&\approx8.7\\ E(X_{11})&\approx6.8\\ E(X_{12})&\approx4.9\\ E(X_{13})&\approx3.0\\ E(X_{14})&\approx1\\ E(X_{15})&\approx0\\ \end{align}$$
So 14 robots can be expected to park.