Navvye/Olympiad-Problems-CSV huggingface dataset:
Problem: Find the arithmetic mean of all the three-digit palindromes. (Recall that a palindrome is a number that reads the same forward and backward, such as $777$ or $383$ .)

Solution: Recall that the arithmetic mean of all the $n$ digit palindromes is just the average of the largest and smallest $n$ digit palindromes, and in this case the $2$ palindromes are $101$ and $999$ and $\frac{101+999}{2}=\boxed{550},$ which is the final answer.

Answer:  550
Problem: Find the arithmetic mean of all the three-digit palindromes. (Recall that a palindrome is a number that reads the same forward and backward, such as $777$ or $383$ .)

Solution: For any palindrome $\underline{ABA},$ note that $\underline{ABA}$ is $100A + 10B + A = 101A + 10B.$ The average for $A$ is $5$ since $A$ can be any of $1, 2, 3, 4, 5, 6, 7, 8,$ or $9.$ The average for $B$ is $4.5$ since $B$ is either $0, 1, 2, 3, 4, 5, 6, 7, 8,$ or $9.$ Therefore, the answer is $505 + 45 = \boxed{550}.$

Answer:  550
Problem: Find the arithmetic mean of all the three-digit palindromes. (Recall that a palindrome is a number that reads the same forward and backward, such as $777$ or $383$ .)

Solution: For every three-digit palindrome $\underline{ABA}$ with $A\in\{1,2,3,4,5,6,7,8,9\}$ and $B\in\{0,1,2,3,4,5,6,7,8,9\},$ note that $\underline{(10-A)(9-B)(10-A)}$ must be another palindrome by symmetry. Therefore, we can pair each three-digit palindrome uniquely with another three-digit palindrome so that they sum to \begin{align*} \underline{ABA}+\underline{(10-A)(9-B)(10-A)}&=\left[100A+10B+A\right]+\left[100(10-A)+10(9-B)+(10-A)\right] \\ &=\left[100A+10B+A\right]+\left[1000-100A+90-10B+10-A\right] \\ &=1000+90+10 \\ &=1100. \end{align*} For instances: \begin{align*} 171+929&=1100, \\ 262+838&=1100, \\ 303+797&=1100, \\ 414+686&=1100, \\ 545+555&=1100, \end{align*} and so on.
From this symmetry, the arithmetic mean of all the three-digit palindromes is $\frac{1100}{2}=\boxed{550}.$

Answer:  550
Problem: Find the arithmetic mean of all the three-digit palindromes. (Recall that a palindrome is a number that reads the same forward and backward, such as $777$ or $383$ .)

Solution: We notice that a three-digit palindrome looks like this: $\underline{aba}.$
And we know $a$ can be any digit from $1$ through $9,$ and $b$ can be any digit from $0$ through $9,$ so there are $9\times{10}=90$ three-digit palindromes.
We want to find the sum of these $90$ palindromes and divide it by $90$ to find the arithmetic mean.
How can we do that? Instead of adding the numbers up, we can break each palindrome into two parts: $101a+10b.$
Thus, all of these $90$ palindromes can be broken into this form.
Thus, the sum of these $90$ palindromes will be $101\times{(1+2+...+9)}\times{10}+10\times{(0+1+2+...+9)}\times{9},$ because each $a$ will be in $10$ different palindromes (since for each $a,$ there are $10$ choices for $b$ ). The same logic explains why we multiply by $9$ when computing the total sum of $b.$
We get a sum of $45\times{1100},$ but don't compute this! Divide this by $90$ and you will get $\boxed{550}.$

Answer:  550
Problem: Find the arithmetic mean of all the three-digit palindromes. (Recall that a palindrome is a number that reads the same forward and backward, such as $777$ or $383$ .)

Solution: The possible values of the first and last digits each are $1, 2, ..., 8, 9$ with a sum of $45$ so the average value is $5.$ The middle digit can be any digit from $0$ to $9$ with a sum of $45,$ so the average value is $4.5.$ The average of all three-digit palindromes is $5\cdot 10^2+4.5\cdot 10+5=\boxed{550}.$

Answer:  550
Problem: Equilateral triangle $ABC$ has side length $840$ . Point $D$ lies on the same side of line $BC$ as $A$ such that $\overline{BD} \perp \overline{BC}$ . The line $\ell$ through $D$ parallel to line $BC$ intersects sides $\overline{AB}$ and $\overline{AC}$ at points $E$ and $F$ , respectively. Point $G$ lies on $\ell$ such that $F$ is between $E$ and $G$ $\triangle AFG$ is isosceles, and the ratio of the area of $\triangle AFG$ to the area of $\triangle BED$ is $8:9$ . Find $AF$ [asy] pair A,B,C,D,E,F,G; B=origin; A=5*dir(60); C=(5,0); E=0.6*A+0.4*B; F=0.6*A+0.4*C; G=rotate(240,F)*A; D=extension(E,F,B,dir(90)); draw(D--G--A,grey); draw(B--0.5*A+rotate(60,B)*A*0.5,grey); draw(A--B--C--cycle,linewidth(1.5)); dot(A^^B^^C^^D^^E^^F^^G); label("$A$",A,dir(90)); label("$B$",B,dir(225)); label("$C$",C,dir(-45)); label("$D$",D,dir(180)); label("$E$",E,dir(-45)); label("$F$",F,dir(225)); label("$G$",G,dir(0)); label("$\ell$",midpoint(E--F),dir(90)); [/asy]

Solution: By angle chasing, we conclude that $\triangle AGF$ is a $30^\circ\text{-}30^\circ\text{-}120^\circ$ triangle, and $\triangle BED$ is a $30^\circ\text{-}60^\circ\text{-}90^\circ$ triangle.
Let $AF=x.$ It follows that $FG=x$ and $EB=FC=840-x.$ By the side-length ratios in $\triangle BED,$ we have $DE=\frac{840-x}{2}$ and $DB=\frac{840-x}{2}\cdot\sqrt3.$
Let the brackets denote areas. We have \[[AFG]=\frac12\cdot AF\cdot FG\cdot\sin{\angle AFG}=\frac12\cdot x\cdot x\cdot\sin{120^\circ}=\frac12\cdot x^2\cdot\frac{\sqrt3}{2}\] and \[[BED]=\frac12\cdot DE\cdot DB=\frac12\cdot\frac{840-x}{2}\cdot\left(\frac{840-x}{2}\cdot\sqrt3\right).\]
We set up and solve an equation for $x:$ \begin{align*} \frac{[AFG]}{[BED]}&=\frac89 \\ \frac{\frac12\cdot x^2\cdot\frac{\sqrt3}{2}}{\frac12\cdot\frac{840-x}{2}\cdot\left(\frac{840-x}{2}\cdot\sqrt3\right)}&=\frac89 \\ \frac{2x^2}{(840-x)^2}&=\frac89 \\ \frac{x^2}{(840-x)^2}&=\frac49. \end{align*} Since $0<x<840,$ it is clear that $\frac{x}{840-x}>0.$ Therefore, we take the positive square root for both sides: \begin{align*} \frac{x}{840-x}&=\frac23 \\ 3x&=1680-2x \\ 5x&=1680 \\ x&=\boxed{336}

Answer:  336
Problem: Equilateral triangle $ABC$ has side length $840$ . Point $D$ lies on the same side of line $BC$ as $A$ such that $\overline{BD} \perp \overline{BC}$ . The line $\ell$ through $D$ parallel to line $BC$ intersects sides $\overline{AB}$ and $\overline{AC}$ at points $E$ and $F$ , respectively. Point $G$ lies on $\ell$ such that $F$ is between $E$ and $G$ $\triangle AFG$ is isosceles, and the ratio of the area of $\triangle AFG$ to the area of $\triangle BED$ is $8:9$ . Find $AF$ [asy] pair A,B,C,D,E,F,G; B=origin; A=5*dir(60); C=(5,0); E=0.6*A+0.4*B; F=0.6*A+0.4*C; G=rotate(240,F)*A; D=extension(E,F,B,dir(90)); draw(D--G--A,grey); draw(B--0.5*A+rotate(60,B)*A*0.5,grey); draw(A--B--C--cycle,linewidth(1.5)); dot(A^^B^^C^^D^^E^^F^^G); label("$A$",A,dir(90)); label("$B$",B,dir(225)); label("$C$",C,dir(-45)); label("$D$",D,dir(180)); label("$E$",E,dir(-45)); label("$F$",F,dir(225)); label("$G$",G,dir(0)); label("$\ell$",midpoint(E--F),dir(90)); [/asy]

Solution: We express the areas of $\triangle BED$ and $\triangle AFG$ in terms of $AF$ in order to solve for $AF.$
We let $x = AF.$ Because $\triangle AFG$ is isosceles and $\triangle AEF$ is equilateral, $AF = FG = EF = AE = x.$
Let the height of $\triangle ABC$ be $h$ and the height of $\triangle AEF$ be $h'.$ Then we have that $h = \frac{\sqrt{3}}{2}(840) = 420\sqrt{3}$ and $h' = \frac{\sqrt{3}}{2}(EF) = \frac{\sqrt{3}}{2}x.$
Now we can find $DB$ and $BE$ in terms of $x.$ $DB = h - h' = 420\sqrt{3} - \frac{\sqrt{3}}{2}x,$ $BE = AB - AE = 840 - x.$ Because we are given that $\angle DBC = 90,$ $\angle DBE = 30.$ This allows us to use the sin formula for triangle area: the area of $\triangle BED$ is $\frac{1}{2}(\sin 30)\left(420\sqrt{3} - \frac{\sqrt{3}}{2}x\right)(840-x).$ Similarly, because $\angle AFG = 120,$ the area of $\triangle AFG$ is $\frac{1}{2}(\sin 120)(x^2).$
Now we can make an equation: \begin{align*} \frac{\triangle AFG}{\triangle BED} &= \frac{8}{9} \\ \frac{\frac{1}{2}(\sin 120)(x^2)}{\frac{1}{2}(\sin 30)\left(420\sqrt{3} - \frac{\sqrt{3}}{2}x\right)(840-x)} &= \frac{8}{9} \\ \frac{x^2}{\left(420 - \frac{x}{2}\right)(840-x)} &= \frac{8}{9}. \end{align*} To make further calculations easier, we scale everything down by $420$ (while keeping the same variable names, so keep that in mind). \begin{align*} \frac{x^2}{\left(1-\frac{x}{2}\right)(2-x)} &= \frac{8}{9} \\ 8\left(1-\frac{x}{2}\right)(2-x) &= 9x^2 \\ 16-16x + 4x^2 &= 9x^2 \\ 5x^2 + 16x -16 &= 0 \\ (5x-4)(x+4) &= 0. \end{align*} Thus $x = \frac{4}{5}.$ Because we scaled down everything by $420,$ the actual value of $AF$ is $\frac{4}{5}(420) = \boxed{336}.$

Answer:  336
Problem: Equilateral triangle $ABC$ has side length $840$ . Point $D$ lies on the same side of line $BC$ as $A$ such that $\overline{BD} \perp \overline{BC}$ . The line $\ell$ through $D$ parallel to line $BC$ intersects sides $\overline{AB}$ and $\overline{AC}$ at points $E$ and $F$ , respectively. Point $G$ lies on $\ell$ such that $F$ is between $E$ and $G$ $\triangle AFG$ is isosceles, and the ratio of the area of $\triangle AFG$ to the area of $\triangle BED$ is $8:9$ . Find $AF$ [asy] pair A,B,C,D,E,F,G; B=origin; A=5*dir(60); C=(5,0); E=0.6*A+0.4*B; F=0.6*A+0.4*C; G=rotate(240,F)*A; D=extension(E,F,B,dir(90)); draw(D--G--A,grey); draw(B--0.5*A+rotate(60,B)*A*0.5,grey); draw(A--B--C--cycle,linewidth(1.5)); dot(A^^B^^C^^D^^E^^F^^G); label("$A$",A,dir(90)); label("$B$",B,dir(225)); label("$C$",C,dir(-45)); label("$D$",D,dir(180)); label("$E$",E,dir(-45)); label("$F$",F,dir(225)); label("$G$",G,dir(0)); label("$\ell$",midpoint(E--F),dir(90)); [/asy]

Solution: $\angle AFE = \angle AEF = \angle EAF = 60^{0} \Rightarrow \angle AFG = 120^{0}$ So, If $\Delta AFG$ is isosceles, it means that $AF = FG$
Let $AF = FG = AE = EF = x$
So, $[\Delta AFG] = \frac{1}{2} \cdot x^{2} \textup{sin} 120^{0} = \frac{\sqrt{3}}{4}x^{2}$
In $\Delta BED$ $BE = 840 - x$ , Hence $DE = \frac{840 - x}{2}$ (because $\textup{sin} 30^{0} = \frac{1}{2}$
Therefore, $[\Delta BED] = \frac{1}{2} (840 - x) \left (\frac{840-x}{2} \right) \textup{sin} 60^{0}$
So, $[\Delta BED] = \frac{\sqrt{3}}{4} (840 - x) \left (\frac{840-x}{2} \right) = \frac{\sqrt{3}}{8} (840 - x)^{2}$
Now, as we know that the ratio of the areas of $\Delta AFG$ and $\Delta BED$ is $8:9$
Substituting the values, we get
$\frac{\frac{\sqrt{3}}{4}x^{2}}{\frac{\sqrt{3}}{8} (840 - x)^{2}} = \frac{8}{9} \Rightarrow \left (\frac{x}{840 - x} \right)^{2} = \frac{4}{9}$ Hence, $\frac{x}{840 - x} = \frac{2}{3}$ . Solving this, we easily get $x = 336$
We have taken $AF = x$ , Hence, $AF = \boxed{336}$

Answer:  336
Problem: Equilateral triangle $ABC$ has side length $840$ . Point $D$ lies on the same side of line $BC$ as $A$ such that $\overline{BD} \perp \overline{BC}$ . The line $\ell$ through $D$ parallel to line $BC$ intersects sides $\overline{AB}$ and $\overline{AC}$ at points $E$ and $F$ , respectively. Point $G$ lies on $\ell$ such that $F$ is between $E$ and $G$ $\triangle AFG$ is isosceles, and the ratio of the area of $\triangle AFG$ to the area of $\triangle BED$ is $8:9$ . Find $AF$ [asy] pair A,B,C,D,E,F,G; B=origin; A=5*dir(60); C=(5,0); E=0.6*A+0.4*B; F=0.6*A+0.4*C; G=rotate(240,F)*A; D=extension(E,F,B,dir(90)); draw(D--G--A,grey); draw(B--0.5*A+rotate(60,B)*A*0.5,grey); draw(A--B--C--cycle,linewidth(1.5)); dot(A^^B^^C^^D^^E^^F^^G); label("$A$",A,dir(90)); label("$B$",B,dir(225)); label("$C$",C,dir(-45)); label("$D$",D,dir(180)); label("$E$",E,dir(-45)); label("$F$",F,dir(225)); label("$G$",G,dir(0)); label("$\ell$",midpoint(E--F),dir(90)); [/asy]

Solution: Since $\triangle AFG$ is isosceles, $AF = FG$ , and since $\triangle AEF$ is equilateral, $AF = EF$ . Thus, $EF = FG$ , and since these triangles share an altitude, they must have the same area.
Drop perpendiculars from $E$ and $F$ to line $BC$ ; call the meeting points $P$ and $Q$ , respectively. $\triangle BEP$ is clearly congruent to both $\triangle BED$ and $\triangle FQC$ , and thus each of these new triangles has the same area as $\triangle BED$ . But we can "slide" $\triangle BEP$ over to make it adjacent to $\triangle FQC$ , thus creating an equilateral triangle whose area has a ratio of $18:8$ when compared to $\triangle AEF$ (based on our conclusion from the first paragraph). Since these triangles are both equilateral, they are similar, and since the area ratio $18:8$ reduces to $9:4$ , the ratio of their sides must be $3:2$ . So, because $FC$ and $AF$ represent sides of these triangles, and they add to $840$ $AF$ must equal two-fifths of $840$ , or $\boxed{336}$

Answer:  336
Problem: Find the number of permutations $x_1, x_2, x_3, x_4, x_5$ of numbers $1, 2, 3, 4, 5$ such that the sum of five products \[x_1x_2x_3 + x_2x_3x_4 + x_3x_4x_5 + x_4x_5x_1 + x_5x_1x_2\] is divisible by $3$

Solution: Since $3$ is one of the numbers, a product with a $3$ in it is automatically divisible by $3,$ so WLOG $x_3=3,$ we will multiply by $5$ afterward since any of $x_1, x_2, \ldots, x_5$ would be $3,$ after some cancelation we see that now all we need to find is the number of ways that $x_5x_1(x_4+x_2)$ is divisible by $3,$ since $x_5x_1$ is never divisible by $3,$ now we just need to find the number of ways $x_4+x_2$ is divisible by $3.$ Note that $x_2$ and $x_4$ can be $(1, 2), (2, 1), (1, 5), (5, 1), (2, 4), (4, 2), (4, 5),$ or $(5, 4).$ We have $2$ ways to designate $x_1$ and $x_5$ for a total of $8 \cdot 2 = 16.$ So the desired answer is $16 \cdot 5=\boxed{080}.$

Answer:  080
Problem: Find the number of permutations $x_1, x_2, x_3, x_4, x_5$ of numbers $1, 2, 3, 4, 5$ such that the sum of five products \[x_1x_2x_3 + x_2x_3x_4 + x_3x_4x_5 + x_4x_5x_1 + x_5x_1x_2\] is divisible by $3$

Solution: The expression $x_1x_2x_3 + x_2x_3x_4 + x_3x_4x_5 + x_4x_5x_1 + x_5x_1x_2$ has cyclic symmetry. Without the loss of generality, let $x_1=3.$ It follows that $\{x_2,x_3,x_4,x_5\}=\{1,2,4,5\}.$ We have:
We construct the following table for the case $x_1=3,$ with all values in modulo $3:$ \[\begin{array}{c||c|c|c|c|c||c} & & & & & & \\ [-2.5ex] \textbf{Row} & \boldsymbol{x_2} & \boldsymbol{x_3} & \boldsymbol{x_4} & \boldsymbol{x_5} & \boldsymbol{x_2x_3x_4 + x_3x_4x_5} & \textbf{Valid?} \\ [0.5ex] \hline & & & & & & \\ [-2ex] 1 & 1 & 1 & 2 & 2 & 0 & \checkmark \\ 2 & 1 & 2 & 1 & 2 & 0 & \checkmark \\ 3 & 1 & 2 & 2 & 1 & 2 & \\ 4 & 2 & 1 & 1 & 2 & 1 & \\ 5 & 2 & 1 & 2 & 1 & 0 & \checkmark \\ 6 & 2 & 2 & 1 & 1 & 0 & \checkmark \end{array}\] For Row 1, $(x_2,x_3)$ can be either $(1,4)$ or $(4,1),$ and $(x_4,x_5)$ can be either $(2,5)$ or $(5,2).$ By the Multiplication Principle, Row 1 produces $2\cdot2=4$ permutations. Similarly, Rows 2, 5, and 6 each produce $4$ permutations.
Together, we get $4\cdot4=16$ permutations for the case $x_1=3.$ By the cyclic symmetry, the cases $x_2=3, x_3=3, x_4=3,$ and $x_5=3$ all have the same count. Therefore, the total number of permutations $x_1, x_2, x_3, x_4, x_5$ is $16\cdot5=\boxed{080}.$

Answer:  080
Problem: Find the number of permutations $x_1, x_2, x_3, x_4, x_5$ of numbers $1, 2, 3, 4, 5$ such that the sum of five products \[x_1x_2x_3 + x_2x_3x_4 + x_3x_4x_5 + x_4x_5x_1 + x_5x_1x_2\] is divisible by $3$

Solution: WLOG, let $x_{3} = 3$ So, the terms $x_{1}x_{2}x_{3}, x_{2}x_{3}x_{4},x_{3}x_{4}x_{5}$ are divisible by $3$
We are left with $x_{4}x_{5}x_{1}$ and $x_{5}x_{1}x_{2}$ .
We need $x_{4}x_{5}x_{1} + x_{5}x_{1}x_{2} \equiv 0 \pmod{3}$ .
The only way is when They are $(+1,-1)$ or $(-1, +1) \pmod{3}$
The numbers left with us are $1,2,4,5$ which are $+1,-1,+1,-1\pmod{3}$ respectively.
$+1$ (of $x_{4}x_{5}x_{1}$ or $x_{5}x_{1}x_{2}$ $= +1 \cdot +1 \cdot +1$ $\;\;\; OR \;\;\;+1$ (of $x_{4}x_{5}x_{1}$ or $x_{5}x_{1}x_{2}$ ) = $-1 \cdot -1 \cdot +1$
$-1$ (of $x_{4}x_{5}x_{1}$ or $x_{5}x_{1}x_{2}$ $= -1 \cdot -1 \cdot -1$ $\;\;\; OR \;\;\;-1$ (of $x_{4}x_{5}x_{1}$ or $x_{5}x_{1}x_{2}$ ) = $-1 \cdot +1 \cdot +1$
But, as we have just two $+1's$ and two $-1's$ .
Hence, We will have to take $+1 = +1 \cdot -1 \cdot -1$ and $-1 = -1 \cdot +1 \cdot +1$ .
Among these two, we have a $+1$ and $-1$ in common, i.e. $(x_{5}, x_{1}) = (+1, -1) or (-1, +1)$ (because $x_{1}$ and $x_{5}$ .
are common in $x_{4}x_{5}x_{1}$ and $x_{5}x_{1}x_{2}$ ).
So, $(x_{5}, x_{1}) \in {(1,2), (1,5), (4,2), (4,5), (2,1), (5,1), (2,4), (5,4)}$ i.e. $8$ values.
For each value of $(x_{5}, x_{1})$ we get $2$ values for $(x_{2}, x_{4})$ .
Hence, in total, we have $8 \times 2 = 16$ ways.
But any of the $x_{i} 's$ can be $3$ .
So, $16 \times 5 = \boxed{080}$

Answer:  080
Problem: Find the number of permutations $x_1, x_2, x_3, x_4, x_5$ of numbers $1, 2, 3, 4, 5$ such that the sum of five products \[x_1x_2x_3 + x_2x_3x_4 + x_3x_4x_5 + x_4x_5x_1 + x_5x_1x_2\] is divisible by $3$

Solution: This is my first time doing a solution (feel free to edit it)
We have \[x_1x_2x_3 + x_2x_3x_4 + x_3x_4x_5 + x_4x_5x_1 + x_5x_1x_2.\]
We have $5$ numbers. Considering any $x$ as $3,$ we see that we are left with two terms that are not always divisible by $3,$ which means that already gives us 5 options. 
Let's now consider $x_1 =3:$ We are left with \[3x_2x_3 + x_2x_3x_4 + x_3x_4x_5 + 3x_4x_5 + 3x_5x_2.\] The two terms left over are \[x_2x_3x_4 + x_3x_4x_5 \equiv 0 \pmod{3}\] since we already have used $3$ the remaining numbers are $1,2,4,5.$
We now factor \begin{align*} (x_2 + x_5)(x_3x_4) &\equiv 0 \pmod{3} \\ (x_2 + x_5) &\equiv 0 \pmod{3} \end{align*} since $1,2,4,5$ are all not factors of $3.$
Now using the number $1,2,4,5,$ we take two to get a number divisible by $3$ for $(x_2 + x_5):$ \begin{align*} 1+5 &\equiv 0 \pmod{3}, \\ 4+2 &\equiv 0 \pmod{3}, \\ 4+5 &\equiv 0 \pmod{3}, \\ 1+2 &\equiv 0 \pmod{3}. \end{align*} We have $4$ possibilities from above. Since we can also have $5+1$ or $2+4,$ there are $4\cdot2=8$ possibilities in all.
Now using \[(x_2 + x_5)(x_3x_4) \equiv 0 \pmod{3},\] we have $(x_3x_4),$ which results in $8$ more possibilities of $2$ times more. So, we get $2\cdot2\cdot4=16.$
Remember that $3$ can be any of $5$ different variables. So, we multiply by $5$ to get the answer $\boxed{080}.$

Answer:  080
Problem: There are real numbers $a, b, c,$ and $d$ such that $-20$ is a root of $x^3 + ax + b$ and $-21$ is a root of $x^3 + cx^2 + d.$ These two polynomials share a complex root $m + \sqrt{n} \cdot i,$ where $m$ and $n$ are positive integers and $i = \sqrt{-1}.$ Find $m+n.$

Solution: By the Complex Conjugate Root Theorem, the imaginary roots for each of $x^3+ax+b$ and $x^3+cx^2+d$ are complex conjugates. Let $z=m+\sqrt{n}\cdot i$ and $\overline{z}=m-\sqrt{n}\cdot i.$ It follows that the roots of $x^3+ax+b$ are $-20,z,\overline{z},$ and the roots of $x^3+cx^2+d$ are $-21,z,\overline{z}.$
We know that \begin{align*} z+\overline{z}&=2m, & (1) \\ z\overline{z}&=m^2+n. & (2) \end{align*} Applying Vieta's Formulas to $x^3+ax+b,$ we have $-20+z+\overline{z}=0.$ Substituting $(1)$ into this equation, we get $m=10.$
Applying Vieta's Formulas to $x^3+cx^2+d,$ we have $-21z-21\overline{z}+z\overline{z}=0,$ or $-21(z+\overline{z})+z\overline{z}=0.$ Substituting $(1)$ and $(2)$ into this equation, we get $n=320.$
Finally, the answer is $m+n=\boxed{330}.$

Answer:  330
Problem: There are real numbers $a, b, c,$ and $d$ such that $-20$ is a root of $x^3 + ax + b$ and $-21$ is a root of $x^3 + cx^2 + d.$ These two polynomials share a complex root $m + \sqrt{n} \cdot i,$ where $m$ and $n$ are positive integers and $i = \sqrt{-1}.$ Find $m+n.$

Solution: $(-20)^{3} + (-20)a + b = 0$ , hence $-20a + b = 8000$
Also, $(-21)^{3} + c(-21)^{2} + d = 0$ , hence $441c + d = 9261$
$m + i \sqrt{n}$ satisfies both $\Rightarrow$ we can put it in both equations and equate to 0.
In the first equation, we get $(m + i \sqrt{n})^{3} + a(m + i \sqrt{n}) + b = 0$ Simplifying this further, we get $(m^{3} - 3mn + am + b) + i(3m^{2} \sqrt{n} - n\sqrt{n} + a\sqrt{n}) = 0$
Hence, $m^{3} - 3mn + am + b = 0$ and $3m^{2} \sqrt{n} - n\sqrt{n} + a\sqrt{n} = 0 \Rightarrow 3m^{2} - n + a = 0 \rightarrow (1)$
In the second equation, we get $(m + i \sqrt{n})^{3} + c(m + i \sqrt{n})^{2} + d = 0$ Simplifying this further, we get $(m^{3} + m^{2}c - nc - 3mn + d) + i(3m^{2} \sqrt{n} - n\sqrt{n} + 2mc\sqrt{n}) = 0$
Hence, $m^{3} + m^{2}c - nc - 3mn + d = 0$ and $3m^{2} \sqrt{n} - n\sqrt{n} + 2mc\sqrt{n} = 0 \Rightarrow 3m^{2} - n + 2mc = 0 \rightarrow (2)$
Comparing (1) and (2),
$a = 2mc$ and $am + b = m^{2}c - nc + d \rightarrow (3)$
$b = 8000 + 20a \Rightarrow b = 40mc + 8000$ $d = 9261 - 441c$
Substituting these in $(3)$ gives, $2m^{2}c + 8000 + 40mc = m^{2}c - nc + 9261 - 441c$
This simplifies to $m^{2}c + nc + 40mc + 441c = 1261 \Rightarrow c(m^{2} + n + 40m + 441) = 1261$
Hence, $c|1261 \Rightarrow c \in {1,13,97,1261}$
Consider case of $c = 1$
$c = 1 \Rightarrow d = 8820$ Also, $a = 2m, b = 8000 + 40m$
$am + b = m^{2} - n + 8820$ (because c = 1)
Also, $m^{2} + n + 40m = 820 \rightarrow (4)$ Also, Equation (2) gives $3m^{2} - n + 2m = 0 \rightarrow (5)$
Solving (4) and (5) simultaneously gives $m = 10, n = 320$
[AIME can not have more than one answer, so we can stop here ... Not suitable for Subjective exam]
Hence, $m + n = 10 + 320 = \boxed{330}$

Answer:  330
Problem: There are real numbers $a, b, c,$ and $d$ such that $-20$ is a root of $x^3 + ax + b$ and $-21$ is a root of $x^3 + cx^2 + d.$ These two polynomials share a complex root $m + \sqrt{n} \cdot i,$ where $m$ and $n$ are positive integers and $i = \sqrt{-1}.$ Find $m+n.$

Solution: start off by applying vieta's and you will find that $a=m^2+n-40m$ $b=20m^2+20n$ $c=21-2m$ and $d=21m^2+21n$ . After that, we have to use the fact that $-20$ and $-21$ are roots of $x^3+ax+b$ and $x^3+cx^2+d$ , respectively. Since we know that if you substitute the root of a function back into the function, the output is zero, therefore $(-20)^3-20(a)+b=0$ and $(-21)^3+c*(-21)^2+d=0$ and you can set these two equations equal to each other while also substituting the values of $a$ $b$ $c$ , and $d$ above to give you $21m^2+21n-1682m+8000=0$ , then you can rearrange the equation into $21n = -21m^2+1682m-8000$ . With this property, we know that $-21m^2+1682m-8000$ is divisible by $21$ therefore that means $1682m-8000=0(mod 21)$ which results in $2m-20=0(mod 21)$ which finally gives us m=10 mod 21. We can test the first obvious value of $m$ which is $10$ and we see that this works  as we get $m=10$ and $n=320$ . That means your answer will be $m + n = 10 + 320 = \boxed{330}$

Answer:  330
Problem: There are real numbers $a, b, c,$ and $d$ such that $-20$ is a root of $x^3 + ax + b$ and $-21$ is a root of $x^3 + cx^2 + d.$ These two polynomials share a complex root $m + \sqrt{n} \cdot i,$ where $m$ and $n$ are positive integers and $i = \sqrt{-1}.$ Find $m+n.$

Solution: We note that $x^3 + ax + b = (x+20)P(x)$ and $x^3 + cx^2 + d = (x+21)Q(x)$ for some polynomials $P(x)$ and $Q(x)$
Through synthetic division (ignoring the remainder as we can set $b$ and $d$ to constant values such that the remainder is zero), $P(x) = x^2 - 20x + (400+a)$ , and $Q(x) = x^2 + (c-21)x + (441 - 21c)$
By the complex conjugate root theorem, we know that $P(x)$ and $Q(x)$ share the same roots, and they share the same leading coefficient, so $P(x) = Q(x)$
Therefore, $c-21 = -20$ and $441-21c = 400 + a$ . Solving the system of equations, we get $a = 20$ and $c = 1$ , so $P(x) = Q(x) = x^2 - 20x + 420$
Finally, by the quadratic formula, we have roots of $\frac{20 \pm \sqrt{400 - 1680}}{2} = 10 \pm \sqrt{320}i$ , so our final answer is $10 + 320 = \boxed{330}$

Answer:  330
Problem: There are real numbers $a, b, c,$ and $d$ such that $-20$ is a root of $x^3 + ax + b$ and $-21$ is a root of $x^3 + cx^2 + d.$ These two polynomials share a complex root $m + \sqrt{n} \cdot i,$ where $m$ and $n$ are positive integers and $i = \sqrt{-1}.$ Find $m+n.$

Solution: We plug -20 into the equation obtaining $(-20)^3-20a+b$ , likewise, plugging -21 into the second equation gets $(-21)^3+441c+d$
Both equations must have 3 solutions exactly, so the other two solutions must be $m + \sqrt{n} \cdot i$ and $m - \sqrt{n} \cdot i$
By Vieta's, the sum of the roots in the first equation is $0$ , so $m$ must be $10$
Next, using Vieta's theorem on the second equation, you get $x1x2+x2x3+x1x3 = 0$ . However, since we know that the sum of the roots with complex numbers are 20, we can factor out the terms with -21, so $-21*(20)+(m^2+n)=0$
Given that $m$ is $10$ , then $n$ is equal to $320$
Therefore, the answer to the equation is $\boxed{330}$

Answer:  330