Skip to main content

2011 AMC 12B Problem 25

Problem 25 of 25HarderAlgebraNumber TheoryProbability & Statistics

For every mm and kk integers with kk odd, denote by [mk]\left[\dfrac{m}{k}\right] the integer closest to mk.\dfrac{m}{k}. For every odd integer k,k, let P(k)P(k) be the probability that [nk]+[100−nk]=[100k]\left[\dfrac{n}{k}\right]+\left[\dfrac{100-n}{k}\right]=\left[\dfrac{100}{k}\right] for an integer nn randomly chosen from the interval 1≤n≤99!.1\le n\le99!. What is the minimum possible value of P(k)P(k) over the odd integers kk in the interval 1≤k≤99?1\le k\le99?

Answer choices

Show solution

Solution

Because [n+mkk]=[nk]+m,\left[\dfrac{n+mk}{k}\right]=\left[\dfrac{n}{k}\right]+m, whether nn satisfies the identity depends only on n mod k.n\bmod k. Since 99!99! is divisible by kk for 1≤k≤99,1\le k\le99, every residue class is equally likely. Write 100=qk+r100=qk+r and n=q1k+r1,n=q_1k+r_1, choosing both remainders in [−(k−1)2,k−12].[-\frac{(k-1)}{2},\frac{k-1}{2}]. If r≥0,r\ge0, no carry occurs precisely when r−k−12≤r1≤k−12;r-\frac{k-1}{2}\le r_1\le\frac{k-1}{2}; this gives k−rk-r residue classes. The case r<0r<0 similarly gives k+rk+r classes. Hence in both cases P(k)=1−∣r∣k. P(k)=1-\dfrac{|r|}{k}. To minimize P(k)P(k) we maximize ∣r∣/k.|r|/k. If r=k−12,r=\frac{k-1}{2}, then 201=k(2q+1),201=k(2q+1), and the largest possible k≤99k\le99 is the divisor 6767 of 201.201. If r=−(k−1)2,r=-\frac{(k-1)}{2}, then 199=k(2q−1);199=k(2q-1); because 199199 is prime, only k=1k=1 is possible. In every remaining case ∣r∣≤k−32,|r|\le\frac{k-3}{2}, so P(k)≥12+32k≥12+3198>3467. \begin{aligned} P(k)&\ge\dfrac12+\dfrac{3}{2k} \\ &\ge\dfrac12+\dfrac{3}{198} \\ &>\dfrac{34}{67}. \end{aligned} For k=67,k=67, P(67)=12+12⋅67=3467. P(67)=\dfrac12+\dfrac{1}{2\cdot67}=\dfrac{34}{67}. Thus, the correct answer is D.
AoPS wiki

Tagged: modular arithmetic · floor and ceiling functions · basic probability

More practice