Q. A man has three friends. The number of ways he can invite one friend everyday for dinner on six successive nights so that no friend is invited more than three times is

 2621  211 Permutations and Combinations Report Error

Solution:

Let be the friends and denote the case when is invited times, is invited times, and is invited times.
Now, we have the following possibilities:
or or
[grouping of days of week]
Hence, the total number of ways is