Number of ways to place 25 passengers in the bus with 49 seats with a restriction A bus has 49 seat

Arraryeldergox2

Arraryeldergox2

Answered question

2022-06-22

Number of ways to place 25 passengers in the bus with 49 seats with a restriction
A bus has 49 seats divided into 22 pairs of 2 neighbouring seats (numbers 1 44 ,, the neighbouring seats are (1, 2), (3, 4),…,(43, 44), while (2, 3) are separated seats) and 5 seats in the end of the bus.
The passengers are sitting according to a greedy algorithm: if there is nobody sitting on the seats numbered 45 49 ,, a passenger sits on one of those. Otherwise, they sit on one of the first 44 seats with an empty neighbouring seat. If there are none of free pairs of seats, an there is only one person sitting in the end of the bus, they sit on the remaining seats in the end. If there are no free pairs of seats and there are at least 2 people in the end of the bus,a passenger finds any free seat.
In how many different ways can we place passengers in the bus? Note: it is not important if a person A sat on the seat number 1 before a person B sat on the seat number 3 and vice-versa.

Answer & Explanation

Rebekah Zimmerman

Rebekah Zimmerman

Beginner2022-06-23Added 32 answers

Step 1
The first 23 seats filled will be one front seat and 22 from double seats. Now the following clause.
"If there are none of free pairs of seats, and there is only one person sitting in the end of the bus, they sit on the remaining seats in the end. If there are no free pairs of seats and there are at least 2 people in the end of the bus, a passenger finds any free seat."
Step 2
I interpret it to mean
- The 24th passenger must occupy a front seat
- The 25th passenger can now occupy any seat
Thus, before permuting the persons, seats can be occupied in ( 5 1 ) 2 22 ( 4 1 ) ( 25 1 ) and total arrangements = 5 2 22 4 25 25 !
Zion Wheeler

Zion Wheeler

Beginner2022-06-24Added 11 answers

Step 1
The problem can be divided into two sub problem:
1. Which seats are occupied
2. Which person sit on which seat
Which seats are occupied
There are two possibilities:
- 3 out of 5 seats at the back are occupied and 1 of each pair from the 22 pairs in front are occupied
- 2 out of 5 seats at the back are occupied and 1 of each pair from the 22 pairs in front are occupied but 1 of the pairs is fully occupied
The number of possibilities are ( 5 3 ) × 2 22 + ( 5 2 ) × ( 22 1 ) × 2 21
Which person sit on which seat
This is a simple permutation of the selected seats. Possibilities are 25!
Combine the two problem
Total way of seating the persons are 25 ! ( ( 5 3 ) × 2 22 + ( 5 2 ) × ( 22 1 ) × 2 21 )

Do you have a similar question?

Recalculate according to your conditions!

New Questions in Discrete math

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?