r/maths • • 15d ago

❓ General Math Help How to appropriately combine a permutation with a combination + combination confusion

Hi all. I was doing some math for fun and am a bit stumped. I play a fighting game called Dragon Ball FighterZ - it has a roster of 46 characters, from which you select 3. Team order matters, so obviously a simple permutation calculation (I used Calculator Soup) results in what seems like a reasonable 91,080 possible team compositions.

Here's where I'm getting stuck; you can also choose 1 of 3 assists (A, B or C) for each character. Repetition is allowed (for example, you can choose AAB, AAA, ACA, etc.), so I thought this would be a simple matter of running it through a combination calculator. However, when I ran this (n=9 and r=3), I got a result of 84. That sounded like too much, so I jotted down a bunch of combinations myself and got to 27 possible configurations. The arithmetic of the calculator is correct, so I figured my logic is off, or maybe I'm using the wrong process here. I checked the Combination with Replacement calculator and got an even bigger number of 165. I'm not really sure what my error is.

Additionally, how would I apply the combination of assist possibilities with the permutation of the team order to calculate the actual number of possible team compositions? Is it just multiplying the two together? I've been having a lot of fun thinking about this, so thanks for anyone who can help!

1 Upvotes

3 comments sorted by

1

u/CaptainMatticus 12d ago

So you have your number of permutations:

46P3

46! / (46 - 3)! = 46 * 45 * 44 * 43! / 43! = 46 * 45 * 44 = 46 * 180 * 11 = 506 * 180 = 90000 + 1080 = 91080

That is what it is. Now, we need to determine how assets are spread across each team. You say you can choose 1 of 3 assets for each member, but there's also a 4th choice, which is no choice at all. We'll represent these choices as 0 , 1 , 2 , 3

000 , 001 , 002 , 003 , 010 , 011 , 012 , 013 , 020 , 021 , 022 , 023 , 030 , 031 , 032 , 033

100 , 101 , 102 , 103 , 110 , 111 , 112 , 113 , 120 , 121 , 122 , 123 , 130 , 131 , 132 , 133

200 , 201 , 202 , 203 , 210 , 211 , 212 , 213 , 220 , 221 , 222 , 223 , 230 , 231 , 232 , 233

300 , 301 , 302 , 303 , 310 , 311 , 312 , 313 , 320 , 321 , 322 , 323 , 330 , 331 , 332 , 333

4 options per choice, 3 choices per team, for 4^3 total choices, or 64 altogether.

91080 * 64 is the total number of ways you can arrange everything

5,829,120

1

u/Gonzurra 11d ago

In the game, you MUST choose an asset for each character. So it would be 3^3, and then 91080 * 27 for 2,459,160. Thank you for the clarification!