2013 AIME II Exam Solutions

Scroll down to view professionally curated solutions from LIVE by Po-Shen Loh, print PDF solutions, view answer key, or:

Try Exam

All of the real AMC 8, AMC 10, AMC 12, and AIME problems in our complete solution collection are used with official legal permission of the Mathematical Association of America (MAA).

1.

Suppose that the measurement of time during the day is converted to the metric system so that each day has 1010 metric hours, and each metric hour has 100100 metric minutes. Digital clocks would then be produced that would read 9:999{:}99 just before midnight, 0:000{:}00 at midnight, 1:251{:}25 at the former 3:003{:}00 AM, and 7:507{:}50 at the former 6:006{:}00 PM. After the conversion, a person who wanted to wake up at the equivalent of the former 6:366{:}36 AM would set his new digital alarm clock for A:BC,A{:}BC, where A,A, B,B, and CC are digits. Find 100A+10B+C.100A + 10B + C.

Concepts:clockunit conversionratio and proportion

Difficulty rating: 1820

Solution:

An ordinary day has 6024=144060 \cdot 24 = 1440 minutes, and 6:366{:}36 AM comes 660+36=3966 \cdot 60 + 36 = 396 minutes after midnight. A metric day has 10100=100010 \cdot 100 = 1000 metric minutes, so the equivalent metric time is 39614401000=275\frac{396}{1440} \cdot 1000 = 275 metric minutes after midnight, which the new clock displays as 2:75.2{:}75.

Therefore 100A+10B+C=275.100A + 10B + C = 275.

2.

Positive integers aa and bb satisfy the condition log2(log2a(log2b(21000)))=0.\log_2(\log_{2^a}(\log_{2^b}(2^{1000}))) = 0. Find the sum of all possible values of a+b.a + b.

Difficulty rating: 2030

Solution:

Working from the outside in, log2()=0\log_2(\cdot) = 0 forces log2a(log2b(21000))=1,\log_{2^a}(\log_{2^b}(2^{1000})) = 1, so log2b(21000)=2a,\log_{2^b}(2^{1000}) = 2^a, so 21000=(2b)2a=2b2a.2^{1000} = (2^b)^{2^a} = 2^{b \cdot 2^a}. Hence b2a=1000=23125.b \cdot 2^a = 1000 = 2^3 \cdot 125.

Since a1a \ge 1 and bb is a positive integer, 2a2^a must be one of 2,2, 4,4, 8,8, giving (a,b)=(1,500),(a, b) = (1, 500), (2,250),(2, 250), (3,125).(3, 125). The sum of all possible values of a+ba + b is 501+252+128=881.501 + 252 + 128 = 881.

3.

A large candle is 119119 centimeters tall. It is designed to burn down more quickly when it is first lit and more slowly as it approaches its bottom. Specifically, the candle takes 1010 seconds to burn down the first centimeter from the top, 2020 seconds to burn down the second centimeter, and 10k10k seconds to burn down the kk-th centimeter. Suppose it takes TT seconds for the candle to burn down completely. Then T2\frac{T}{2} seconds after it is lit, the candle's height in centimeters will be h.h. Find 10h.10h.

Difficulty rating: 1970

Solution:

Burning the first xx centimeters takes 10(1+2++x)=5x(x+1)10(1 + 2 + \cdots + x) = 5x(x+1) seconds, so T=5119120=71400T = 5 \cdot 119 \cdot 120 = 71400 and T2=35700.\frac{T}{2} = 35700.

Setting 5x(x+1)=357005x(x+1) = 35700 gives x(x+1)=7140=8485,x(x+1) = 7140 = 84 \cdot 85, so at time T2\frac{T}{2} the candle has burned down exactly 8484 centimeters. Its height is h=11984=35,h = 119 - 84 = 35, and 10h=350.10h = 350.

4.

In the Cartesian plane let A=(1,0)A = (1, 0) and B=(2,23).B = (2, 2\sqrt{3}). Equilateral triangle ABCABC is constructed so that CC lies in the first quadrant. Let P=(x,y)P = (x, y) be the center of ABC.\triangle ABC. Then xyx \cdot y can be written as pqr,\frac{p\sqrt{q}}{r}, where pp and rr are relatively prime positive integers and qq is an integer that is not divisible by the square of any prime. Find p+q+r.p + q + r.

Solution:

The midpoint of AB\overline{AB} is M=(32,3),M = \left(\frac{3}{2}, \sqrt{3}\right), and AB=1+12=13.AB = \sqrt{1 + 12} = \sqrt{13}. The third vertex lies at distance 3213\frac{\sqrt{3}}{2}\sqrt{13} from MM along a direction perpendicular to AB=(1,23);\overrightarrow{AB} = (1, 2\sqrt{3}); a unit perpendicular is 113(23,1).\frac{1}{\sqrt{13}}(2\sqrt{3}, -1). Taking the sign that lands in the first quadrant, C=M+32(23,1)=(92,32)C = M + \frac{\sqrt{3}}{2}\,(2\sqrt{3}, -1) = \left(\frac{9}{2}, \frac{\sqrt{3}}{2}\right) (the other choice has negative xx-coordinate).

The center of an equilateral triangle is its centroid, the average of the vertices: P=(1+2+923, 0+23+323)=(52,536).P = \left(\frac{1 + 2 + \frac{9}{2}}{3},\ \frac{0 + 2\sqrt{3} + \frac{\sqrt{3}}{2}}{3} \right) = \left(\frac{5}{2}, \frac{5\sqrt{3}}{6}\right).

Then xy=52536=25312,x \cdot y = \frac{5}{2} \cdot \frac{5\sqrt{3}}{6} = \frac{25\sqrt{3}}{12}, so p+q+r=25+3+12=40.p + q + r = 25 + 3 + 12 = 40.

5.

In equilateral ABC\triangle ABC let points DD and EE trisect BC.\overline{BC}. Then sin(DAE)\sin(\angle DAE) can be expressed in the form abc,\frac{a\sqrt{b}}{c}, where aa and cc are relatively prime positive integers, and bb is an integer that is not divisible by the square of any prime. Find a+b+c.a + b + c.

Difficulty rating: 2330

Solution:

Scale so the side length is 6,6, with BD=DE=EC=2.BD = DE = EC = 2. In triangle AEC,AEC, the law of cosines gives AE2=62+22262cos60=28,AE^2 = 6^2 + 2^2 - 2 \cdot 6 \cdot 2 \cos 60^\circ = 28, so AE=27,AE = 2\sqrt{7}, and AD=27AD = 2\sqrt{7} by symmetry.

Since DEDE is one third of BCBC and triangles ADEADE and ABCABC share the apex A,A, we get [ADE]=13[ABC]=133634=33.[ADE] = \frac{1}{3}[ABC] = \frac{1}{3} \cdot \frac{36\sqrt{3}}{4} = 3\sqrt{3}. On the other hand [ADE]=12ADAEsin(DAE)=14sin(DAE).[ADE] = \frac{1}{2} \cdot AD \cdot AE \cdot \sin(\angle DAE) = 14\sin(\angle DAE).

Therefore sin(DAE)=3314,\sin(\angle DAE) = \frac{3\sqrt{3}}{14}, and a+b+c=3+3+14=20.a + b + c = 3 + 3 + 14 = 20.

6.

Find the least positive integer NN such that the set of 10001000 consecutive integers beginning with 1000N1000 \cdot N contains no square of an integer.

Difficulty rating: 2430

Solution:

The block {1000N,,1000N+999}\{1000N, \ldots, 1000N + 999\} misses all squares exactly when some consecutive squares x2x^2 and (x+1)2(x+1)^2 jump over it, which requires (x+1)2x2=2x+1>1000,(x+1)^2 - x^2 = 2x + 1 \gt 1000, so x500.x \ge 500. In particular every block below 5002=250000500^2 = 250000 contains a square, so we search from there.

Write x=500+ax = 500 + a with a0.a \ge 0. Then x2=1000(250+a)+a2,x^2 = 1000(250 + a) + a^2, so as long as a2<1000a^2 \lt 1000 (that is, a31a \le 31), the square x2x^2 lies in block 250+a;250 + a; these cover blocks 250250 through 281.281. Block 251+a251 + a is skipped exactly when (x+1)2=1000(250+a)+a2+2a+10011000(252+a),(x+1)^2 = 1000(250 + a) + a^2 + 2a + 1001 \ge 1000(252 + a), that is, a2+2a999.a^2 + 2a \ge 999. For a30a \le 30 this fails (so (x+1)2(x+1)^2 lands in block 251+a251 + a), and it first holds at a=31,a = 31, since 961+62=1023.961 + 62 = 1023.

Indeed 5312=281961531^2 = 281961 and 5322=283024532^2 = 283024 straddle the block starting at 282000.282000. The least such NN is 251+31=282.251 + 31 = 282.

7.

A group of clerks is assigned the task of sorting 17751775 files. Each clerk sorts at a constant rate of 3030 files per hour. At the end of the first hour, some of the clerks are reassigned to another task; at the end of the second hour, the same number of the remaining clerks are also reassigned to another task, and a similar reassignment occurs at the end of the third hour. The group finishes the sorting in 33 hours and 1010 minutes. Find the number of files sorted during the first one and a half hours of sorting.

Difficulty rating: 2310

Solution:

Let nn clerks start and kk be reassigned at the end of each hour. In the final 1010 minutes each remaining clerk sorts 55 files, so 30n+30(nk)+30(n2k)+5(n3k)=1775,30n + 30(n - k) + 30(n - 2k) + 5(n - 3k) = 1775, which simplifies to 95n105k=1775,95n - 105k = 1775, or 19n21k=355.19n - 21k = 355.

Modulo 1919 this reads 2k13,-2k \equiv 13, so 2k62k \equiv 6 and k3(mod19).k \equiv 3 \pmod{19}. Taking k=3k = 3 gives n=355+6319=22;n = \frac{355 + 63}{19} = 22; the next candidate, k=22,k = 22, gives n=43,n = 43, for which n3k<0.n - 3k \lt 0. So n=22n = 22 and k=3.k = 3.

In the first hour 2222 clerks sort 3022=66030 \cdot 22 = 660 files, and in the next half hour 1919 clerks sort 1519=285,15 \cdot 19 = 285, for a total of 660+285=945.660 + 285 = 945.

8.

A hexagon that is inscribed in a circle has side lengths 22,22, 22,22, 20,20, 22,22, 22,22, and 2020 in that order. The radius of the circle can be written as p+q,p + \sqrt{q}, where pp and qq are positive integers. Find p+q.p + q.

Difficulty rating: 2560

Solution:

Let rr be the radius, and let each chord of length 2222 subtend central angle α\alpha and each chord of length 2020 subtend β.\beta. The six central angles fill the circle: 4α+2β=360,4\alpha + 2\beta = 360^\circ, so β2=90α\frac{\beta}{2} = 90^\circ - \alpha and sinβ2=cosα.\sin\frac{\beta}{2} = \cos\alpha.

Half a 2020-chord gives sinβ2=10r,\sin\frac{\beta}{2} = \frac{10}{r}, and the law of cosines on the isosceles triangle with legs rr and base 2222 gives 222=2r2(1cosα),22^2 = 2r^2(1 - \cos\alpha), so cosα=1242r2.\cos\alpha = 1 - \frac{242}{r^2}. Equating, 1242r2=10rr210r242=0,1 - \frac{242}{r^2} = \frac{10}{r} \quad\Longrightarrow\quad r^2 - 10r - 242 = 0, so r=5+267r = 5 + \sqrt{267} (taking the positive root).

Therefore p+q=5+267=272.p + q = 5 + 267 = 272.

9.

A 7×17 \times 1 board is completely covered by m×1m \times 1 tiles without overlap; each tile may cover any number of consecutive squares, and each tile lies completely on the board. Each tile is either red, blue, or green. Let NN be the number of tilings of the 7×17 \times 1 board in which all three colors are used at least once. For example, a 1×11 \times 1 red tile followed by a 2×12 \times 1 green tile, a 1×11 \times 1 green tile, a 2×12 \times 1 blue tile, and a 1×11 \times 1 green tile is a valid tiling. Note that if the 2×12 \times 1 blue tile is replaced by two 1×11 \times 1 blue tiles, this results in a different tiling. Find the remainder when NN is divided by 1000.1000.

Solution:

First count colored tilings when kk colors are available. The first square's tile can be colored in kk ways, and each of the remaining 66 squares either extends the current tile or starts a new tile in one of the kk colors, giving k+1k + 1 choices per square. So there are k(k+1)6k(k+1)^6 tilings.

With three colors that is 346=122883 \cdot 4^6 = 12288 tilings. By inclusion-exclusion over the unused colors, the number using all three colors is N=3463(236)+3(126)=122884374+192=8106.N = 3 \cdot 4^6 - 3 \cdot (2 \cdot 3^6) + 3 \cdot (1 \cdot 2^6) = 12288 - 4374 + 192 = 8106.

The remainder when NN is divided by 10001000 is 106.106.

10.

Given a circle of radius 13,\sqrt{13}, let AA be a point at a distance 4+134 + \sqrt{13} from the center OO of the circle. Let BB be the point on the circle nearest to point A.A. A line passing through the point AA intersects the circle at points KK and L.L. The maximum possible area for BKL\triangle BKL can be written in the form abcd,\frac{a - b\sqrt{c}}{d}, where a,a, b,b, c,c, and dd are positive integers, aa and dd are relatively prime, and cc is not divisible by the square of any prime. Find a+b+c+d.a + b + c + d.

Difficulty rating: 2840

Solution:

The nearest point BB lies on segment OAOA with OB=13OB = \sqrt{13} and AB=4.AB = 4. Triangles OKLOKL and BKLBKL share the base KL,KL, and their heights are the distances from OO and BB to the line through A.A. For any point PP on line OA,OA, that distance is PAsinφ,PA\sin\varphi, where φ\varphi is the angle between the two lines, so [BKL][OKL]=ABAO=44+13.\frac{[BKL]}{[OKL]} = \frac{AB}{AO} = \frac{4}{4 + \sqrt{13}}.

Since OK=OL=13,OK = OL = \sqrt{13}, we have [OKL]=132sin(KOL)132,[OKL] = \frac{13}{2}\sin(\angle KOL) \le \frac{13}{2}, with equality when KOL=90.\angle KOL = 90^\circ. Such a chord lies at distance 13/2\sqrt{13/2} from O,O, which is less than OA,OA, so a line through AA can achieve it.

The maximum area is [BKL]=13244+13=264+13=26(413)3=10426133,[BKL] = \frac{13}{2} \cdot \frac{4}{4 + \sqrt{13}} = \frac{26}{4 + \sqrt{13}} = \frac{26(4 - \sqrt{13})}{3} = \frac{104 - 26\sqrt{13}}{3}, so a+b+c+d=104+26+13+3=146.a + b + c + d = 104 + 26 + 13 + 3 = 146.

11.

Let A={1,2,3,4,5,6,7},A = \{1, 2, 3, 4, 5, 6, 7\}, and let NN be the number of functions ff from set AA to set AA such that f(f(x))f(f(x)) is a constant function. Find the remainder when NN is divided by 1000.1000.

Difficulty rating: 2890

Solution:

Say f(f(x))=af(f(x)) = a for all x,x, and let S={x:f(x)=a}.S = \{x : f(x) = a\}. Picking any tS,t \in S, we get a=f(f(t))=f(a),a = f(f(t)) = f(a), so aS.a \in S. Every xx satisfies f(x)Sf(x) \in S (because f(f(x))=af(f(x)) = a), and if xSx \notin S then f(x)a,f(x) \ne a, so ff maps the complement of SS into S{a}.S \setminus \{a\}. Conversely, any ff built this way works.

If S=k,|S| = k, we choose the constant aa in 77 ways, the remaining k1k - 1 elements of SS in (6k1)\binom{6}{k-1} ways, and an image in S{a}S \setminus \{a\} for each of the 7k7 - k other elements in (k1)7k(k-1)^{7-k} ways. Hence N=7k=17(6k1)(k1)7k=7(0+6+240+540+240+30+1)=71057=7399.N = 7\sum_{k=1}^{7} \binom{6}{k-1}(k-1)^{7-k} = 7\,(0 + 6 + 240 + 540 + 240 + 30 + 1) = 7 \cdot 1057 = 7399.

The remainder when NN is divided by 10001000 is 399.399.

12.

Let SS be the set of all polynomials of the form z3+az2+bz+c,z^3 + az^2 + bz + c, where a,a, b,b, and cc are integers. Find the number of polynomials in SS such that each of its roots zz satisfies either z=20|z| = 20 or z=13.|z| = 13.

Difficulty rating: 3060

Solution:

A cubic with real coefficients has either three real roots or one real root and a conjugate pair. The only real numbers with modulus 2020 or 1313 are ±20\pm 20 and ±13,\pm 13, so in the all-real case the roots form a multiset of size 33 from those 44 values: (63)=20\binom{6}{3} = 20 polynomials.

Otherwise the roots are k{±20,±13}k \in \{\pm 20, \pm 13\} and a conjugate pair r±sir \pm si with s0s \ne 0 and r2+s2=400r^2 + s^2 = 400 or 169.169. Expanding (zk)(z22rz+(r2+s2))(z - k)\bigl(z^2 - 2rz + (r^2 + s^2)\bigr) shows the coefficients are (2r+k),-(2r + k), r2+s2+2rk,r^2 + s^2 + 2rk, and (r2+s2)k,-(r^2 + s^2)k, which are all integers exactly when 2r2r is an integer. On the circle of radius 2020 we need r<20,|r| \lt 20, allowing 2r{39,,39}:2r \in \{-39, \ldots, 39\}: 7979 choices; on the circle of radius 13,13, 2r{25,,25}:2r \in \{-25, \ldots, 25\}: 5151 choices. With 44 choices of k,k, that gives 4(79+51)=5204(79 + 51) = 520 polynomials, each distinct since the roots determine the polynomial.

In total there are 20+520=54020 + 520 = 540 such polynomials.

13.

In ABC,\triangle ABC, AC=BC,AC = BC, and point DD is on BC\overline{BC} so that CD=3BD.CD = 3 \cdot BD. Let EE be the midpoint of AD.\overline{AD}. Given that CE=7CE = \sqrt{7} and BE=3,BE = 3, the area of ABC\triangle ABC can be expressed in the form mn,m\sqrt{n}, where mm and nn are positive integers and nn is not divisible by the square of any prime. Find m+n.m + n.

Solution:

Let AB=2xAB = 2x and AC=BC=y,AC = BC = y, so BD=y4,BD = \frac{y}{4}, CD=3y4,CD = \frac{3y}{4}, and cosB=xy\cos B = \frac{x}{y} (drop the altitude from CC to the midpoint of AB\overline{AB}). The law of cosines in triangle ABDABD gives AD2=4x2+y21622xy4xy=3x2+y216.AD^2 = 4x^2 + \frac{y^2}{16} - 2 \cdot 2x \cdot \frac{y}{4} \cdot \frac{x}{y} = 3x^2 + \frac{y^2}{16}.

Both CECE and BEBE are medians to AD,\overline{AD}, in triangles ACDACD and ABDABD respectively. The median formula 4m2=2b2+2c2a24m^2 = 2b^2 + 2c^2 - a^2 gives 28=2y2+18y216AD2=49y2163x2,36=8x2+2y216AD2=5x2+y216.28 = 2y^2 + \frac{18y^2}{16} - AD^2 = \frac{49y^2}{16} - 3x^2, \qquad 36 = 8x^2 + \frac{2y^2}{16} - AD^2 = 5x^2 + \frac{y^2}{16}. From the second equation y216=365x2;\frac{y^2}{16} = 36 - 5x^2; substituting into the first gives 49(365x2)3x2=28,49(36 - 5x^2) - 3x^2 = 28, so 248x2=1736,248x^2 = 1736, x2=7,x^2 = 7, and then y2=16.y^2 = 16.

The altitude from CC has length y2x2=3,\sqrt{y^2 - x^2} = 3, so the area is 122x3=37,\frac{1}{2} \cdot 2x \cdot 3 = 3\sqrt{7}, and m+n=3+7=10.m + n = 3 + 7 = 10.

14.

For positive integers nn and k,k, let f(n,k)f(n, k) be the remainder when nn is divided by k,k, and for n>1n \gt 1 let F(n)=max1kn2f(n,k).F(n) = \max_{1 \le k \le \frac{n}{2}} f(n, k). Find the remainder when n=20100F(n)\sum_{n = 20}^{100} F(n) is divided by 1000.1000.

Solution:

For kn2k \le \frac{n}{2} the quotient n/k\lfloor n/k \rfloor is at least 2,2, so the remainder satisfies f(n,k)n2kf(n, k) \le n - 2k as well as f(n,k)k1.f(n, k) \le k - 1. Write n=3m+rn = 3m + r with r{0,1,2}.r \in \{0, 1, 2\}. Dividing by k=m+1k = m + 1 gives quotient 22 and remainder m+r2,m + r - 2, so F(n)m+r2.F(n) \ge m + r - 2. Conversely, for km+1,k \ge m + 1, f(n,k)n2km+r2,f(n, k) \le n - 2k \le m + r - 2, and for smaller kk the bound f(n,k)k1f(n, k) \le k - 1 finishes the job: when r=2r = 2 it gives at most mm for km+1;k \le m + 1; when r=1r = 1 it gives at most m1m - 1 for km;k \le m; and when r=0r = 0 it gives at most m2m - 2 for km1,k \le m - 1, while k=mk = m divides 3m3m exactly, leaving remainder 0.0. Hence F(3m)=m2,F(3m+1)=m1,F(3m+2)=m.F(3m) = m - 2, \qquad F(3m + 1) = m - 1, \qquad F(3m + 2) = m.

Grouping n=20,,100n = 20, \ldots, 100 as triples 3m1,3m - 1, 3m,3m, 3m+13m + 1 for m=7,,33m = 7, \ldots, 33 (note F(3m1)=F(3(m1)+2)=m1F(3m - 1) = F(3(m-1) + 2) = m - 1), each triple contributes (m1)+(m2)+(m1)=3m4,(m - 1) + (m - 2) + (m - 1) = 3m - 4, so n=20100F(n)=m=733(3m4)=3(7+33)272427=1620108=1512.\sum_{n=20}^{100} F(n) = \sum_{m=7}^{33} (3m - 4) = 3 \cdot \frac{(7 + 33) \cdot 27}{2} - 4 \cdot 27 = 1620 - 108 = 1512.

The requested remainder is 512.512.

15.

Let A,B,CA, B, C be angles of a triangle with AA and CC acute and BB greater than a right angle satisfying cos2A+cos2B+2sinAsinBcosC=158\cos^2 A + \cos^2 B + 2 \sin A \sin B \cos C = \frac{15}{8} and cos2B+cos2C+2sinBsinCcosA=149.\cos^2 B + \cos^2 C + 2 \sin B \sin C \cos A = \frac{14}{9}. There are positive integers p,p, q,q, r,r, and ss for which cos2C+cos2A+2sinCsinAcosB=pqrs,\cos^2 C + \cos^2 A + 2 \sin C \sin A \cos B = \frac{p - q\sqrt{r}}{s}, where p+qp + q and ss are relatively prime and rr is not divisible by the square of any prime. Find p+q+r+s.p + q + r + s.

Difficulty rating: 3370

Solution:

Replacing each cos2\cos^2 by 1sin2,1 - \sin^2, the first equation becomes sin2A+sin2B2sinAsinBcosC=18.\sin^2 A + \sin^2 B - 2 \sin A \sin B \cos C = \frac{1}{8}. By the law of sines, sinA=a2R\sin A = \frac{a}{2R} and so on, so the left side equals a2+b22abcosC4R2=c24R2=sin2C\frac{a^2 + b^2 - 2ab\cos C}{4R^2} = \frac{c^2}{4R^2} = \sin^2 C by the law of cosines. Hence sin2C=2158=18.\sin^2 C = 2 - \frac{15}{8} = \frac{1}{8}. The same argument turns the second equation into sin2A=2149=49,\sin^2 A = 2 - \frac{14}{9} = \frac{4}{9}, and shows the requested expression equals 2sin2B.2 - \sin^2 B.

Since AA and CC are acute, cosA=53\cos A = \frac{\sqrt{5}}{3} and cosC=144,\cos C = \frac{\sqrt{14}}{4}, with sinA=23\sin A = \frac{2}{3} and sinC=24.\sin C = \frac{\sqrt{2}}{4}. Then sinB=sin(A+C)=23144+5324=214+1012,\sin B = \sin(A + C) = \frac{2}{3} \cdot \frac{\sqrt{14}}{4} + \frac{\sqrt{5}}{3} \cdot \frac{\sqrt{2}}{4} = \frac{2\sqrt{14} + \sqrt{10}}{12}, so sin2B=66+835144=33+43572.\sin^2 B = \frac{66 + 8\sqrt{35}}{144} = \frac{33 + 4\sqrt{35}}{72}.

Therefore 2sin2B=11143572,2 - \sin^2 B = \frac{111 - 4\sqrt{35}}{72}, and p+q+r+s=111+4+35+72=222.p + q + r + s = 111 + 4 + 35 + 72 = 222.