Answer:
(a) 9 buildings
(b) 2^n -1
Step-by-step explanation:
The number of distinct non-empty subsets of b objects is 2^b -1. Since the subsets are distinct, each could represent a list of the buildings, from the set of b buildings, in which a student is taking courses.
(a) For 8 buildings, 2^8 -1 = 255 students could enroll. for 9 buildings, 2^9-1 = 511 students could enroll.
For 500 students, 9 buildings are required.
__
(b) The maximum number of students for n buildings is ...
2^n -1