Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
A ship has different flags. A signal is made by hoisting at least of them, one above another, on a mast. The order of the flags matters. How many different signals can be made?
A permutation is an arrangement in a definite order. The number of ways to arrange of different objects is , with . If repeats are allowed, there are arrangements.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Step 1. Split by size. A signal uses , , or flags, and these cases do not overlap.
Step 2. Count each case.
Step 3. Add. .
Answer: signals.
Log in to join the discussion.
Loading…
With Standard, you also open 12 more problems, 2 Python labs and 1 extra course. Everything you have used here stays free, always.