Skip to main content

1999 AIME Problem 13

Problem 13 of 15HarderNumber TheoryCombinatoricsProbability & Statistics

Forty teams play a tournament in which every team plays every other team exactly once. No ties occur, and each team has a 50%50\% chance of winning any game it plays. The probability that no two teams win the same number of games is mn,\frac{m}{n}, where mm and nn are relatively prime positive integers. Find log⁡2n.\log_2 n.

Your answer

Integer from 0 to 999
Show solution

Solution

There are (402)=780\binom{40}{2} = 780 games, hence 27802^{780} equally likely outcomes. If all 4040 win totals are distinct, they must be exactly 0,1,…,39.0, 1, \ldots, 39. In that case the team with 3939 wins beat everyone, the team with 3838 wins beat everyone except that team, and so on: the assignment of totals to teams determines every game. Conversely each of the 40!40! assignments arises from exactly one outcome, so the probability is 40!2780.\frac{40!}{2^{780}}. By Legendre’s formula the power of 22 dividing 40!40! is 20+10+5+2+1=38.20 + 10 + 5 + 2 + 1 = 38. In lowest terms the denominator is therefore n=2780−38=2742,n = 2^{780 - 38} = 2^{742}, so log⁡2n=742.\log_2 n = 742.
AoPS wiki

Tagged: basic probability · permutations · Legendre’s Formula

More practice