Navvye/Olympiad-Problems-CSV huggingface dataset:
Problem: A five-digit palindrome is a positive integer with respective digits $abcba$ , where $a$ is non-zero.  Let $S$ be the sum of all five-digit palindromes.  What is the sum of the digits of $S$
$\textbf{(A) }9\qquad \textbf{(B) }18\qquad \textbf{(C) }27\qquad \textbf{(D) }36\qquad \textbf{(E) }45\qquad$

Solution: As shown above, there are a total of $900$ five-digit palindromes.  We can calculate their sum by finding the expected value of a randomly selected palindrome satisfying the conditions given, then multiplying it by $900$ to get our sum.  The expected value for the ten-thousands and the units digit is $\frac{1+2+3+\cdots+9}{9}=5$ , and the expected value for the thousands, hundreds, and tens digit is $\frac{0+1+2+\cdots+9}{10}=4.5$ .  Therefore our expected value is $5\times10^4+4.5\times10^3+4.5\times10^2+4.5\times10^1+5\times10^0=55,\!000$ .  Since the question asks for the sum of the digits of the resulting sum, we do not need to keep the trailing zeros of either $55,\!000$ or $900$ .  Thus we only need to calculate $55\times9=495$ , and the desired sum is $\boxed{18}$

Answer: B 18
Problem: A five-digit palindrome is a positive integer with respective digits $abcba$ , where $a$ is non-zero.  Let $S$ be the sum of all five-digit palindromes.  What is the sum of the digits of $S$
$\textbf{(A) }9\qquad \textbf{(B) }18\qquad \textbf{(C) }27\qquad \textbf{(D) }36\qquad \textbf{(E) }45\qquad$

Solution: First, allow $a$ to be zero, and then subtract by how much we overcount. We'll also sum each palindrome with its $\textit{complement}$ . If $\overline{abcba}$ (the line means a, b, and c are digits and $abcba\ne a\cdot b\cdot c\cdot b\cdot a$ ) is a palindrome, then its complement is $\overline{defed}$ where $d=9-a$ $e=9-b$ $f=9-c$ . Notice how every palindrome has a unique compliment, and that the sum of a palindrome and its complement is $99999$ . Therefore, the sum of our palindromes is $99999\times (10^3/2)$ . (There are $10^3/2$ pairs.)
However, we have overcounted, as something like $05350$ $\textit{isn't}$ a palindrome by the problem's definition, but we've still included it. So we must subtract the sum of numbers in the form $\overline{0nmn0}$ . By the same argument as before, these sum to $9990\times  (10^2/2)$ . Therefore, the sum that the problem asks for is:
\[500\times99999-50\times 9990\] \[=500\times99999-500\times 999\] \[=500(99999-999)\] \[=500\times 99000\]
Since all we care about is the sum of the digits, we can drop the $0$ 's.
\[5\times99\] \[=5\times(100-1)\] \[=495\]
And finally, $4+9+5=\boxed{18}$

Answer: B 18
Problem: The domain of the function $f(x)=\log_{\frac12}(\log_4(\log_{\frac14}(\log_{16}(\log_{\frac1{16}}x))))$ is an interval of length $\tfrac mn$ , where $m$ and $n$ are relatively prime positive integers.  What is $m+n$
$\textbf{(A) }19\qquad \textbf{(B) }31\qquad \textbf{(C) }271\qquad \textbf{(D) }319\qquad \textbf{(E) }511\qquad$

Solution: For all real numbers $a,b,$ and $c$ such that $b>0$ and $b\neq1,$ note that:
Therefore, we have \begin{align*} \log_{\frac12}(\log_4(\log_{\frac14}(\log_{16}(\log_{\frac1{16}}x)))) \text{ is defined} &\implies \log_4(\log_{\frac14}(\log_{16}(\log_{\frac1{16}}x)))>0 \\ &\implies \log_{\frac14}(\log_{16}(\log_{\frac1{16}}x))>1 \\ &\implies 0<\log_{16}(\log_{\frac1{16}}x)<\frac14 \\ &\implies 1<\log_{\frac1{16}}x<2 \\ &\implies \frac{1}{256}<x<\frac{1}{16}. \end{align*} The domain of $f(x)$ is an interval of length $\frac{1}{16}-\frac{1}{256}=\frac{15}{256},$ from which the answer is $15+256=\boxed{271}.$

Answer: C 271
Problem: The domain of the function $f(x)=\log_{\frac12}(\log_4(\log_{\frac14}(\log_{16}(\log_{\frac1{16}}x))))$ is an interval of length $\tfrac mn$ , where $m$ and $n$ are relatively prime positive integers.  What is $m+n$
$\textbf{(A) }19\qquad \textbf{(B) }31\qquad \textbf{(C) }271\qquad \textbf{(D) }319\qquad \textbf{(E) }511\qquad$

Solution: For simplicity, let $a=\log_{\frac{1}{16}}{x},b=\log_{16}a,c=\log_{\frac{1}{4}}b$ , and $d=\log_4c$
The domain of $\log_{\frac{1}{2}}x$ is $x \in (0, \infty)$ , so $d \in (0, \infty)$ .
Thus, $\log_4{c} \in (0, \infty) \Rightarrow c \in (1, \infty)$ .
Since $c=\log_{\frac{1}{4}}b$ we have $b \in \left(0, \left(\frac{1}{4}\right)^1\right)=\left(0, \frac{1}{4}\right)$ .
Since $b=\log_{16}{a}$ , we have $a \in (16^0,16^{1/4})=(1,2)$ .
Finally, since $a=\log_{\frac{1}{16}}{x}$ $x \in \left(\left(\frac{1}{16}\right)^2,\left(\frac{1}{16}\right)^1\right)=\left(\frac{1}{256},\frac{1}{16}\right)$
The length of the $x$ interval is $\frac{1}{16}-\frac{1}{256}=\frac{15}{256}$ and the answer is $\boxed{271}$

Answer: C 271
Problem: The domain of the function $f(x)=\log_{\frac12}(\log_4(\log_{\frac14}(\log_{16}(\log_{\frac1{16}}x))))$ is an interval of length $\tfrac mn$ , where $m$ and $n$ are relatively prime positive integers.  What is $m+n$
$\textbf{(A) }19\qquad \textbf{(B) }31\qquad \textbf{(C) }271\qquad \textbf{(D) }319\qquad \textbf{(E) }511\qquad$

Solution: The domain of $f(x)$ is the range of the inverse function $f^{-1}(x)=\left(\frac1{16}\right)^{16^{\left(\frac14\right)^{4^{\left(\frac12\right)^x}}}}$ . Now $f^{-1}(x)$ can be seen to be strictly decreasing, since $\left(\frac12\right)^x$ is decreasing, so $4^{\left(\frac12\right)^x}$ is decreasing, so $\left(\frac14\right)^{4^{\left(\frac12\right)^x}}$ is increasing, so $16^{\left(\frac14\right)^{4^{\left(\frac12\right)^x}}}$ is increasing, therefore $\left(\frac1{16}\right)^{16^{\left(\frac14\right)^{4^{\left(\frac12\right)^x}}}}$ is decreasing.
Therefore, the range of $f^{-1}(x)$ is the open interval $\left(\lim_{x\to\infty}f^{-1}(x), \lim_{x\to-\infty}f^{-1}(x)\right)$ . We find: \begin{align*}    \lim_{x\to-\infty}\left(\frac1{16}\right)^{16^{\left(\frac14\right)^{4^{\left(\frac12\right)^x}}}}&= \lim_{a\to\infty}\left(\frac1{16}\right)^{16^{\left(\frac14\right)^{4^a}}}\\ &= \lim_{b\to\infty}\left(\frac1{16}\right)^{16^{\left(\frac14\right)^b}}\\ &= \left(\frac1{16}\right)^{16^0}\\ &= \frac{1}{16}. \end{align*} Similarly, \begin{align*} \lim_{x\to\infty}\left(\frac1{16}\right)^{16^{\left(\frac14\right)^{4^{\left(\frac12\right)^x}}}}&=\left(\frac1{16}\right)^{16^{\left(\frac14\right)^{4^0}}}\\ &= \left(\frac1{16}\right)^{16^{\frac14}}\\ &= \left(\frac1{16}\right)^2\\ &= \frac{1}{256}. \end{align*} Hence the range of $f^{-1}(x)$ (which is then the domain of $f(x)$ ) is $\left(\frac{1}{256},\frac{1}{16}\right)$ and the answer is $\boxed{271}$

Answer: C 271
Problem: There are exactly $N$ distinct rational numbers $k$ such that $|k|<200$ and \[5x^2+kx+12=0\] has at least one integer solution for $x$ .  What is $N$
$\textbf{(A) }6\qquad \textbf{(B) }12\qquad \textbf{(C) }24\qquad \textbf{(D) }48\qquad \textbf{(E) }78\qquad$

Solution: Factor the quadratic into \[\left(5x + \frac{12}{n}\right)\left(x + n\right) = 0\] where $-n$ is our integer solution. Then, \[k = \frac{12}{n} + 5n,\] which takes rational values between $-200$ and $200$ when $|n| \leq 39$ , excluding $n = 0$ . This leads to an answer of $2 \cdot 39 = \boxed{78}$

Answer: E 78
Problem: There are exactly $N$ distinct rational numbers $k$ such that $|k|<200$ and \[5x^2+kx+12=0\] has at least one integer solution for $x$ .  What is $N$
$\textbf{(A) }6\qquad \textbf{(B) }12\qquad \textbf{(C) }24\qquad \textbf{(D) }48\qquad \textbf{(E) }78\qquad$

Solution: Solve for $k$ so \[k=-\frac{12}{x}-5x.\] Note that $x$ can be any integer in the range $[-39,0)\cup(0,39]$ so $k$ is rational with $\lvert k\rvert<200$ .  Hence, there are $39+39=\boxed{78}.$

Answer: E 78
Problem: There are exactly $N$ distinct rational numbers $k$ such that $|k|<200$ and \[5x^2+kx+12=0\] has at least one integer solution for $x$ .  What is $N$
$\textbf{(A) }6\qquad \textbf{(B) }12\qquad \textbf{(C) }24\qquad \textbf{(D) }48\qquad \textbf{(E) }78\qquad$

Solution: Plug in $k=200$ to find the upper limit. You will find the limit to be a number from $0<x<-1$ and one that is just below $-39.$ All the integer values from $-1$ to $-39$ can be attainable through some value of $k$ . Since the question asks for the absolute value of $k$ , we see that the answer is $39\cdot2 = \boxed{78.}$

Answer: E 78.
Problem: In $\triangle BAC$ $\angle BAC=40^\circ$ $AB=10$ , and $AC=6$ .  Points $D$ and $E$ lie on $\overline{AB}$ and $\overline{AC}$ respectively.  What is the minimum possible value of $BE+DE+CD$
$\textbf{(A) }6\sqrt 3+3\qquad \textbf{(B) }\dfrac{27}2\qquad \textbf{(C) }8\sqrt 3\qquad \textbf{(D) }14\qquad \textbf{(E) }3\sqrt 3+9\qquad$

Solution: Let $C_1$ be the reflection of $C$ across $\overline{AB}$ , and let $C_2$ be the reflection of $C_1$ across $\overline{AC}$ .  Then it is well-known that the quantity $BE+DE+CD$ is minimized when it is equal to $C_2B$ .  (Proving this is a simple application of the triangle inequality; for an example of a simpler case, see Heron's Shortest Path Problem.)  As $A$ lies on both $AB$ and $AC$ , we have $C_2A=C_1A=CA=6$ .  Furthermore, $\angle CAC_1=2\angle CAB=80^\circ$ by the nature of the reflection, so $\angle C_2AB=\angle C_2AC+\angle CAB=80^\circ+40^\circ=120^\circ$ .  Therefore by the Law of Cosines \[BC_2^2=6^2+10^2-2\cdot 6\cdot 10\cos 120^\circ=196\implies BC_2=\boxed{14}.\]

Answer: D 14
Problem: In $\triangle BAC$ $\angle BAC=40^\circ$ $AB=10$ , and $AC=6$ .  Points $D$ and $E$ lie on $\overline{AB}$ and $\overline{AC}$ respectively.  What is the minimum possible value of $BE+DE+CD$
$\textbf{(A) }6\sqrt 3+3\qquad \textbf{(B) }\dfrac{27}2\qquad \textbf{(C) }8\sqrt 3\qquad \textbf{(D) }14\qquad \textbf{(E) }3\sqrt 3+9\qquad$

Solution: In $\triangle BAC$ , the three lines look like the Chinese character 又. Let $\triangle DEA$ $\triangle CDA$ , and $\triangle BEA$ have bases $DE$ $CD$ , and $BE$ respectively. Then, $\triangle DEA$ has the same side $DA$ as $\triangle CDA$ and the same side $EA$ as $\triangle BEA$ . Connect all three triangles with $\triangle DEA$ in the center and the two triangles sharing one of its sides. Then, $\pentagon BACDE$ is formed with $BE+DE+CD$ forming the base.
Intuitively, the pentagon's base is minimized when all three bottom sides are collinear. This is simply the original $\triangle BAC$ except that $\angle BAC =120^\circ$ . (In $\triangle DEA$ $\triangle CDA$ , and $\triangle BEA$ $\angle A = 40^\circ$ , and the three triangles connect at $A$ to form the pentagon). Thus, $m\angle BAC = 40 \cdot 3$ ).
$BC$ in this new triangle is then the minimum of $BE+DE+CD$ . Applying law of cosines, $BC=\sqrt{6^2+10^2-2(6)(10)\cos (120^\circ)}=\sqrt{196}=14 \implies \boxed{14}$

Answer: D 14
Problem: In $\triangle BAC$ $\angle BAC=40^\circ$ $AB=10$ , and $AC=6$ .  Points $D$ and $E$ lie on $\overline{AB}$ and $\overline{AC}$ respectively.  What is the minimum possible value of $BE+DE+CD$
$\textbf{(A) }6\sqrt 3+3\qquad \textbf{(B) }\dfrac{27}2\qquad \textbf{(C) }8\sqrt 3\qquad \textbf{(D) }14\qquad \textbf{(E) }3\sqrt 3+9\qquad$

Solution: [asy] size(300); defaultpen(linewidth(0.4)+fontsize(10)); pen s = linewidth(0.8)+fontsize(8);  pair A,B,C,D,Ep,Bp,Cp; A = (0,0); B = 10*dir(-110);C = 6*dir(-70); Bp = 10*dir(-30);Cp = 6*dir(-150); D = IP(Cp--Bp, A--B); Ep = IP(Cp--Bp, A--C); draw(A--B--C--A--Cp--Bp--A); draw(Cp--B); draw(C--Bp); draw(C--D); draw(B--Ep);  dot("$A$", A, N); dot("$B$", B, SW); dot("$C$", C, SE); dot("$B'$", Bp, E); dot("$C'$", Cp, W); dot("$D$", D, dir(-70)); dot("$E$", Ep, dir(60));  MA("40^\circ",Cp,A,D, 1); MA("40^\circ",D,A,Ep, 1); MA("40^\circ",Ep,A,Bp, 1); label("$6$", A--Cp); label("$10$", Bp--A); [/asy]
(Diagram by shihan)
Reflect $C$ across $AB$ to $C'$ . Similarly, reflect $B$ across $AC$ to $B'$ . Clearly, $BE = B'E$ and $CD = C'D$ . Thus, the sum $BE + DE + CD = B'E + DE + C'D$ . This value is minimized when $B'$ $C'$ $D$ and $E$ are collinear. To finish, we use the law of cosines on the triangle $AB'C'$ $B'C' = \sqrt{6^2 + 10^2 - 2(6)(10)\cos 120^{\circ}} = \boxed{14}.$

Answer: D 14
Problem: For every real number $x$ , let $\lfloor x\rfloor$ denote the greatest integer not exceeding $x$ , and let \[f(x)=\lfloor x\rfloor(2014^{x-\lfloor x\rfloor}-1).\] The set of all numbers $x$ such that $1\leq x<2014$ and $f(x)\leq 1$ is a union of disjoint intervals.  What is the sum of the lengths of those intervals?
$\textbf{(A) }1\qquad \textbf{(B) }\dfrac{\log 2015}{\log 2014}\qquad \textbf{(C) }\dfrac{\log 2014}{\log 2013}\qquad \textbf{(D) }\dfrac{2014}{2013}\qquad \textbf{(E) }2014^{\frac1{2014}}\qquad$

Solution: Let $\lfloor x\rfloor=k$ for some integer $1\leq k\leq 2013$ .  Then we can rewrite $f(x)$ as $k(2014^{x-k}-1)$ .  In order for this to be less than or equal to $1$ , we need $2014^{x-k}-1\leq\dfrac1k\implies x\leq k+\log_{2014}\left(\dfrac{k+1}k\right)$ .  Combining this with the fact that $\lfloor x\rfloor =k$ gives that $x\in\left[k,k+\log_{2014}\left(\dfrac{k+1}k\right)\right]$ , and so the length of the interval is $\log_{2014}\left(\dfrac{k+1}k\right)$ .  We want the sum of all possible intervals such that the inequality holds true; since all of these intervals must be disjoint, we can sum from $k=1$ to $k=2013$ to get that the desired sum is \[\sum_{i=1}^{2013}\log_{2014}\left(\dfrac{i+1}i\right)=\log_{2014}\left(\prod_{i=1}^{2013}\dfrac{i+1}i\right)=\log_{2014}\left(\dfrac{2014}1\right)=\boxed{1}.\]

Answer: A 1
Problem: The fraction
\[\dfrac1{99^2}=0.\overline{b_{n-1}b_{n-2}\ldots b_2b_1b_0},\]
where $n$ is the length of the period of the repeating decimal expansion.  What is the sum $b_0+b_1+\cdots+b_{n-1}$
$\textbf{(A) }874\qquad \textbf{(B) }883\qquad \textbf{(C) }887\qquad \textbf{(D) }891\qquad \textbf{(E) }892\qquad$

Solution: $\frac{1}{99^2}\\\\ =\frac{1}{99} \cdot \frac{1}{99}\\\\ =\frac{0.\overline{01}}{99}\\\\ =0.\overline{00010203...9799}$
So, the answer is $0+0+0+1+0+2+0+3+...+9+7+9+9=2\cdot10\cdot\frac{9\cdot10}{2}-(9+8)$ or $\boxed{883}$

Answer: B 883
Problem: Let $f_0(x)=x+|x-100|-|x+100|$ , and for $n\geq 1$ , let $f_n(x)=|f_{n-1}(x)|-1$ .  For how many values of $x$ is $f_{100}(x)=0$
$\textbf{(A) }299\qquad \textbf{(B) }300\qquad \textbf{(C) }301\qquad \textbf{(D) }302\qquad \textbf{(E) }303\qquad$

Solution: First, notice that the recursive rule moves the current value $1$ closer to $0$ . Upon reaching $0$ , it alternates between $-1$ and $0$ . This means that $f_{100}(x) = 0$ exactly when $|f_0(x)| \le 100$ (to reach $0$ in time) and $f_0(x)$ is even (so $f_{100}(x) \ne -1$ ).
Casework each part of $f_0(x)$ (where the expressions in the absolute values do not change sign): \[x \le -100 \implies f_0(x) = x-(x-100)+(x+100) = x+200\] so even $-300 \le x \le -100$ work. \[-100 \le x \le 100 \implies f_0(x) = x-(x-100)-(x+100) = -x\] so even $-100 \le x \le 100$ work. \[100 \le x \implies f_0(x) = x+(x-100)-(x+100) = x-200\] so even $100 \le x \le 300$ work.
Putting these together, all even $x$ where $-300 \le x \le 300$ work. So, the answer is $2\cdot150+1 = \boxed{301}$ .
~revised by emerald_block

Answer: C 301
Problem: The parabola $P$ has focus $(0,0)$ and goes through the points $(4,3)$ and $(-4,-3)$ .  For how many points $(x,y)\in P$ with integer coordinates is it true that $|4x+3y|\leq 1000$
$\textbf{(A) }38\qquad \textbf{(B) }40\qquad \textbf{(C) }42\qquad \textbf{(D) }44\qquad \textbf{(E) }46\qquad$

Solution: The axis of $P$ is inclined at an angle $\theta$ relative to the coordinate axis, where $\tan\theta = \tfrac 34$ . We rotate the coordinate axis by angle $\theta$ anti-clockwise, so that the parabola now has a vertical symmetry axis relative to the rotated coordinates. Let $(\widetilde{x}, \widetilde{y})$ be the coordinates in the rotated system. Then $(x,y)$ and $(\widetilde{x}, \widetilde{y})$ are related by \begin{align}   \nonumber x = \widetilde{x}\cos\theta -\widetilde{y}\sin\theta &= \tfrac 45 \widetilde{x} - \tfrac 35 \widetilde{y}, \\    y = \widetilde{x}\sin\theta +\widetilde{y}\cos\theta &= \tfrac 35 \widetilde{x} + \tfrac 45 \widetilde{y} \end{align} In the rotated coordinate system, the parabola has focus at $(0,0)$ and the two points on it are at $(5,0)$ and $(-5,0)$ . Therefore, the directrix is $\widetilde{y}=\pm 5$ ; we can, WLOG, choose $\widetilde{y}=-5$ . For a point on the parabola, it is equidistant from the focus and directrix, so the equation of the parabola is \begin{align}\tag{2}   \widetilde{x}^2+\widetilde{y}^2 = (\widetilde{y}+5)^2 \qquad  &\Longrightarrow\qquad \widetilde{y} = \tfrac{1}{10}(\widetilde{x}^2-25) \end{align} From $(1)$ we have $|4x+3y|=5\widetilde{x}$ , so we need $|\widetilde{x}|<200$ . Substituting $(2)$ in $(1)$ , we get \begin{align*}   50x &= 40 \widetilde{x} - 3 \widetilde{x}^2 + 75, \\   50y &= 30 \widetilde{x} + 4 \widetilde{x}^2 - 100 \end{align*} For $x$ to be an integer $\widetilde{x}$ must be a multiple of 5; setting $\widetilde{x}=5a$ we get \[2x = 8a - 3 a^2 + 3\] Now we need $a$ to be odd, i.e. $\widetilde{x}=5a$ is an odd multiple of $5$ , in which case we get $y = 3 a + 2 a^2 - 2$ , which is also an integer. The values that satisfy the given conditions correspond to $\widetilde{x}= \{\pm 5\cdot (2k-1)\mid k = 0, 1, \ldots , 19 \}={-195, -185, -175, ..., 195}$ , and there are $\boxed{40}$ such numbers.

Answer: B 40
Problem: Leah has $13$ coins, all of which are pennies and nickels. If she had one more nickel than she has now, then she would have the same number of pennies and nickels. In cents, how much are Leah's coins worth?
$\textbf{(A)}\ 33\qquad\textbf{(B)}\ 35\qquad\textbf{(C)}\ 37\qquad\textbf{(D)}\ 39\qquad\textbf{(E)}\ 41$

Solution: She has $p$ pennies and $n$ nickels, where $n + p = 13$ . If she had $n+1$ nickels then $n+1 = p$ , so $2n+ 1 = 13$ and $n=6$ . So she has 6 nickels and 7 pennies, which clearly have a value of $\boxed{37}$ cents.

Answer: C 37
Problem: Orvin went to the store with just enough money to buy $30$ balloons. When he arrived he discovered that the store had a special sale on balloons: buy $1$ balloon at the regular price and get a second at $\frac{1}{3}$ off the regular price. What is the greatest number of balloons Orvin could buy?
$\textbf{(A)}\ 33\qquad\textbf{(B)}\ 34\qquad\textbf{(C)}\ 36\qquad\textbf{(D)}\ 38\qquad\textbf{(E)}\ 39$

Solution: If every balloon costs $n$ dollars, then Orvin has $30n$ dollars.  For every balloon he buys for $n$ dollars, he can buy another for $\frac{2n}{3}$ dollars.  This means it costs him $\frac{5n}{3}$ dollars to buy a bundle of $2$ balloons.  With $30n$ dollars, he can buy $\frac{30n}{\frac{5n}{3}} = 18$ sets of two balloons, so the total number of balloons he can buy is $18\times2  \implies \boxed{36}$

Answer: C 36
Problem: Doug constructs a square window using $8$ equal-size panes of glass, as shown. The ratio of the height to width for each pane is $5 : 2$ , and the borders around and between the panes are $2$ inches wide. In inches, what is the side length of the square window?
[asy] fill((0,0)--(2,0)--(2,26)--(0,26)--cycle,gray); fill((6,0)--(8,0)--(8,26)--(6,26)--cycle,gray); fill((12,0)--(14,0)--(14,26)--(12,26)--cycle,gray); fill((18,0)--(20,0)--(20,26)--(18,26)--cycle,gray); fill((24,0)--(26,0)--(26,26)--(24,26)--cycle,gray); fill((0,0)--(26,0)--(26,2)--(0,2)--cycle,gray); fill((0,12)--(26,12)--(26,14)--(0,14)--cycle,gray); fill((0,24)--(26,24)--(26,26)--(0,26)--cycle,gray); [/asy]
$\textbf{(A)}\ 26\qquad\textbf{(B)}\ 28\qquad\textbf{(C)}\ 30\qquad\textbf{(D)}\ 32\qquad\textbf{(E)}\ 34$

Solution: Let the height of the panes equal $5x$ , and let the width of the panes equal $2x$ .  Now notice that the total width of the borders equals $10$ , and the total height of the borders is $6$ .  We have \[10 + 4(2x) = 6 + 2(5x)\] \[x = 2\] Now, the total side length of the window equals \[10+ 4(2x) = 10 + 16 = \boxed{26}\]

Answer: A 26
Problem: Ed and Ann both have lemonade with their lunch. Ed orders the regular size. Ann gets the large lemonade, which is 50% more than the regular. After both consume $\frac{3}{4}$ of their drinks, Ann gives Ed a third of what she has left, and 2 additional ounces. When they finish their lemonades they realize that they both drank the same amount. How many ounces of lemonade did they drink together?
$\textbf{(A)}\ 30\qquad\textbf{(B)}\ 32\qquad\textbf{(C)}\ 36\qquad\textbf{(D)}\ 40\qquad\textbf{(E)}\ 50$

Solution: Let the size of Ed's drink equal $x$ ounces, and let the size of Ann's drink equal $\frac{3}{2}x$ ounces.  After both consume $\frac{3}{4}$ of their drinks, Ed and Ann have $\frac{x}{4}$ and $\frac{3x}{8}$ ounces of their drinks remaining.  Ann gives away $\frac{x}{8} + 2$ ounces to Ed.
In the end, Ed drank everything in his original lemonade plus what Ann gave him, and Ann drank everything in her original lemonade minus what she gave Ed. Thus we have \[x + \frac{x}{8} + 2 = \frac{3x}{2} - \frac{x}{8} - 2\] \[x = 16\] The total amount the two of them drank is simply \[x + \frac{3}{2}x = 16 + 24 = \boxed{40}\]

Answer: D 40
Problem: For how many positive integers $n$ is $\frac{n}{30-n}$ also a positive integer?
$\textbf{(A)}\ 4\qquad\textbf{(B)}\ 5\qquad\textbf{(C)}\ 6\qquad\textbf{(D)}\ 7\qquad\textbf{(E)}\ 8$

Solution: We know that $n \le 30$ or else $30-n$ will be negative, resulting in a negative fraction.  We also know that $n \ge 15$ or else the fraction's denominator will exceed its numerator making the fraction unable to equal a positive integer value.  Substituting all values $n$ from $15$ to $30$ gives us integer values for $n=15, 20, 24, 25, 27, 28, 29$ .  Counting them up, we have $\boxed{7}$ possible values for $n$

Answer: D 7
Problem: For how many positive integers $n$ is $\frac{n}{30-n}$ also a positive integer?
$\textbf{(A)}\ 4\qquad\textbf{(B)}\ 5\qquad\textbf{(C)}\ 6\qquad\textbf{(D)}\ 7\qquad\textbf{(E)}\ 8$

Solution: Let $\frac{n}{30-n}=m$ , where $m \in \mathbb{N}$ . Solving for $n$ , we find that $n=\frac{30m}{m+1}$ . Because $m$ and $m+1$ are relatively prime, $m+1|30$ . Our answer is the number of proper divisors of $2^13^15^1$ , which is $(1+1)(1+1)(1+1)-1 = \boxed{7}$

Answer: D 7
Problem: In the addition shown below $A$ $B$ $C$ , and $D$ are distinct digits. How many different values are possible for $D$
\[\begin{tabular}{cccccc}&A&B&B&C&B\\ +&B&C&A&D&A\\ \hline &D&B&D&D&D\end{tabular}\]
$\textbf{(A)}\ 2\qquad\textbf{(B)}\ 4\qquad\textbf{(C)}\ 7\qquad\textbf{(D)}\ 8\qquad\textbf{(E)}\ 9$

Solution: From the first column, we see $A+B < 10$ because it yields a single digit answer.  From the fourth column, we see that $C+D$ equals $D$ and therefore $C = 0$ .  We know that $A+B = D$ .  Therefore, the number of values $D$ can take is equal to the number of possible sums less than $10$ that can be formed by adding two distinct natural numbers.  Letting $A=1$ , and letting $B=2,3,4,5,6,7,8$ , we have \[D = 3,4,5,6,7,8,9 \implies \boxed{7}\]

Answer: C 7
Problem: Convex quadrilateral $ABCD$ has $AB=3$ $BC=4$ $CD=13$ $AD=12$ , and $\angle ABC=90^{\circ}$ , as shown. What is the area of the quadrilateral?
[asy] pair A=(0,0), B=(-3,0), C=(-3,-4), D=(48/5,-36/5); draw(A--B--C--D--A);  label("$A$",A,N); label("$B$",B,NW); label("$C$",C,SW); label("$D$",D,E); draw(rightanglemark(A,B,C,25)); [/asy]
$\textbf{(A)}\ 30\qquad\textbf{(B)}\ 36\qquad\textbf{(C)}\ 40\qquad\textbf{(D)}\ 48\qquad\textbf{(E)}\ 58.5$

Solution: Note that by the pythagorean theorem, $AC=5$ .  Also note that $\angle CAD$ is a right angle because $\triangle CAD$ is a right triangle.  The area of the quadrilateral is the sum of the areas of $\triangle ABC$ and $\triangle CAD$ which is equal to \[\frac{3\times4}{2} + \frac{5\times12}{2} = 6 + 30 = \boxed{36}\]

Answer: B 36
Problem: Danica drove her new car on a trip for a whole number of hours, averaging 55 miles per hour. At the beginning of the trip, $abc$ miles was displayed on the odometer, where $abc$ is a 3-digit number with $a \geq{1}$ and $a+b+c \leq{7}$ . At the end of the trip, the odometer showed $cba$ miles. What is $a^2+b^2+c^2?$
$\textbf{(A)}\ 26\qquad\textbf{(B)}\ 27\qquad\textbf{(C)}\ 36\qquad\textbf{(D)}\ 37\qquad\textbf{(E)}\ 41$

Solution: We know that the number of miles she drove is divisible by $5$ , so $a$ and $c$ must either be the equal or differ by $5$ . We can quickly conclude that the former is impossible, so $a$ and $c$ must be $5$ apart.  Because we know that $c > a$ and $a + c \le 7$ and $a \ge 1$ , we find that the only possible values for $a$ and $c$ are $1$ and $6$ , respectively.  Because $a + b + c \le 7$ $b = 0$ .  Therefore, we have \[a^2 + b^2 + c^2 = 36 + 0 + 1 = \boxed{37}\]

Answer: D 37