There are 5 positions on a flagstaff and 4 different colors of flags ( at least 5 of each color). How many different signals can be made by displaying 5 flags simultaneously?
-
How many choices for the top position? – quasi Dec 30 '17 at 19:50
-
No, just $4$. From the point of view of someone looking at the flags, the top position is one of $4$ colors. The fact that you have $5$ flags of each color makes it so that you can't run out of any given color. – quasi Dec 30 '17 at 20:04
2 Answers
For each of the 5 positions on the flagpole, you have $4$ color possibilities:
$4*4*4*4*4=1024$
The 5th flags are there because we still say there are $4$ colors at the fifth position! Here we enumerate the color choice at each pole position.
If you had only $4$ flags, you have to remove the condition when all $5$ flags are the same colors in the first calculation, which occur only once for each color:
$(4*4*4*4*4)-4=1020$ (different codes with $4$ flags of each color only)
- 1,312
- 196
-
-
The question asks for how many distinct signals. So only the colors matter, and where they're placed. – quasi Dec 30 '17 at 20:03
-
-
Yes! there are 1024 possibilities (4 colors of 5 flag each at 5 positions). – Gwanguy Dec 31 '17 at 08:01
Like @Gwanguy said, The first position flag can have one of $4$ colors so $4$ possibilities. The next one can also have one of $4$ colors( since there are multiple flags of the same colors) and so on until the fifth spot. So if repetition of colors is allowed on different flag staffs then the answer is $4^5$.
However, if it is required to have different colors of flags on different flag staffs then you can have $4$ for the first one, $3$ for the second Flagstaff, $2$ for the 3rd and $1$ for the 4th,followed by $4$ again on the next one(since one color would have to be repeated).
So for the second case (where only one flag can be repeated) is = $4*4!$ or $4*\underbrace{4*3*2*1}$ = $96$
- 1,312