Bonjour
Khan Exo
je ne trouve pas la meme solution que celle donnée , et je ne comprends ou je fais l'erreur de raisonement
You need to put your reindeer, Ezekiel, Prancer, Quentin, Lancer, and Rudy,
in a single-file line to pull your sleigh. However,
Rudy and Lancer are fighting, so you have to keep them apart, or they won't fly.
How many ways can you arrange your reindeer?
voila ma solution:
6 facons de ranger les 2 rennes qui ne s'entendent pas
10001
10010
10100
01001
01010
00101
multiplié par le nombre de facon de ranger 3 rennes dans 3 slots=3!=3*2*1=6
je trouve donc 36, la solution donnée 72 me semble aussi correcte quand je suis le raisonnement donné ci dessous.
c'est une histoire de fou !
Forget about the reindeer that can't be together for a second,
and let's try to figure out how many ways we can arrange the reindeer if we don't have to worry about that.
We can build our line of reindeer one by one: there are 5 slots, and we have 5 different reindeer we can put in the first slot.
Once we fill the first slot, we only have 4 reindeer left,
so we only have 4 choices for the second slot. So far, there are 5*4=20 unique choices we can make.
We can continue in this way for the third reindeer, then the fourth,
and so on, until we reach the last slot, where we only have one reindeer left and so we can only make one choice.
So, the total number of unique choices we could make to get to an arrangement of reindeer is 5*4*3*2*1=120.
Another way of writing this is 5! , or 5 factorial. But we haven't thought about the two reindeer who can't be together yet.
There are 120 different arrangements of reindeer altogether,
so we just need to subtract all the arrangements where Rudy and Lancer are together. How many of these are there?
We can count the number of arrangements where Rudy and Lancer are together by treating them as one double-reindeer.
Now we can use the same idea as before to come up with 4*3*2*1=24 different arrangements. But that's not quite right.
Why? Because you can arrange the double-reindeer with Rudy in front or with Lancer in front,
and those are different arrangements! So the actual number of arrangements with Rudy and Lancer together is 24*2=48
So, subtracting the number of arrangements where Rudy and Lancer are together from the total number of arrangements,
we get 72 arrangements of reindeer where they will fly.
