1.3.1 problem 23

We are interested in the case of consecutive floors. There are equally likely possibilities

For each of this possibilities, there are ways for person to choose button, for second and for third ( in total by multiplication rule).

So number of favorable combinations is

Generally each person have floors to choose from so for people there are combinations by multiplication rule.

Hence, the probability that the buttons for consecutive floors are pressed is