Skip to main content

2011 AMC 12B Problem 25

Problem 25 of 25HarderAlgebraNumber TheoryCounting & Probability

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]+[100nk]=[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 1n99!.1\le n\le99!. What is the minimum possible value of P(k)P(k) over the odd integers kk in the interval 1k99?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 nmodk.n\bmod k. Since 99!99! is divisible by kk for 1k99,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 [(k1)2,k12].[-\frac{(k-1)}{2},\frac{k-1}{2}]. If r0,r\ge0, no carry occurs precisely when rk12r1k12;r-\frac{k-1}{2}\le r_1\le\frac{k-1}{2}; this gives krk-r residue classes. The case r<0r<0 similarly gives k+rk+r classes. Hence in both cases P(k)=1rk. P(k)=1-\dfrac{|r|}{k}. To minimize P(k)P(k) we maximize r/k.|r|/k. If r=k12,r=\frac{k-1}{2}, then 201=k(2q+1),201=k(2q+1), and the largest possible k99k\le99 is the divisor 6767 of 201.201. If r=(k1)2,r=-\frac{(k-1)}{2}, then 199=k(2q1);199=k(2q-1); because 199199 is prime, only k=1k=1 is possible. In every remaining case rk32,|r|\le\frac{k-3}{2}, so P(k)12+32k12+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+1267=3467. P(67)=\dfrac12+\dfrac{1}{2\cdot67}=\dfrac{34}{67}. Thus, the correct answer is D.

More practice

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

Problem text and solution from the LIVE past-contest archive. See also the AoPS wiki page for community solutions.