(i) He can invite 2 friends three times each
Lets select first those 2 friends in 3C2 ways
Now these two friends each three time can be invited on 6 days in 6!3! 3!
Thus total number of ways 2 friends can be invited three times =3C2×6!3! 3!
(ii) Another possibility is that he invites all three friends 2 times each
Then number of ways =6!2! 2! 2!
(iii) One more possibility is that he invites one friend only once, one two times and one three times.
Then the friend who has to be invited thrice can be selected as 3C1, now the friend who has to be invited twice can be selected as 2C1
total number of ways =3C1×2C1×6!2! 3!
Hence total number of ways
=3C2×6!3! 3!+6!2! 2! 2!+3C1×2C1×6!2! 3!=510
∴N/170=3