From a class of 25 students, 10 are to be chosen for an excursion party. There are 3 students who decide that either all of them will join or none of them will join. In how many ways can the excursion party be chosen?
Here, total students are 25 from which 10 are chosen for an excursion party. If the 3 students join the party, then 7 students out of the remaining 22 students have to be chosen, or if the 3 students do not join the party, then 10 students out of remaining 22 students will be chosen.
∴ Number of ways of selection
= 3C3×22C7+3C0×22C10
= 1×22!7! 5!+1×22!10! 12!
= 22×21×20×19×18×17×16×15!7×6×5×4×3×2×1×15!
= 22×21×20×19×18×17×16×15×14×13×12!10×9×8×7×6×5×4×3×2×1×12!
= 170544+646646=817190.