2012 AIME II Solutions

Scroll down to view professionally curated solutions from LIVE by Po-Shen Loh, print PDF solutions, view answer key, or take the full timed exam.

All problems are used with official legal permission of the Mathematical Association of America (MAA).

1.

Find the number of ordered pairs of positive integer solutions (m,n)(m, n) to the equation 20m+12n=2012.20m + 12n = 2012.

Concepts:Diophantine Equationmodular arithmetic
Difficulty rating: 1870
Small Hint:

Divide the equation by 44 to get 5m+3n=5035m + 3n = 503

Big Hint:

Modulo 33 the equation forces m≡1(mod3);m \equiv 1 \pmod{3}; count the values m=3k+1m = 3k + 1 that keep nn positive

Solution:

Dividing by 44 gives 5m+3n=503.5m + 3n = 503. Reducing modulo 3,3, we need 2m≡503≡2(mod3),2m \equiv 503 \equiv 2 \pmod{3}, so m≡1(mod3).m \equiv 1 \pmod{3}. Write m=3k+1m = 3k + 1 with k≥0;k \ge 0; then 3n=503−5(3k+1)3n = 503 - 5(3k + 1) =498−15k,= 498 - 15k, so n=166−5k.n = 166 - 5k.

This is positive exactly when 5k≤165,5k \le 165, that is k≤33.k \le 33. So k=0,1,…,33k = 0, 1, \ldots, 33 all work, giving 3434 ordered pairs.

2.

Two geometric sequences a1,a_1, a2,a_2, a3,a_3, …\ldots and b1,b_1, b2,b_2, b3,b_3, …\ldots have the same common ratio, with a1=27,a_1 = 27, b1=99,b_1 = 99, and a15=b11.a_{15} = b_{11}. Find a9.a_9.

Difficulty rating: 1750
Small Hint:

With common ratio r,r, the condition a15=b11a_{15} = b_{11} says 27r14=99r1027r^{14} = 99r^{10}

Big Hint:

You only need r4,r^4, because a9=27r8a_9 = 27r^8

Solution:

Let rr be the shared common ratio. Then a15=27r14a_{15} = 27r^{14} and b11=99r10,b_{11} = 99r^{10}, so 27r14=99r1027r^{14} = 99r^{10} gives r4=9927=113.r^4 = \frac{99}{27} = \frac{11}{3}.

Therefore a9=27r8=27(113)2=27⋅1219=3⋅121=363. \begin{aligned} a_9 &= 27r^8 = 27\left(\frac{11}{3}\right)^2 \\ &= 27 \cdot \frac{121}{9} = 3 \cdot 121 = 363. \end{aligned}

3.

At a certain university, the division of mathematical sciences consists of the departments of mathematics, statistics, and computer science. There are two male and two female professors in each department. A committee of six professors is to contain three men and three women and must also contain two professors from each of the three departments. Find the number of possible committees that can be formed subject to these requirements.

Difficulty rating: 2070
Small Hint:

Each department contributes exactly two members; classify by how the three men are spread across the departments

Big Hint:

Either every department sends one man and one woman, or one department sends two men, another sends two women, and the third sends one of each

Solution:

Each department contributes exactly two committee members. If every department sends one man and one woman, there are 2⋅2=42 \cdot 2 = 4 choices per department, for 43=644^3 = 64 committees.

Otherwise some department sends two men. To keep three of each gender, another department must then send its two women, and the remaining department sends one man and one woman. There are 33 ways to pick the all-male department, 22 ways to pick the all-female department, and 2⋅2=42 \cdot 2 = 4 choices in the mixed department (the two-man and two-woman selections are forced), for 3⋅2⋅4=243 \cdot 2 \cdot 4 = 24 committees.

The total is 64+24=88.64 + 24 = 88.

4.

Ana, Bob, and Cao bike at constant rates of 8.68.6 meters per second, 6.26.2 meters per second, and 55 meters per second, respectively. They all begin biking at the same time from the northeast corner of a rectangular field whose longer side runs due west. Ana starts biking along the edge of the field, initially heading west, Bob starts biking along the edge of the field, initially heading south, and Cao bikes in a straight line across the field to a point DD on the south edge of the field. Cao arrives at point DD at the same time that Ana and Bob arrive at DD for the first time. The ratio of the field’s length to the field’s width to the distance from point DD to the southeast corner of the field can be represented as p:q:r,p : q : r, where p,p, q,q, and rr are positive integers with pp and qq relatively prime. Find p+q+r.p + q + r.

Difficulty rating: 2390
Small Hint:

Let the field be LL by WW and let xx be the distance from DD to the southeast corner; set the three riders’ travel times equal

Big Hint:

Equating Bob’s and Cao’s times gives 168W2−625Wx+168x2=0,168W^2 - 625Wx + 168x^2 = 0, which factors into two linear factors

Solution:

Let the field have length LL (west) and width WW (south) with L>W,L \gt W, and let xx be the distance from DD to the southeast corner. Ana rides around the perimeter a distance 2L+W−x,2L + W - x, Bob rides W+x,W + x, and Cao rides W2+x2,\sqrt{W^2 + x^2}, all in the same time: 2L+W−x8.6=W+x6.2=W2+x25. \begin{aligned} \frac{2L + W - x}{8.6} &= \frac{W + x}{6.2} \\ &= \frac{\sqrt{W^2 + x^2}}{5}. \end{aligned}

The first equality gives L=6W+37x31.L = \frac{6W + 37x}{31}. Squaring the second, 25(W+x)2=38.44 (W2+x2),25(W + x)^2 = 38.44\,(W^2 + x^2), which simplifies to 168W2−625Wx+168x2=0,168W^2 - 625Wx + 168x^2 = 0, factoring as (24W−7x)(7W−24x)=0.(24W - 7x)(7W - 24x) = 0.

The root x=7W24x = \frac{7W}{24} gives L=13W24<W,L = \frac{13W}{24} \lt W, which is impossible, so x=24W7x = \frac{24W}{7} and then L=30W7.L = \frac{30W}{7}. The ratio is L:W:x=30:7:24,L : W : x = 30 : 7 : 24, and p+q+r=30+7+24=61.p + q + r = 30 + 7 + 24 = 61.

5.

In the accompanying figure, the outer square SS has side length 40.40. A second square S′S' of side length 1515 is constructed inside SS with the same center as SS and with sides parallel to those of S.S. From each midpoint of a side of S,S, segments are drawn to the two closest vertices of S′.S'. The result is a four-pointed starlike figure inscribed in S.S. The star figure is cut out and then folded to form a pyramid with base S′.S'. Find the volume of this pyramid.

Difficulty rating: 2230
Small Hint:

The four triangular points fold up along the sides of S′,S', and their tips meet at the apex above the center of S′S'

Big Hint:

The slant from the midpoint of a side of S′S' to the star tip has length 20−152;20 - \frac{15}{2}; use a right triangle through the center to get the height

Solution:

Folding the star along the sides of S′S' lifts the four triangular points so that their tips (the midpoints of the sides of SS) meet at a single apex V.V. Let MM be the center of S′S' and PP the midpoint of one of its sides. In the flat figure, the distance from PP to the tip of its triangle is 20−152=252,20 - \frac{15}{2} = \frac{25}{2}, and this becomes the slant PVPV after folding.

Triangle PMVPMV has a right angle at M,M, with PM=152,PM = \frac{15}{2}, so the height is VM=(252)2−(152)2=100=10. \begin{aligned} VM &= \sqrt{\left(\tfrac{25}{2}\right)^2 - \left(\tfrac{15}{2}\right)^2} \\ &= \sqrt{100} = 10. \end{aligned} The volume is 13⋅152⋅10=750.\frac{1}{3} \cdot 15^2 \cdot 10 = 750.

6.

Let z=a+biz = a + b\mathrm{i} be the complex number with ∣z∣=5|z| = 5 and b>0b \gt 0 such that the distance between (1+2i)z3(1 + 2\mathrm{i})z^3 and z5z^5 is maximized, and let z4=c+di.z^4 = c + d\mathrm{i}. Find c+d.c + d.

Difficulty rating: 2510
Small Hint:

Factor the distance as ∣z∣3⋅∣1+2i−z2∣,|z|^3 \cdot |1 + 2\mathrm{i} - z^2|, so you need the point z2z^2 on the circle of radius 2525 farthest from 1+2i1 + 2\mathrm{i}

Big Hint:

The farthest point lies in exactly the opposite direction: z2=−55 (1+2i);z^2 = -5\sqrt{5}\,(1 + 2\mathrm{i}); now square once more

Solution:

The distance is ∣(1+2i)z3−z5∣|(1 + 2\mathrm{i})z^3 - z^5| =∣z∣3⋅∣1+2i−z2∣= |z|^3 \cdot |1 + 2\mathrm{i} - z^2| =125 ∣1+2i−z2∣.= 125\,|1 + 2\mathrm{i} - z^2|. As zz runs over the circle ∣z∣=5|z| = 5 with b>0,b \gt 0, the square z2z^2 attains every point of the circle ∣w∣=25|w| = 25 (the condition b>0b \gt 0 merely selects one of the two square roots). The point of that circle farthest from 1+2i1 + 2\mathrm{i} is diametrically opposite in direction: z2=−25⋅1+2i∣1+2i∣=−55 (1+2i). \begin{aligned} z^2 &= -25 \cdot \frac{1 + 2\mathrm{i}}{|1 + 2\mathrm{i}|} \\ &= -5\sqrt{5}\,(1 + 2\mathrm{i}). \end{aligned}

Squaring, z4=125 (1+2i)2z^4 = 125\,(1 + 2\mathrm{i})^2 =125 (−3+4i)= 125\,(-3 + 4\mathrm{i}) =−375+500i,= -375 + 500\mathrm{i}, so c+d=−375+500=125.c + d = -375 + 500 = 125.

7.

Let SS be the increasing sequence of positive integers whose binary representation has exactly 88 ones. Let NN be the 10001000th number in S.S. Find the remainder when NN is divided by 1000.1000.

Difficulty rating: 2790
Small Hint:

There are (128)=495\binom{12}{8} = 495 members of SS below 212,2^{12}, so NN has 1313 binary digits

Big Hint:

Fix the leading binary digits one at a time, counting members with each prefix, until the position pins down every remaining bit

Solution:

There are (128)=495\binom{12}{8} = 495 members of SS below 2122^{12} and (138)=1287\binom{13}{8} = 1287 below 213,2^{13}, so NN has 1313 binary digits, and exactly 1287−1000=2871287 - 1000 = 287 members below 2132^{13} exceed it. The (116)=462\binom{11}{6} = 462 members whose binary representations begin 1111 are the largest ones, so NN begins with 1111 and is the 462−287=175462 - 287 = 175th smallest of them.

Among these, (96)=84\binom{9}{6} = 84 begin 1100,1100, the next (85)=56\binom{8}{5} = 56 begin 11010,11010, and the next (74)=35\binom{7}{4} = 35 begin 110110.110110. Since 84+56+35=175,84 + 56 + 35 = 175, the number NN is the largest member beginning 110110,110110, namely 11011011110001101101111000 in binary.

Its value is 212+211+29+282^{12} + 2^{11} + 2^9 + 2^8 +26+25+24+23=7032,+ 2^6 + 2^5 + 2^4 + 2^3 = 7032, so the remainder upon division by 10001000 is 32.32.

8.

The complex numbers zz and ww satisfy the system z+20iw=5+i,z + \frac{20\mathrm{i}}{w} = 5 + \mathrm{i}, w+12iz=−4+10i.w + \frac{12\mathrm{i}}{z} = -4 + 10\mathrm{i}.

Find the smallest possible value of ∣zw∣2.|zw|^2.

Difficulty rating: 2840
Small Hint:

Multiply the two equations: the cross terms become the constants 12i12\mathrm{i} and 20i,20\mathrm{i}, leaving an equation in the single unknown zwzw

Big Hint:

The quadratic in zwzw needs 416−210i;\sqrt{416 - 210\mathrm{i}}; find it by setting (a+bi)2=416−210i(a + b\mathrm{i})^2 = 416 - 210\mathrm{i} with integers aa and bb

Solution:

Multiplying the two equations gives zw+12i+20i−240zw=(5+i)(−4+10i)=−30+46i, \begin{aligned} &zw + 12\mathrm{i} + 20\mathrm{i} \\ &\quad {}- \frac{240}{zw} = (5 + \mathrm{i})(-4 + 10\mathrm{i}) \\ &\quad = -30 + 46\mathrm{i}, \end{aligned} so zw−240zw=−30+14i.zw - \frac{240}{zw} = -30 + 14\mathrm{i}. Setting v=zwv = zw yields v2+(30−14i)v−240=0.v^2 + (30 - 14\mathrm{i})v - 240 = 0.

By the quadratic formula, v=−15+7iv = -15 + 7\mathrm{i} ±(15−7i)2+240\pm \sqrt{(15 - 7\mathrm{i})^2 + 240} =−15+7i= -15 + 7\mathrm{i} ±416−210i.\pm \sqrt{416 - 210\mathrm{i}}. Writing (a+bi)2=416−210i(a + b\mathrm{i})^2 = 416 - 210\mathrm{i} requires a2−b2=416a^2 - b^2 = 416 and ab=−105,ab = -105, which gives a+bi=±(21−5i).a + b\mathrm{i} = \pm(21 - 5\mathrm{i}). Hence v=6+2iv = 6 + 2\mathrm{i} or v=−36+12i,v = -36 + 12\mathrm{i}, with ∣v∣2=40|v|^2 = 40 or 1440.1440.

The smaller value is attained: z=1−i,z = 1 - \mathrm{i}, w=2+4iw = 2 + 4\mathrm{i} satisfies both equations with zw=6+2i.zw = 6 + 2\mathrm{i}. So the smallest possible value of ∣zw∣2|zw|^2 is 40.40.

9.

Let xx and yy be real numbers such that sin⁡xsin⁡y=3\frac{\sin x}{\sin y} = 3 and cos⁡xcos⁡y=12.\frac{\cos x}{\cos y} = \frac{1}{2}. The value of sin⁡2xsin⁡2y+cos⁡2xcos⁡2y\frac{\sin 2x}{\sin 2y} + \frac{\cos 2x}{\cos 2y} can be expressed in the form pq,\frac{p}{q}, where pp and qq are relatively prime positive integers. Find p+q.p + q.

Difficulty rating: 2560
Small Hint:

sin⁡2xsin⁡2y\frac{\sin 2x}{\sin 2y} is just the product of the two given ratios

Big Hint:

Square both given equations and add, using sin⁡2+cos⁡2=1,\sin^2 + \cos^2 = 1, to find cos⁡2y;\cos^2 y; then apply cos⁡2θ=2cos⁡2θ−1\cos 2\theta = 2\cos^2\theta - 1

Solution:

From the double-angle formula, sin⁡2xsin⁡2y=2sin⁡xcos⁡x2sin⁡ycos⁡y=3⋅12=32. \begin{aligned} \frac{\sin 2x}{\sin 2y} &= \frac{2\sin x \cos x}{2\sin y \cos y} \\ &= 3 \cdot \frac{1}{2} = \frac{3}{2}. \end{aligned}

Squaring the given equations, sin⁡2x=9sin⁡2y\sin^2 x = 9\sin^2 y and cos⁡2x=14cos⁡2y.\cos^2 x = \frac{1}{4}\cos^2 y. Adding, 1=9(1−cos⁡2y)+14cos⁡2y,1 = 9(1 - \cos^2 y) + \frac{1}{4}\cos^2 y, so 354cos⁡2y=8\frac{35}{4}\cos^2 y = 8 and cos⁡2y=3235.\cos^2 y = \frac{32}{35}. Then cos⁡2y=2cos⁡2y−1=2935\cos 2y = 2\cos^2 y - 1 = \frac{29}{35} and cos⁡2x=2cos⁡2x−1\cos 2x = 2\cos^2 x - 1 =12cos⁡2y−1= \frac{1}{2}\cos^2 y - 1 =−1935,= -\frac{19}{35}, so cos⁡2xcos⁡2y=−1929.\frac{\cos 2x}{\cos 2y} = -\frac{19}{29}.

The requested value is 32−1929=87−3858=4958,\frac{3}{2} - \frac{19}{29} = \frac{87 - 38}{58} = \frac{49}{58}, and p+q=49+58=107.p + q = 49 + 58 = 107.

10.

Find the number of positive integers nn less than 10001000 for which there exists a positive real number xx such that n=x⌊x⌋.n = x\lfloor x \rfloor.

Note: ⌊x⌋\lfloor x \rfloor is the greatest integer less than or equal to x.x.

Difficulty rating: 2460
Small Hint:

Fix ⌊x⌋=a;\lfloor x \rfloor = a; as xx runs from aa to a+1,a + 1, the product x⌊x⌋x\lfloor x \rfloor sweeps through the integers from a2a^2 to a2+a−1a^2 + a - 1

Big Hint:

Each aa contributes exactly aa values of n;n; sum over all aa whose values stay below 10001000

Solution:

Fix ⌊x⌋=a≥1.\lfloor x \rfloor = a \ge 1. For a≤x<a+1a \le x \lt a + 1 the product n=axn = ax ranges over [a2,a2+a),[a^2, a^2 + a), and every integer nn in that interval is achieved by x=nax = \frac{n}{a} (which indeed has floor aa). So each aa contributes exactly aa values of n,n, namely a2,a2+1,…,a2+a−1.a^2, a^2 + 1, \ldots, a^2 + a - 1.

For a=31a = 31 the largest value is 312+30=991<1000,31^2 + 30 = 991 \lt 1000, so all values through a=31a = 31 qualify, while a=32a = 32 already starts at 1024.1024. The count is 1+2+⋯+31=31⋅322=496.1 + 2 + \cdots + 31 = \frac{31 \cdot 32}{2} = 496.

11.

Let f1(x)=23−33x+1,f_1(x) = \frac{2}{3} - \frac{3}{3x + 1}, and for n≥2,n \ge 2, define fn(x)=f1(fn−1(x)).f_n(x) = f_1(f_{n-1}(x)). The value of xx that satisfies f1001(x)=x−3f_{1001}(x) = x - 3 can be expressed in the form mn,\frac{m}{n}, where mm and nn are relatively prime positive integers. Find m+n.m + n.

Difficulty rating: 2650
Small Hint:

Write f1f_1 as a single fraction and compute f2f_2 and f3f_3 by hand — a pattern appears

Big Hint:

f3(x)=x,f_3(x) = x, so f1001=f2;f_{1001} = f_2; setting f2(x)=x−3f_2(x) = x - 3 gives a quadratic with a double root

Solution:

Combining fractions, f1(x)=2(3x+1)−93(3x+1)=6x−79x+3.f_1(x) = \frac{2(3x + 1) - 9}{3(3x + 1)} = \frac{6x - 7}{9x + 3}. Composing once, f2(x)=6f1(x)−79f1(x)+3=−3x−79x−6,f_2(x) = \frac{6 f_1(x) - 7}{9 f_1(x) + 3} = \frac{-3x - 7}{9x - 6}, and composing again gives f3(x)=x.f_3(x) = x.

So the iteration is periodic with period 3.3. Since 1001≡2(mod3),1001 \equiv 2 \pmod{3}, we have f1001=f2,f_{1001} = f_2, and the equation becomes −3x−79x−6=x−3,\frac{-3x - 7}{9x - 6} = x - 3, that is 9x2−33x+18=−3x−7,9x^2 - 33x + 18 = -3x - 7, or 9x2−30x+25=(3x−5)2=0.9x^2 - 30x + 25 = (3x - 5)^2 = 0.

The unique solution is x=53,x = \frac{5}{3}, so m+n=5+3=8.m + n = 5 + 3 = 8.

12.

For a positive integer p,p, define the positive integer nn to be pp-safe if nn differs in absolute value by more than 22 from all multiples of p.p. For example, the set of 1010-safe numbers is {3,\{3, 4,4, 5,5, 6,6, 7,7, 13,13, 14,14, 15,15, 16,16, 17,17, 23,23, …}.\ldots\}. Find the number of positive integers less than or equal to 10,00010{,}000 which are simultaneously 77-safe, 1111-safe, and 1313-safe.

Difficulty rating: 2920
Small Hint:

nn is pp-safe exactly when 3≤n mod p≤p−33 \le n \bmod p \le p - 3

Big Hint:

Since 7⋅11⋅13=1001,7 \cdot 11 \cdot 13 = 1001, count the safe residues in each block of 10011001 consecutive integers, then adjust near the cutoff 10,00010{,}000

Solution:

Being pp-safe depends only on n mod p:n \bmod p: it requires 3≤n mod p≤p−3.3 \le n \bmod p \le p - 3. That allows 22 residues modulo 7,7, 66 residues modulo 11,11, and 88 residues modulo 13.13. Since 7⋅11⋅13=1001,7 \cdot 11 \cdot 13 = 1001, the Chinese remainder theorem gives exactly 2⋅6⋅8=962 \cdot 6 \cdot 8 = 96 safe residues modulo 1001,1001, so each block of 10011001 consecutive integers contains 9696 safe numbers.

The integers 11 through 1001010010 form ten such blocks, containing 960960 safe numbers. It remains to discard the safe numbers among 10001,…,10010.10001, \ldots, 10010. Their residues modulo 77 run 5,6,0,1,2,3,4,5,6,0,5, 6, 0, 1, 2, 3, 4, 5, 6, 0, so only 1000610006 and 1000710007 are 77-safe; both are also 1111-safe (residues 77 and 88) and 1313-safe (residues 99 and 1010).

Therefore the count is 960−2=958.960 - 2 = 958.

13.

Equilateral △ABC\triangle ABC has side length 111.\sqrt{111}. There are four distinct triangles AD1E1,AD_1E_1, AD1E2,AD_1E_2, AD2E3,AD_2E_3, and AD2E4,AD_2E_4, each congruent to △ABC,\triangle ABC, with BD1=BD2=11.BD_1 = BD_2 = \sqrt{11}. Find ∑k=14(CEk)2.\sum_{k=1}^{4}(CE_k)^2.

Difficulty rating: 3270
Small Hint:

Each EkE_k is D1D_1 or D2D_2 rotated ±60∘\pm 60^\circ about A,A, so track the four angles ∠CAEk\angle CAE_k

Big Hint:

With ∠BADi=θ,\angle BAD_i = \theta, the four angles are θ,\theta, θ,\theta, 120∘−θ,120^\circ - \theta, 120∘+θ,120^\circ + \theta, and the last two cosines add up to −cos⁡θ-\cos\theta

Solution:

Write s=111s = \sqrt{111} and r=11.r = \sqrt{11}. Since each triangle ADiEkAD_iE_k is congruent to △ABC,\triangle ABC, we have ADi=AEk=s,AD_i = AE_k = s, so D1D_1 and D2D_2 are the two intersections of the circle of radius ss about AA with the circle of radius rr about B;B; they are mirror images across line AB,AB, so ∠BAD1=∠BAD2=θ\angle BAD_1 = \angle BAD_2 = \theta with D1D_1 and D2D_2 on opposite sides of AB.AB. Each EkE_k is the image of its DiD_i rotated ±60∘\pm 60^\circ about A.A. Measuring signed angles from ray AB,AB, with CC at +60∘,+60^\circ, the rays ADiAD_i sit at ±θ\pm\theta and the rays AEkAE_k at ±θ±60∘,\pm\theta \pm 60^\circ, so the four angles ∠CAEk\angle CAE_k are θ,\theta, θ,\theta, 120∘−θ,120^\circ - \theta, and 120∘+θ.120^\circ + \theta.

Since AC=AEk=s,AC = AE_k = s, the law of cosines gives (CEk)2=2s2(1−cos⁡∠CAEk).(CE_k)^2 = 2s^2(1 - \cos\angle CAE_k). Using cos⁡(120∘−θ)\cos(120^\circ - \theta) +cos⁡(120∘+θ)+ \cos(120^\circ + \theta) =2cos⁡120∘cos⁡θ= 2\cos 120^\circ \cos\theta =−cos⁡θ,= -\cos\theta, the four angles’ cosines sum to 2cos⁡θ−cos⁡θ=cos⁡θ,2\cos\theta - \cos\theta = \cos\theta, so ∑k=14(CEk)2=2s2(4−cos⁡θ).\sum_{k=1}^{4}(CE_k)^2 = 2s^2(4 - \cos\theta).

Applying the law of cosines in triangle ABD1ABD_1 (with AB=AD1=sAB = AD_1 = s) gives r2=2s2(1−cos⁡θ),r^2 = 2s^2(1 - \cos\theta), so 2s2cos⁡θ=2s2−r2.2s^2\cos\theta = 2s^2 - r^2. Therefore the sum equals 8s2−(2s2−r2)8s^2 - (2s^2 - r^2) =6s2+r2= 6s^2 + r^2 =6⋅111+11=677.= 6 \cdot 111 + 11 = 677.

14.

In a group of nine people each person shakes hands with exactly two of the other people from the group. Let NN be the number of ways this handshaking can occur. Consider two handshaking arrangements different if and only if at least two people who shake hands under one arrangement do not shake hands under the other arrangement. Find the remainder when NN is divided by 1000.1000.

Difficulty rating: 3060
Small Hint:

Everyone shaking exactly two hands splits the nine people into cycles of length at least 33

Big Hint:

A cycle on kk chosen people can be formed in (k−1)!2\frac{(k-1)!}{2} ways; sum over the partitions 3+3+3,3+3+3, 3+6,3+6, 4+5,4+5, and 99

Solution:

An arrangement in which everyone shakes exactly two hands is a disjoint union of cycles of length at least 33 covering all nine people. The possible cycle-length partitions of 99 are 3+3+3,3+3+3, 3+6,3+6, 4+5,4+5, and 9.9. On kk given people, the number of distinct cycles is (k−1)!2.\frac{(k-1)!}{2}.

For 3+3+3:3+3+3: split into three unordered triples in 13!(93)(63)=280\frac{1}{3!}\binom{9}{3}\binom{6}{3} = 280 ways, one cycle each: 280.280. For 3+6:3+6: (93)⋅1⋅5!2=84⋅60=5040.\binom{9}{3} \cdot 1 \cdot \frac{5!}{2} = 84 \cdot 60 = 5040. For 4+5:4+5: (94)⋅3!2⋅4!2\binom{9}{4} \cdot \frac{3!}{2} \cdot \frac{4!}{2} =126⋅3⋅12=4536.= 126 \cdot 3 \cdot 12 = 4536. For a single 99-cycle: 8!2=20160.\frac{8!}{2} = 20160.

In total N=280+5040N = 280 + 5040 +4536+20160=30016,+ 4536 + 20160 = 30016, so the remainder modulo 10001000 is 16.16.

15.

Triangle ABCABC is inscribed in circle ω\omega with AB=5,AB = 5, BC=7,BC = 7, and AC=3.AC = 3. The bisector of angle AA meets side BC‾\overline{BC} at DD and circle ω\omega at a second point E.E. Let γ\gamma be the circle with diameter DE‾.\overline{DE}. Circles ω\omega and γ\gamma meet at EE and a second point F.F. Then AF2=mn,AF^2 = \frac{m}{n}, where mm and nn are relatively prime positive integers. Find m+n.m + n.

Difficulty rating: 3500
Small Hint:

Let E′E' be diametrically opposite EE on ω;\omega; angles in semicircles give ∠DFE=∠E′FE=90∘,\angle DFE = \angle E'FE = 90^\circ, so FF lies on line E′DE'D

Big Hint:

Place B=(0,0)B = (0, 0) and C=(7,0);C = (7, 0); then D,D, E,E, E′E' have clean coordinates, and FF comes from intersecting line E′DE'D with ω\omega

Solution:

Let E′E' be the point of ω\omega diametrically opposite E.E. Since DE‾\overline{DE} is a diameter of γ,\gamma, the angle ∠DFE=90∘,\angle DFE = 90^\circ, and since EE′‾\overline{EE'} is a diameter of ω,\omega, also ∠E′FE=90∘.\angle E'FE = 90^\circ. Both FDFD and FE′FE' are perpendicular to FE,FE, so DD lies on line E′F:E'F: the point FF is the second intersection of line E′DE'D with ω.\omega.

Set B=(0,0)B = (0, 0) and C=(7,0);C = (7, 0); then A=(6514,15314).A = \left(\frac{65}{14}, \frac{15\sqrt{3}}{14}\right). The bisector gives BDDC=ABAC=53,\frac{BD}{DC} = \frac{AB}{AC} = \frac{5}{3}, so D=(358,0).D = \left(\frac{35}{8}, 0\right). Since EE is the midpoint of arc BCBC not containing A,A, both EE and E′E' lie on the vertical line x=72x = \frac{7}{2} through the center O=(72,−736),O = \left(\frac{7}{2}, -\frac{7\sqrt{3}}{6}\right), which satisfies ∣OB∣=∣OA∣|OB| = |OA| with R2=493.R^2 = \frac{49}{3}. Thus E=(72,−732)E = \left(\frac{7}{2}, -\frac{7\sqrt{3}}{2}\right) and E′=(72,736).E' = \left(\frac{7}{2}, \frac{7\sqrt{3}}{6}\right).

The direction from E′E' to DD is proportional to (3,−43),(3, -4\sqrt{3}), and the point E′+t (3,−43)E' + t\,(3, -4\sqrt{3}) lies on ω\omega when 57t2−56t=0,57t^2 - 56t = 0, so t=5657t = \frac{56}{57} gives F=(24538,−105338).F = \left(\frac{245}{38}, -\frac{105\sqrt{3}}{38}\right). Then AF2=(240133)2+3(510133)2=83790017689=90019, \begin{aligned} AF^2 &= \left(\frac{240}{133}\right)^2 + 3\left(\frac{510}{133}\right)^2 \\ &= \frac{837900}{17689} = \frac{900}{19}, \end{aligned} so m+n=900+19=919.m + n = 900 + 19 = 919.