THE PROBLEM STATEMENT:
MSIT has to send a team for a quiz competition. The team is supposed to have (n) members and the team is supposed to have students of semester 2 and semester 4.
The team picked must satisfy the following conditions:
If all the students(n) are placed in row then no two sem2 students should sit next to each other, as in this case a sem2 student can get the maximum help from the seniors in case a difficult question is asked from him/her.
Your task is simple, to calculate the number arrangements possible for a team size, n, if the number of sem2 and sem4 students can vary from one arrangement to another.
For example :
If a team of 3 students is formed, then the possible arrangements are:
Arrangements | Member 1 | Member 2 | Member 3 |
---|---|---|---|
Arrangement 1 | sem2 | sem4 | sem2 |
Arrangement 2 | sem2 | sem4 | sem4 |
Arrangement 3 | sem4 | sem2 | sem4 |
Arrangement 4 | sem4 | sem4 | sem2 |
Arrangement 5 | sem4 | sem4 | sem4 |
Explanation for the sample input is in the problem statement.