Given, that a gentleman has 6 friends to invite but he send invitations to them if he has 3 servants. He send to invitations to one of his friends in 3 different ways
Similarly he send invitations to them if has 3 servants = 3 × 3 × 3 × 3 × 3 × 3 = 36 = 729