Text
Polite Ninja sends a contingent of secret agents to guard the (distinct) hotels of the capital, so that each hotel is assigned one agent, and no more than one.
- (a) In how many ways can he assign the agents to the hotels?
- (b) He wants to equip the agents with identical sniper rifles, no more than one each: in how many ways can he hand them out?
- (c) He distributes identical gold ingots to his agents, possibly more than one each: in how many ways?
- (d) He posts a list of different car models and asks each agent to mark their favourite (the same model may be chosen by several agents): in how many ways can the choice happen?
Solution
(a) Each of the hotels gets a distinct agent: simple arrangements of objects in class : (b) The rifles are identical and at most one each: just choose the armed agents out of — simple combinations: (c) Identical ingots, no limit: combinations with repetition ( objects into “urns”, i.e. stars and bars): (d) Each agent independently picks model out of : arrangements with repetition: