Freeway Puzzle
   

   

 Math Help -> Puzzles -> Freeway -> Answer 

Freeway Puzzle

Statement of the Puzzle

Alice: I was driving along a highway recently for one hour at a constant and very special speed.

Bob: What was special about it?

Alice: The number of cars that I passed was the same as the number of cars that passed me!

Bob: It seems as if your speed must have been the median of the speeds of the cars on the road.

Alice: Or was it the mean?

Bob: Those two are often confused. Maybe it's neither? We'll have to think clearly about this.

Help Alice and Bob out? Was Alice's speed the median, the mean, or neither?

Notes: Assume that any car on the road drives at a constant nonzero speed of s miles per hour, where s is a positive integer. And suppose that for each s, the cars driving at speed s are spaced uniformly, with d(s) cars per mile, d(s) being an integer. And because each mile looks the same as any other by the uniformity hypothesis, we can take mean and median to refer to the set of cars in a fixed one-mile segment, the half-open interval [M, M+1), at some instant.

Solution

My speed is the mean.

Let N be the number of cars in that one-mile stretch of roadway, i.e. the sum of d(s).

The mean speed of the cars is

(1/N)

S

s d(s)

Let a be my speed.

The number of faster cars of any given speed that pass me in an hour is proportional both to the number of cars traveling that speed and proportional to the difference between those cars' speed and mine. The function n(s) gives this number:

n(s)=(s-a)d(s)

By the same reasoning, the number of slower cars of any given speed that I pass in an hour is given by the negative of n(s).

We are told that the number of cars that pass me equals the number of cars I pass, so the sum of n(s) where s > a equals the absolute value of the sum of n(s) where s < a. In other words, we are told the sum of n(s) is zero.

S

n(s) = 0

S

(s-a) d(s) = 0

S

s d(s) = 

S

a d(s)

S

s d(s) = N a
(1/N)

S

s d(s) = a

Related pages in this website

 

 

The webmaster and author of the Math Help site is Graeme McRae.
     [home]  [email]  [search]  [Links to Math Sites]  [Whiteboard]