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
Let x,y,z be the friends and a,b,c denote the case when x is invited a times, y is invited b times, and z is invited c times.
Now, we have the following possibilities: (a,b,c)=(1,2,3) or (330) or (222)
[grouping of 6 days of week]
Hence, the total number of ways is 1!2!3!6!3!+3!3!2!6!3!+(2!2!2!)3!6!3! =360+60+90=510