Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
A code has , or letters, each from A, B, C, D and E. Letters may repeat. How many codes are there?
If a task can be done in ways or in other ways, with no way in both, it can be done in ways. Stages one after another multiply; separate cases add. Fill a place that has a rule first.
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. The cases. A code has exactly one length, so the cases do not overlap.
Step 2. Count each. , then , then .
Step 3. Add. codes.
Answer: codes.
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.