2004 AIME I 考试答案

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.

The digits of a positive integer nn are four consecutive integers in decreasing order when read from left to right. What is the sum of the possible remainders when nn is divided by 37?37?

Concepts:place valuemodular arithmetic

Difficulty rating: 1890

Solution:

If the leading digit is a,a, the digits are a,a, a1,a - 1, a2,a - 2, a3a - 3 with a=3,4,,9,a = 3, 4, \ldots, 9, so n=1000a+100(a1)+10(a2)+(a3)=1111a123.n = 1000a + 100(a-1) + 10(a-2) + (a-3) = 1111a - 123.

Since 1111=3037+11111 = 30 \cdot 37 + 1 and 123=337+12,123 = 3 \cdot 37 + 12, we get na12a+25(mod37).n \equiv a - 12 \equiv a + 25 \pmod{37}. For a=3,,9a = 3, \ldots, 9 the values a+25a + 25 run through 28,29,,34,28, 29, \ldots, 34, each already less than 37,37, so these are exactly the seven possible remainders.

Their sum is 28+29++34=731=217.28 + 29 + \cdots + 34 = 7 \cdot 31 = 217.

2.

Set A\mathcal{A} consists of mm consecutive integers whose sum is 2m,2m, and set B\mathcal{B} consists of 2m2m consecutive integers whose sum is m.m. The absolute value of the difference between the greatest element of A\mathcal{A} and the greatest element of B\mathcal{B} is 99.99. Find m.m.

Difficulty rating: 2110

Solution:

The mm integers of A\mathcal{A} have mean 2mm=2,\frac{2m}{m} = 2, so they are centered at 2;2; since the mean of consecutive integers is an integer only when there are an odd number of them, mm is odd and the greatest element of A\mathcal{A} is 2+m12.2 + \frac{m-1}{2}. The 2m2m integers of B\mathcal{B} have mean 12,\frac{1}{2}, so they are 1m,,0,1,,m,1 - m, \ldots, 0, 1, \ldots, m, with greatest element m.m.

The condition is 2+m12m=3m2=99,\left| 2 + \frac{m-1}{2} - m \right| = \left| \frac{3 - m}{2} \right| = 99, so 3m=198,|3 - m| = 198, giving m=201m = 201 (since m>0m \gt 0). Indeed 201201 is odd, as required, so m=201.m = 201.

3.

A convex polyhedron PP has 2626 vertices, 6060 edges, and 3636 faces, 2424 of which are triangular, and 1212 of which are quadrilaterals. A space diagonal is a line segment connecting two non-adjacent vertices that do not belong to the same face. How many space diagonals does PP have?

Difficulty rating: 2070

Solution:

Every pair of vertices determines exactly one of three things: an edge, a diagonal of a face, or a space diagonal. There are (262)=325\binom{26}{2} = 325 pairs of vertices in all.

Of these, 6060 are edges. The 2424 triangular faces have no diagonals, while each of the 1212 quadrilateral faces has 2,2, for 2424 face diagonals (no two faces share a diagonal, since the polyhedron is convex).

The number of space diagonals is 3256024=241.325 - 60 - 24 = 241.

4.

A square has sides of length 2.2. Set S\mathcal{S} is the set of all line segments that have length 22 and whose endpoints are on adjacent sides of the square. The midpoints of the line segments in set S\mathcal{S} enclose a region whose area to the nearest hundredth is k.k. Find 100k.100k.

Difficulty rating: 2270

Solution:

Let a segment PQ\overline{PQ} in S\mathcal{S} have endpoints on two sides meeting at corner A,A, and let MM be its midpoint. Triangle PAQPAQ is right-angled at AA with hypotenuse PQ=2,PQ = 2, and the median to the hypotenuse of a right triangle is half the hypotenuse, so AM=1.AM = 1. Conversely every point at distance 11 from a corner (between the two adjacent sides) is such a midpoint, so the midpoints form four quarter-circle arcs of radius 11 centered at the corners of the square.

The region these arcs enclose is the square with the four quarter-disks removed, of area 44π4=4π0.86.4 - 4 \cdot \frac{\pi}{4} = 4 - \pi \approx 0.86. Therefore 100k=86.100k = 86.

5.

Alpha and Beta both took part in a two-day problem-solving competition. At the end of the second day, each had attempted questions worth a total of 500500 points. Alpha scored 160160 points out of 300300 points attempted on the first day, and scored 140140 points out of 200200 points attempted on the second day. Beta, who did not attempt 300300 points on the first day, had a positive integer score on each of the two days, and Beta's daily success ratio (points scored divided by points attempted) on each day was less than Alpha's on that day. Alpha's two-day success ratio was 300/500=3/5.300/500 = 3/5. The largest possible two-day success ratio that Beta could have achieved is m/n,m/n, where mm and nn are relatively prime positive integers. What is m+n?m + n?

Difficulty rating: 2480

Solution:

Alpha's daily ratios were 160300=815\frac{160}{300} = \frac{8}{15} and 140200=710.\frac{140}{200} = \frac{7}{10}. Since 815<710,\frac{8}{15} \lt \frac{7}{10}, Beta's score was less than 710\frac{7}{10} of the points attempted on each day, so Beta's total score was less than 710500=350,\frac{7}{10} \cdot 500 = 350, hence at most 349.349.

A total of 349349 is achievable: Beta can score 11 out of 22 points attempted on day one (and 12<815\frac{1}{2} \lt \frac{8}{15}) and 348348 out of 498498 on day two (and 348498<710\frac{348}{498} \lt \frac{7}{10} because 3480<34863480 \lt 3486).

So Beta's largest possible two-day ratio is 349500,\frac{349}{500}, which is in lowest terms since 349349 is prime, and m+n=349+500=849.m + n = 349 + 500 = 849.

6.

An integer is called snakelike if its decimal representation a1a2a3aka_1 a_2 a_3 \ldots a_k satisfies ai<ai+1a_i \lt a_{i+1} if ii is odd and ai>ai+1a_i \gt a_{i+1} if ii is even. How many snakelike integers between 10001000 and 99999999 have four distinct digits?

Difficulty rating: 2510

Solution:

A four-digit snakelike number satisfies a1<a2>a3<a4.a_1 \lt a_2 \gt a_3 \lt a_4. First count the arrangements of any four distinct digits w<x<y<zw \lt x \lt y \lt z into this pattern. The largest digit zz must sit in position 22 or 4.4. If zz is in position 4,4, the other three form a1<a2>a3,a_1 \lt a_2 \gt a_3, so the largest of them takes position 22 and the remaining two can go in either order: 22 ways. If zz is in position 2,2, any of the other three digits can be a1,a_1, and then a3<a4a_3 \lt a_4 fixes the rest: 33 ways. So each set of four digits admits exactly 55 snakelike orders.

If 00 is not among the digits, all 55 orders give valid numbers: (94)5=630.\binom{9}{4} \cdot 5 = 630. If 00 is among them, note 00 must occupy position 11 or 33 (positions 22 and 44 must exceed a neighbor), and position 11 is forbidden. With 00 in position 3,3, any of the other three digits can be a4,a_4, and a1<a2a_1 \lt a_2 fixes the rest, so 33 of the 55 orders survive: (93)3=252.\binom{9}{3} \cdot 3 = 252.

The total is 630+252=882.630 + 252 = 882.

7.

Let CC be the coefficient of x2x^2 in the expansion of the product (1x)(1+2x)(13x)(1+14x)(115x).(1 - x)(1 + 2x)(1 - 3x) \cdots (1 + 14x)(1 - 15x). Find C.|C|.

Solution:

Write the product as k=115(1+akx)\prod_{k=1}^{15} (1 + a_k x) with ak=(1)kk.a_k = (-1)^k k. An x2x^2 term arises by choosing the xx-term from two factors, so C=i<jaiaj,C = \sum_{i \lt j} a_i a_j, and C=(ak)2ak22.C = \frac{\left(\sum a_k\right)^2 - \sum a_k^2}{2}.

The alternating sum is (1+2)+(3+4)++(13+14)15=715=8,(-1 + 2) + (-3 + 4) + \cdots + (-13 + 14) - 15 = 7 - 15 = -8, and ak2=12+22++152=1516316=1240.\sum a_k^2 = 1^2 + 2^2 + \cdots + 15^2 = \frac{15 \cdot 16 \cdot 31}{6} = 1240.

Thus C=6412402=588,C = \frac{64 - 1240}{2} = -588, so C=588.|C| = 588.

8.

Define a regular nn-pointed star to be the union of nn line segments P1P2,P2P3,,PnP1\overline{P_1 P_2}, \overline{P_2 P_3}, \ldots, \overline{P_n P_1} such that

• the points P1,P2,,PnP_1, P_2, \ldots, P_n are coplanar and no three of them are collinear,

• each of the nn line segments intersects at least one of the other line segments at a point other than an endpoint,

• all of the angles at P1,P2,,PnP_1, P_2, \ldots, P_n are congruent,

• all of the nn line segments P1P2,P2P3,,PnP1\overline{P_1 P_2}, \overline{P_2 P_3}, \ldots, \overline{P_n P_1} are congruent, and

• the path P1P2PnP1P_1 P_2 \ldots P_n P_1 turns counterclockwise at an angle of less than 180180^\circ at each vertex.

There are no regular 33-pointed, 44-pointed, or 66-pointed stars. All regular 55-pointed stars are similar, but there are two non-similar regular 77-pointed stars. How many non-similar regular 10001000-pointed stars are there?

Solution:

The congruent angles and congruent segments force the vertices of a regular star to be equally spaced on a circle, visited by taking a constant step: number nn equally spaced points 0,1,,n10, 1, \ldots, n - 1 and connect every ddth point. The path visits all nn points exactly when gcd(d,n)=1,\gcd(d, n) = 1, and the segments actually cross (making a star rather than a convex polygon) exactly when 2dn2.2 \le d \le n - 2. Steps dd and ndn - d trace the same figure in opposite directions, while different values otherwise give non-similar stars, since a dilation matching the circles would have to match the turning angles.

For n=1000=2353,n = 1000 = 2^3 \cdot 5^3, the number of dd with gcd(d,1000)=1\gcd(d, 1000) = 1 is 1000(112)(115)=400.1000\left(1 - \frac{1}{2}\right)\left(1 - \frac{1}{5}\right) = 400. Removing d=1d = 1 and d=999d = 999 leaves 398398 values, which pair up as {d,1000d},\{d, 1000 - d\}, so the number of non-similar regular 10001000-pointed stars is 3982=199.\frac{398}{2} = 199.

9.

Let ABCABC be a triangle with sides 3,3, 4,4, and 5,5, and DEFGDEFG be a 66-by-77 rectangle. A segment is drawn to divide triangle ABCABC into a triangle U1U_1 and a trapezoid V1,V_1, and another segment is drawn to divide rectangle DEFGDEFG into a triangle U2U_2 and a trapezoid V2V_2 such that U1U_1 is similar to U2U_2 and V1V_1 is similar to V2.V_2. The minimum value of the area of U1U_1 can be written in the form m/n,m/n, where mm and nn are relatively prime positive integers. Find m+n.m + n.

Difficulty rating: 2990

Solution:

A segment cuts the rectangle into a triangle and a trapezoid only if it runs from a vertex to a point on a nonadjacent side, so U2U_2 is a right triangle whose legs lie along two sides of the rectangle, one leg being a full side (66 or 77). Since U1U2,U_1 \sim U_2, the cut in the 33-44-55 right triangle ABCABC must also produce a right triangle, so it is parallel to a leg, and then U1ABC.U_1 \sim ABC. Hence U2U_2 is a 33-44-55 triangle too: its legs are 66 and 92\frac{9}{2} (full side 66) or 77 and 214\frac{21}{4} (full side 77); the other orientations need legs 88 or 283,\frac{28}{3}, which do not fit.

In both cases the trapezoid V2V_2 has two right angles and an acute angle between the cut and its longer base with tangent 69/2=721/4=43.\frac{6}{9/2} = \frac{7}{21/4} = \frac{4}{3}. In triangle ABC,ABC, a cut parallel to the leg of length 33 gives V1V_1 an acute angle with tangent 43,\frac{4}{3}, matching, while a cut parallel to the leg of length 44 gives tangent 34,\frac{3}{4}, which cannot match. So the cut is parallel to the side of length 3,3, and the parallel bases of V1V_1 are the cut segment ss and the side of length 3.3.

Similarity of the trapezoids forces s:3s : 3 to equal the ratio of the bases of V2,V_2, which is 79/27=514\frac{7 - 9/2}{7} = \frac{5}{14} in the first case and 621/46=18\frac{6 - 21/4}{6} = \frac{1}{8} in the second. Then [U1]=(s3)2[ABC],[U_1] = \left(\frac{s}{3}\right)^2 [ABC], giving (514)26=7598\left(\frac{5}{14}\right)^2 \cdot 6 = \frac{75}{98} or (18)26=332.\left(\frac{1}{8}\right)^2 \cdot 6 = \frac{3}{32}. The minimum is 332,\frac{3}{32}, so m+n=3+32=35.m + n = 3 + 32 = 35.

10.

A circle of radius 11 is randomly placed in a 1515-by-3636 rectangle ABCDABCD so that the circle lies completely within the rectangle. Given that the probability that the circle will not touch diagonal AC\overline{AC} is m/n,m/n, where mm and nn are relatively prime positive integers, find m+n.m + n.

Solution:

Place A=(0,0),A = (0, 0), B=(36,0),B = (36, 0), C=(36,15).C = (36, 15). For the circle to lie in the rectangle, its center must lie in the rectangle [1,35]×[1,14],[1, 35] \times [1, 14], of area 3413=442,34 \cdot 13 = 442, and the center is uniformly distributed there. The diagonal AC\overline{AC} lies on the line 5x12y=0,5x - 12y = 0, and the circle misses it exactly when the center's distance 5x12y13\frac{|5x - 12y|}{13} exceeds 1,1, that is, 5x12y>13.|5x - 12y| \gt 13.

The line 5x12y=135x - 12y = 13 meets y=1y = 1 at x=5x = 5 and x=35x = 35 at y=272,y = \frac{27}{2}, so below the diagonal the favorable region is the right triangle with vertices (5,1),(5, 1), (35,1),(35, 1), (35,272),(35, \tfrac{27}{2}), with legs 3030 and 252\frac{25}{2} and area 1230252=3752.\frac{1}{2} \cdot 30 \cdot \frac{25}{2} = \frac{375}{2}. Rotating 180180^\circ about the rectangle's center (18,152),(18, \tfrac{15}{2}), which lies on the diagonal, maps the inner rectangle and the diagonal to themselves, so the region above the diagonal has the same area.

The probability is 375442,\frac{375}{442}, and since 442=21317442 = 2 \cdot 13 \cdot 17 shares no factor with 375=353,375 = 3 \cdot 5^3, we get m+n=375+442=817.m + n = 375 + 442 = 817.

11.

A solid in the shape of a right circular cone is 44 inches tall and its base has a 33-inch radius. The entire surface of the cone, including its base, is painted. A plane parallel to the base of the cone divides the cone into two solids, a smaller cone-shaped solid C\mathcal{C} and a frustum-shaped solid F,\mathcal{F}, in such a way that the ratio between the areas of the painted surfaces of C\mathcal{C} and F\mathcal{F} and the ratio between the volumes of C\mathcal{C} and F\mathcal{F} are both equal to k.k. Given that k=m/n,k = m/n, where mm and nn are relatively prime positive integers, find m+n.m + n.

Solution:

The cone has radius 3,3, height 4,4, and slant height 5,5, so its painted surface consists of lateral area π35=15π\pi \cdot 3 \cdot 5 = 15\pi and base area 9π,9\pi, totaling 24π.24\pi. Suppose the cut is at similarity ratio t,t, so C\mathcal{C} is a cone with radius 3t3t and slant height 5t.5t. Then C\mathcal{C}'s painted surface is only its lateral area 15πt2,15\pi t^2, and F\mathcal{F}'s painted surface is the rest, 24π15πt2.24\pi - 15\pi t^2. The volumes are in ratio t3t^3 to 1t3.1 - t^3.

Setting the two ratios equal, 15t22415t2=t31t3,\frac{15 t^2}{24 - 15 t^2} = \frac{t^3}{1 - t^3}, so 15t2(1t3)=t3(2415t2),15 t^2 (1 - t^3) = t^3 (24 - 15 t^2), which simplifies to 15t2=24t3,15 t^2 = 24 t^3, giving t=58.t = \frac{5}{8}.

Then k=t31t3=125/512387/512=125387,k = \frac{t^3}{1 - t^3} = \frac{125/512}{387/512} = \frac{125}{387}, which is in lowest terms since 387=3243,387 = 3^2 \cdot 43, so m+n=125+387=512.m + n = 125 + 387 = 512.

12.

Let S\mathcal{S} be the set of ordered pairs (x,y)(x, y) such that 0<x1,0 \lt x \le 1, 0<y1,0 \lt y \le 1, and log2(1x)\left\lfloor \log_2\left(\frac{1}{x}\right) \right\rfloor and log5(1y)\left\lfloor \log_5\left(\frac{1}{y}\right) \right\rfloor are both even. Given that the area of the graph of S\mathcal{S} is m/n,m/n, where mm and nn are relatively prime positive integers, find m+n.m + n. The notation z\lfloor z \rfloor denotes the greatest integer that is less than or equal to z.z.

Solution:

For 0<x1,0 \lt x \le 1, the condition log2(1/x)=2k\lfloor \log_2(1/x) \rfloor = 2k (for an integer k0k \ge 0) means 2klog2(1/x)<2k+1,2k \le \log_2(1/x) \lt 2k + 1, i.e. x(22k1,22k].x \in \left(2^{-2k-1}, 2^{-2k}\right]. These intervals have total length k022k1=1/211/4=23.\sum_{k \ge 0} 2^{-2k-1} = \frac{1/2}{1 - 1/4} = \frac{2}{3}. Similarly, log5(1/y)\lfloor \log_5(1/y) \rfloor is even for y(52k1,52k],y \in \left(5^{-2k-1}, 5^{-2k}\right], intervals of total length k04525k=4/511/25=56.\sum_{k \ge 0} \frac{4}{5} \cdot 25^{-k} = \frac{4/5}{1 - 1/25} = \frac{5}{6}.

The graph of S\mathcal{S} is the product of these two sets, so its area is 2356=59,\frac{2}{3} \cdot \frac{5}{6} = \frac{5}{9}, and m+n=5+9=14.m + n = 5 + 9 = 14.

13.

The polynomial P(x)=(1+x+x2++x17)2x17P(x) = (1 + x + x^2 + \cdots + x^{17})^2 - x^{17} has 3434 complex zeros of the form zk=rk[cos(2παk)+isin(2παk)],z_k = r_k[\cos(2\pi\alpha_k) + i\sin(2\pi\alpha_k)], k=1,2,3,,34,k = 1, 2, 3, \ldots, 34, with 0<α1α2α3α34<10 \lt \alpha_1 \le \alpha_2 \le \alpha_3 \le \cdots \le \alpha_{34} \lt 1 and rk>0.r_k \gt 0. Given that α1+α2+α3+α4+α5=m/n,\alpha_1 + \alpha_2 + \alpha_3 + \alpha_4 + \alpha_5 = m/n, where mm and nn are relatively prime positive integers, find m+n.m + n.

Difficulty rating: 3060

Solution:

For x1,x \ne 1, write 1+x++x17=x181x1,1 + x + \cdots + x^{17} = \frac{x^{18} - 1}{x - 1}, so (x1)2P(x)=(x181)2x17(x1)2=x36x19x17+1=(x191)(x171).(x - 1)^2 P(x) = (x^{18} - 1)^2 - x^{17}(x - 1)^2 = x^{36} - x^{19} - x^{17} + 1 = (x^{19} - 1)(x^{17} - 1). Hence the zeros of PP are the 3434 complex numbers other than 11 satisfying x17=1x^{17} = 1 or x19=1;x^{19} = 1; all lie on the unit circle, with angles α=k17\alpha = \frac{k}{17} (k=1,,16)(k = 1, \ldots, 16) and α=k19\alpha = \frac{k}{19} (k=1,,18).(k = 1, \ldots, 18).

The five smallest of these angles are 119<117<219<217<319,\frac{1}{19} \lt \frac{1}{17} \lt \frac{2}{19} \lt \frac{2}{17} \lt \frac{3}{19}, whose sum is 619+317=102+57323=159323.\frac{6}{19} + \frac{3}{17} = \frac{102 + 57}{323} = \frac{159}{323}. Since 159=353159 = 3 \cdot 53 and 323=1719,323 = 17 \cdot 19, this is in lowest terms, and m+n=159+323=482.m + n = 159 + 323 = 482.

14.

A unicorn is tethered by a 2020-foot silver rope to the base of a magician's cylindrical tower whose radius is 88 feet. The rope is attached to the tower at ground level and to the unicorn at a height of 44 feet. The unicorn has pulled the rope taut, the end of the rope is 44 feet from the nearest point on the tower, and the length of the rope that is touching the tower is abc\frac{a - \sqrt{b}}{c} feet, where a,a, b,b, and cc are positive integers, and cc is prime. Find a+b+c.a + b + c.

Solution:

The rope runs from its anchor AA at the base of the tower, hugs the wall up to a point P,P, then goes straight to its end Q,Q, which is at height 44 and at distance 8+4=128 + 4 = 12 from the tower's axis. Unroll the cylinder's wall into a plane: a taut rope becomes a single straight segment of length 2020 rising 44 feet, so its horizontal projection has length 20242=86,\sqrt{20^2 - 4^2} = 8\sqrt{6}, and every piece of the rope has the same ratio 2086=526\frac{20}{8\sqrt{6}} = \frac{5}{2\sqrt{6}} of length to horizontal projection.

Viewed from above, the free portion PQPQ is tangent to the circle of radius 88 at PP from a point at distance 12,12, so its horizontal projection has length 12282=45.\sqrt{12^2 - 8^2} = 4\sqrt{5}. Therefore PQ=52645=1056=5303.PQ = \frac{5}{2\sqrt{6}} \cdot 4\sqrt{5} = \frac{10\sqrt{5}}{\sqrt{6}} = \frac{5\sqrt{30}}{3}.

The rope touching the tower has length 205303=607503,20 - \frac{5\sqrt{30}}{3} = \frac{60 - \sqrt{750}}{3}, and c=3c = 3 is prime, so a+b+c=60+750+3=813.a + b + c = 60 + 750 + 3 = 813.

15.

For all positive integers x,x, let f(x)={1if x=1,x/10if x is divisible by 10,x+1otherwise,f(x) = \begin{cases} 1 & \text{if } x = 1, \\ x/10 & \text{if } x \text{ is divisible by } 10, \\ x + 1 & \text{otherwise,} \end{cases} and define a sequence as follows: x1=xx_1 = x and xn+1=f(xn)x_{n+1} = f(x_n) for all positive integers n.n. Let d(x)d(x) be the smallest nn such that xn=1.x_n = 1. (For example, d(100)=3d(100) = 3 and d(87)=7.d(87) = 7.) Let mm be the number of positive integers xx such that d(x)=20.d(x) = 20. Find the sum of the distinct prime factors of m.m.

Difficulty rating: 3370

Solution:

Work backwards: f(z)=zf(z') = z for z=10zz' = 10z (always) and for z=z1z' = z - 1 (provided z1z - 1 is not a multiple of 1010 and z11,z - 1 \ne 1, i.e. zz does not end in 11 and z2z \ne 2). So the integers with d(x)=nd(x) = n form column nn of a tree rooted at 1:1: the columns begin {1},\{1\}, {10},\{10\}, {9,100},\{9, 100\}, {8,90,99,1000},\{8, 90, 99, 1000\}, and every vertex has two children except 22 and the vertices ending in 1,1, which have only the child 10z.10z.

Locate those one-child vertices. Since 23101,2 \to 3 \to \cdots \to 10 \to 1, the vertex 22 sits in column 10.10. A vertex ending in 11 is reached by subtracting 11 nine times from a vertex ending in 0,0, so such vertices sit 99 columns after the multiples of 1010 in the tree. Columns 22 through 1010 double perfectly (no one-child vertices occur that early), so column jj has 2j22^{j-2} vertices, of which the multiples of 1010 — the children 10z10z of column j1j - 1 — number 2j3.2^{j-3}. Hence for 12k19,12 \le k \le 19, column kk contains 2k122^{k-12} vertices ending in 11 (column 1111 has none, because the multiple of 1010 in column 22 is 1010 itself, whose descendant 11 is excluded — that exclusion is exactly the missing child of 22).

A one-child vertex in column kk removes 219k2^{19-k} of the potential 2182^{18} vertices from column 20.20. Therefore m=21829k=12192k12219k=21829827=29(2912)=29509.m = 2^{18} - 2^{9} - \sum_{k=12}^{19} 2^{k-12} \cdot 2^{19-k} = 2^{18} - 2^9 - 8 \cdot 2^7 = 2^9(2^9 - 1 - 2) = 2^9 \cdot 509. Since 509509 is prime, the sum of the distinct prime factors of mm is 2+509=511.2 + 509 = 511.