Given persons: S, P, L, Q, R, M, and I
1) M lives on the floor immediately above S who does not live on an odd-numbered floor.
- M does not live on the fifth floor.
(Here, there are two possible cases: Case 1: S lives on the 2nd floor, and Case 2: S lives on the 6th floor)
| Floor Numbers | Persons | |
|---|
| Case 1 | Case 2 | |
| 7 | | M |
| 6 | | S |
| 5 | | |
| 4 | | |
| 3 | M | |
| 2 | S | |
| 1 | | |
3) Three persons live between I and M.
4) I does not live on the first floor.
| Floor Numbers | Persons | |
|---|
| Case 1 | Case 2 | |
| 7 | I | M |
| 6 | | S |
| 5 | | |
| 4 | | |
| 3 | M | I |
| 2 | S | |
| 1 | | |
5) Two persons live between R and S.
(In case 2, there is no place for R, so we can eliminate case 2)
6) Q lives neither on the first floor nor on the fourth floor.
7) P neither lives on an odd-numbered floor nor on the topmost floor.
The final arrangement will be as follows:
| Floor Numbers | |
|---|
| Persons | |
| 7 | I |
| 6 | Q |
| 5 | R |
| 4 | P |
| 3 | M |
| 2 | S |
| 1 | L |
Hence, L and I live on the first floor and the topmost floor respectively.