Alice walks down an upward escalator and counts 150 steps. Bob walks up the same escalator and counts 75 steps. Alice takes three times as many steps in a given time as Bob.
How many steps are visible on the escalator?
Alice walks down an upward escalator and counts 150 steps. Bob walks up the same escalator and counts 75 steps. Alice takes three times as many steps in a given time as Bob.
How many steps are visible on the escalator?
There are:
120 steps visible on the escalator (I think)
Since Alice takes 3x as many steps per time as Bob, and her trip was 150 steps while his was 75,
that means Alice was on the escalator for 2/3 as long as Bob was, because she took twice as many steps, but moves at 3x the speed.
So the equations we can set up are
$150 = n + 2/3s$
and
$75 = n - s$
where
$n$ is the number of steps showing, and $s$ is the number of steps that change per unit time.
Solving those gives us
$n=120$ and $s=15$
So just to double check
Let's say 15 steps cycle per minute, and that Alice takes 75 steps per minute, it takes her 2 minutes (150 steps) to cover the (120 + 2*15) 150 steps of going down the up escalator.
If Alice is taking 75 steps per minute, then Bob is taking 25, so that means his trip up the escalator takes 3 minutes, during which he walked 75 steps and it moved 3*15 or 45 steps.
We'll measure time in units of how long it takes for one step to emerge from the bottom or disappear at the top of the escalator and distance in units of steps.
Let the length of the escalator be $n$, Alice's speed be $a$, and Bob's speed be $b$. (So $a=3b$. These are speeds relative to the escalator steps.)
Alice goes down the escalator; her speed relative to the ground is $a-1$. So she takes time $n/(a-1)$ during which she passes $na/(a-1)$ steps.
Bob goes up; his speed relative to the ground is $b+1$. So he takes time $n/(b+1)$ during which he passes $nb/(b+1)$ steps.
Alice passes twice as many steps as Bob so (cancelling an $n$ on both sides) we have $a/(a-1)=2b/(b+1)$ or $a(b+1)=2b(a-1)$ or $ab-a-2b=0$. Now would be a good time to remember that $a=3b$ so this says $3b^2-5b=0$ so either $b=0$ (which indeed makes Alice count twice as many steps as Bob, namely none, but clearly isn't the solution here) or $b=5/3$ and accordingly $a=5$. We then have $150=na/(a-1)=n\cdot5/4$ so $n=120$. (Or, solving the other equation just to make sure we get the same answer, $75=nb/(b+1)=n\cdot(5/3)/(8/3)$ so $n=75\cdot8/5=120$: good.)
Super-simplistic sanity check
with every step, Alice moves 5 steps down the escalator while the escalator moves her up one step; net movement of 4 steps; so she takes 30 steps to reach the bottom. On each of those she counts 5 steps, yielding 150 as required.
I suppose we might as well do the general case, just in case other variants of this problem get asked in future. So: let's say Bob goes up the escalator at speed $b$ and Alice goes up at speed $a=kb$ ($b$ unknown, $k$ known). Alice counts $p$ upward steps, Bob counts $q$ upward steps. In the example above we have $k=-3$, $p=-150$, and $q=75$. (It's important to get the signs right.) Then
$p=na/(a+1)=nkb/(kb+1)$ and $q=nb/(b+1)$ so $p/q=(kb+k)/(kb+1)=1+(k-1)/(kb+1)$, whence $b=((k-1)q/(p-q)-1)/k=(kq-p)/[k(p-q)]$ and hence $a=(kq-p)/(p-q)$. Then $n=q(1+1/b)=q(1+[k(p-q)]/(kq-p))=pq(k-1)/(kq-p)$.
Sanity check: for the particular case asked here we get
$150\cdot75\cdot(-4)/(-3\cdot75-150)=150\cdot300/(5\cdot75)=600/5=120$.
I'm assuming that "steps are visible" refers to steps beeing seen, i.e "at the surface" ?
If so, - and taking any of the computed N steps answers from the others
N = 120, see above
I believe the corect answer should be
N + 1 = 121 ... at least most of the time.
Why?
Most of the time you will see a fraction of the first step and a fraction of the last step during transition on an escalator, but you count them as one each.
"How many steps are visible on the escalator? "
Well, that depends on many mathmatical things, what counts as a step, etc. So, I'm going to round off and say:
Half of them, of course!
As already said by (almost) everyone else,
120
But all the other answers are just working through the numbers. Let's algebra this!
The system can be expressed as:
$$ v_A T_A = l + T_Ae = S_A \\ v_B T_B = l - T_Be = S_B \\ v_A = \alpha v_B $$
Where $v_A$ = speed of Alice against direction of escalator (steps per time period - say seconds), $v_B$ = speed of Bob in direction of escalator, $T_A$ = time for Alice to complete journey, $T_B$ = time for Bob to complete journey, $l$ = length of escalator in steps, $e$ = speed of escalator in steps per time period, $S_A$ = steps seen by Alice, $S_B$ = steps seen by Bob. We also introduce $\alpha$ = ratio of Alice's speed compared to Bob's.
We can re-write those equations as:
$${\alpha v T_A \over S_A} = {l + T_Ae \over S_A} = {vT_B \over S_B} = {l - T_Be \over S_B} = 1$$
Where $v$ = $v_B$ from above and we have substituted $v_A = \alpha v_B$.
So we want to solve for $l$. Let's rearrange:
$${l + T_Ae \over S_A} = {l - T_Be \over S_B}$$ $$\rightarrow l = {{T_AeS_B + T_BeS_A} \over {S_A-S_B}} \tag{1}$$
And:
$$\alpha v{T_A \over S_A} = v{T_B \over S_B}$$ $$\rightarrow T_A = T_B{S_A \over \alpha S_B} \tag{2}$$
And:
$${l - T_Be \over S_B} = 1$$ $$\rightarrow T_Be = l - S_B \tag{3}$$
Combining (1) and (2) gives:
$$l = {T_BeS_A(1+1/\alpha) \over S_A-S_B} \tag{4}$$
Then combining (3) and (4) gives:
$$l = {(l-S_B)S_A(1+1/\alpha) \over S_A-S_B}$$
Which (eventually) rearranges to:
$$l = S_A{\alpha+1 \over \alpha+{S_A \over S_B}} \tag{*}$$
All we have to do now is plug in some values. We're told that $\alpha = 3$, $S_A = 150$ and $S_B = 75$:
$$l = S_A{3+1 \over 3+{150 \over 75}} = S_A{4 \over 5} = 150 \times {4 \over 5} = 120$$
And we can find out the relative speeds too (absolute speeds can't be found since we have no time values given in the question):
$${e \over v} = \alpha {S_A-S_B \over S_A+\alpha S_B} = 3 {150-75 \over 150+3 \times 75} = {3 \over 5}$$
Which means:
Bob is travelling at 5/3 the speed of the escalator and Alice is traveling at 5 times the speed of the escalator. Wikipedia says escalators move at 0.3–0.6m/s, so Alice would be moving at 1.5-3.0m/s (~3–7mph). Quite fast for walking down stairs and an accident waiting to happen, but plausible.
Knowing only that Alice covers 3 steps each time that Bob covers 1 step, nothing further needs to be considered about speeds.   In fact, the escalator may move erratically, or even not at all.
Picture five identical escalators in sequence, effectively forming a single escalator 5 times as long. Start Alice coming down from the very top at the same time as Bob starts up from the bottom.
They will collide after Alice descends 3 escalator lengths and Bob ascends 2 lengths.
This works out so simply because each step that disappears at the top, behind Alice, is simultaneously compensated by a new step that appears at the bottom, behind Bob.
(always visible) Still-visible Alice's steps Bob's steps | | | | TOP AAAAAAAAAAAAAAAAAAAAAAAAAAA.............BBBBBBBBBBBAAAAAAAAAAAAAAAA BOTTOM | | | | Steps between As many steps as Alice and Bob those of Alice that disappeared at the top
The total number of visible steps is always the sum of Alice's and Bob's steps so far plus the remaining steps between the two.
When Alice and Bob collide, that total is just their combined steps.   So why 5 escalators?
While Alice takes 150 steps to cover an escalator, Bob takes takes 75 steps but each of those steps takes 3 times as long as Alice's.
Thus the ratio of times for a single escalator is $~$ Alice$\bf\kern 2mu : \kern 2mu$Bob $~$=$~$ 150$\bf\kern 3mu : \kern 2mu$75$\scriptsize\raise1mu\times$3 $~$=$~$ 2$\bf\kern2mu : \kern2mu$3.
For Alice and Bob to meet after the same amount of time, the ratio of their distances must be 3$\bf\kern2mu : \kern2mu$2.
The simplest number that divides into portions with that ratio is 5. Could also have used 1 escalator divided into 3/5 and 2/5, or 100 escalators divided into 60 and 40, and so on.
As per my calculations, answer is:
$120$
Calculations:
Let us assume that the number of steps is $x$
The upward speed of the escalator is $y$ $\frac{steps}{second}$.
Also, let the speed of Bob(normal speed of walking) be $b$ $\frac{steps}{second}$,
then the speed of Alice will be $3b$ $\frac{steps}{second}$
One thing that is same for both of them is: $x$, as they both travelled through the same escalator.
As we have distance = speed x time,
Thus, we have two equations:
$x= (b+y)*t_1$ $ \ldots \space$ eqn i
$x= (3*b-y)*t_2$ $ \ldots \space$ eqn. ii
Using $t_1 = \frac{75}{b}$ and $t_2 = \frac{150}{3b}$ (as the actual time taken will be actual distance, which is the count of foot-steps, divided by their speed),
we can solve the equation,
$(b+y)*\frac{75}{b} = (3*b-y)*\frac{150}{3b}$
which gives, $3b = 5y$
And
putting this in either of the two equations(i or ii),
in eqn. ii
$x= (5y-y) \frac{150}{5y}$
$x= \frac{4*y*150}{5y}$
the final answer is $x = 120$
This is another derivation of the same result, but shows that the speed of the escalator can not be determined and could be any suitable constant value (provided that it does not outrun Alice).
Alice walks $a$ steps per unit of time. Bob walks at $b$ steps per unit of time. The escalator moves up $u$ steps per unit of time.
Alice is slowed down by the escalator, but in a time $T_a$ she will have walked enough to compensate the loss of speed, and will have covered $n$ steps, the length of the escalator.
\begin{equation} (a - u) T_a = n ~~~~~~~~~~ (1) \end{equation}
Note that it must be $a > u$.
Alice physically takes more than $n$ steps, precisely she takes $150$ steps during that time $T_a$.
\begin{equation} a T_a = 150 ~~~~~~~~~~ (2) \end{equation}
Bob is sped up by the escalator, and in a time $T_b$ he will have walked enough to cover $n$ steps, the length of the escalator.
\begin{equation} (b + u) T_b = n ~~~~~~~~~~ (3) \end{equation}
Bob physically takes less than $n$ steps, precisely he takes $75$ steps during that time $Tb$.
\begin{equation} b T_b = 75 ~~~~~~~~~~ (4) \end{equation}
Alice walks faster than Bob by a factor of $3$.
\begin{equation} a = 3 b ~~~~~~~~~~ (5) \end{equation}
From (2), (4) and (5) it follows that $T_a / T_b = 2/3$. Then we rewrite (1) and (3) like this:
\begin{equation} a T_a - n = u T_a ~~~~~~~~~~ (6) \end{equation}
\begin{equation} b T_b - n = -u T_b ~~~~~~~~~~ (7) \end{equation}
And we divide (6) by (7). On the right side the $u$ factors cancel out and $T_a/T_b=2/3$, hence:
\begin{equation} \frac{a T_a - n}{b T_b - n} = -2/3 ~~~~~~~~~~ (8) \end{equation}
Note that (8) is well defined for any non-zero $u$.
Replacing (2) and (4) in (8) we obtain:
\begin{equation} \frac{150 - n}{75 - n} = -2/3 ~~~~~~~~~~ (9) \end{equation}
And from (9) it is easy to derive $n = 120$.
The answer is
215 steps
Reasoning:
Bob starts going up the stairs. When he is 25 stairs up, Alice starts coming down. They meet roughly in the middle and have a very painful tumble!
Sanity check
This and none of the other answers could be correct. What escalator has more than 20 steps?!?