Question: a man has 7 friends in how many ways?
Answer: The number of way 7 friends can be invited to a party is 2^7 - 1 = 127.