Navvye/Olympiad-Problems-CSV huggingface dataset:
Problem: Grandma has just finished baking a large rectangular pan of brownies. She is planning to make rectangular pieces of equal size and shape, with straight cuts parallel to the sides of the pan. Each cut must be made entirely across the pan. Grandma wants to make the same number of interior pieces as pieces along the perimeter of the pan. What is the greatest possible number of brownies she can produce?
$\textbf{(A)} ~24 \qquad\textbf{(B)} ~30 \qquad\textbf{(C)} ~48 \qquad\textbf{(D)} ~60 \qquad\textbf{(E)} ~64$

Solution: Obviously, no side of the rectangular pan can have less than $5$ brownies beside it. We let one side of the pan have $5$ brownies, and let the number of brownies on its adjacent side be $x$ . Therefore, $5x=2\cdot3(x-2)$ , and solving yields $x=12$ and there are $5\cdot12=60$ brownies in the pan. $64$ is the only choice larger than $60$ , but it cannot be the answer since the only way to fit $64$ brownies in a pan without letting a side of it have less than $5$ brownies beside it is by forming a square of $8$ brownies on each side, which does not meet the requirement. Thus the answer is $\boxed{60}$

Answer: D 60
Problem: Let $n$ be a positive integer and $d$ be a digit such that the value of the numeral $\underline{32d}$ in base $n$ equals $263$ , and the value of the numeral $\underline{324}$ in base $n$ equals the value of the numeral $\underline{11d1}$ in base six. What is $n + d ?$
$\textbf{(A)} ~10 \qquad\textbf{(B)} ~11 \qquad\textbf{(C)} ~13 \qquad\textbf{(D)} ~15 \qquad\textbf{(E)} ~16$

Solution: We can start by setting up an equation to convert $\underline{32d}$ base $n$ to base 10. To convert this to base 10, it would be $3{n}^2+2n+d.$ Because it is equal to 263, we can set this equation to 263. Finally, subtract $d$ from both sides to get $3{n}^2+2n = 263-d$
We can also set up equations to convert $\underline{324}$ base $n$ and $\underline{11d1}$ base 6 to base 10. The equation to covert $\underline{324}$ base $n$ to base 10 is $3{n}^2+2n+4.$ The equation to convert $\underline{11d1}$ base 6 to base 10 is ${6}^3+{6}^2+6d+1.$
Simplify ${6}^3+{6}^2+6d+1$ so it becomes $6d+253.$ Setting the above equations equal to each other, we have \[3{n}^2+2n+4 = 6d+253.\] Subtracting 4 from both sides gets $3{n}^2+2n = 6d+249.$
We can then use equations \[3{n}^2+2n = 263-d\] \[3{n}^2+2n = 6d+249\] to solve for $d$ . Set $263-d$ equal to $6d+249$ and solve to find that $d=2$
Plug $d=2$ back into the equation $3{n}^2+2n = 263-d$ . Subtract 261 from both sides to get your final equation of $3{n}^2+2n-261 = 0.$ We solve using the quadratic formula to find that the solutions are $9$ and $-29/3.$ Because the base must be positive, $n=9.$
Adding 2 to 9 gets $\boxed{11}$

Answer: B 11
Problem: Let $n$ be a positive integer and $d$ be a digit such that the value of the numeral $\underline{32d}$ in base $n$ equals $263$ , and the value of the numeral $\underline{324}$ in base $n$ equals the value of the numeral $\underline{11d1}$ in base six. What is $n + d ?$
$\textbf{(A)} ~10 \qquad\textbf{(B)} ~11 \qquad\textbf{(C)} ~13 \qquad\textbf{(D)} ~15 \qquad\textbf{(E)} ~16$

Solution: $32d$ is greater than $263$ when both are interpreted in base 10, so $n$ is less than $10$ . Some trial and error gives $n=9$ $263$ in base 9 is $322$ , so the answer is $9+2=\boxed{11}$

Answer: B 11
Problem: Let $n$ be a positive integer and $d$ be a digit such that the value of the numeral $\underline{32d}$ in base $n$ equals $263$ , and the value of the numeral $\underline{324}$ in base $n$ equals the value of the numeral $\underline{11d1}$ in base six. What is $n + d ?$
$\textbf{(A)} ~10 \qquad\textbf{(B)} ~11 \qquad\textbf{(C)} ~13 \qquad\textbf{(D)} ~15 \qquad\textbf{(E)} ~16$

Solution: We have \[3n^2 + 2n + d = 263\] \[3n^2 + 2n + 4 = 6^3 + 6^2 + 6d + 1\] Subtracting the 2nd from the 1st equation we get \begin{align*} d-4 &= 263 - (216 + 36 + 6d + 1) \\ &= 263 - 253 - 6d \\ &= 10 - 6d  \end{align*} Thus we have $d=2.$ Substituting into the first, we have $3n^2 + 2n + 2 = 263 \Rightarrow 3n^2 + 2n - 261 = 0.$ Factoring, we have $(n-9)(3n+29)=0.$ A digit cannot be negative, so we have $n=9.$ Thus, $d+n=2+9=\boxed{11}$

Answer: B 11
Problem: Let $n$ be a positive integer and $d$ be a digit such that the value of the numeral $\underline{32d}$ in base $n$ equals $263$ , and the value of the numeral $\underline{324}$ in base $n$ equals the value of the numeral $\underline{11d1}$ in base six. What is $n + d ?$
$\textbf{(A)} ~10 \qquad\textbf{(B)} ~11 \qquad\textbf{(C)} ~13 \qquad\textbf{(D)} ~15 \qquad\textbf{(E)} ~16$

Solution: Find that $d=2$ using one of the methods above. Then we have that $3n^2 + 2n = 261$ . We know that $n$ is an integer, so we can solve the equation $n(2n+3)=261$ (this is guaranteed to have a solution if we did this correctly). The prime factorization of $261$ is $3^2 \cdot 29$ , so the corresponding factor pairs are $(1, 261)$ $(3,87)$ , and $(9,29)$ . If $n = 9$ , then the equation is true, so $n + d = 9 + 2 = \boxed{11}$

Answer: B 11
Problem: Three equally spaced parallel lines intersect a circle, creating three chords of lengths $38,38,$ and $34$ . What is the distance between two adjacent parallel lines?
$\textbf{(A) }5\frac12 \qquad \textbf{(B) }6 \qquad \textbf{(C) }6\frac12 \qquad \textbf{(D) }7 \qquad \textbf{(E) }7\frac12$

Solution: [asy] size(8cm); pair O = (0, 0), A = (0, 3), B = (0, 9), R = (19, 3), L = (17, 9); draw(O--A--B); draw(O--R); draw(O--L); label("$A$", A, NE); label("$B$", B, N); label("$R$", R, NE); label("$L$", L, NE); label("$O$", O, S); label("$d$", O--A, W); label("$2d$", A--B, W); label("$r$", O--R, S); label("$r$", O--L, NW); dot(O); dot(A); dot(B); dot(R); dot(L);  draw(circle((0, 0), sqrt(370))); draw(-R -- (R.x, -R.y)); draw((-R.x, R.y) -- R); draw((-L.x, L.y) -- L); [/asy]
Since two parallel chords have the same length ( $38$ ), they must be equidistant from the center of the circle. Let the perpendicular distance of each chord from the center of the circle be $d$ . Thus, the distance from the center of the circle to the chord of length $34$ is
\[2d + d = 3d\]
and the distance between each of the chords is just $2d$ . Let the radius of the circle be $r$ . Drawing radii to the points where the lines intersect the circle, we create two different right triangles:
By the Pythagorean theorem, we can create the following system of equations:
\[19^2 + d^2 = r^2\]
\[17^2 + (2d + d)^2 = r^2\]
Solving, we find $d = 3$ , so $2d = \boxed{6}$

Answer: B 6
Problem: Three equally spaced parallel lines intersect a circle, creating three chords of lengths $38,38,$ and $34$ . What is the distance between two adjacent parallel lines?
$\textbf{(A) }5\frac12 \qquad \textbf{(B) }6 \qquad \textbf{(C) }6\frac12 \qquad \textbf{(D) }7 \qquad \textbf{(E) }7\frac12$

Solution: [asy] real r=sqrt(370); draw(circle((0, 0), r)); pair A = (-19, 3); pair B = (19, 3); draw(A--B); pair C = (-19, -3); pair D = (19, -3); draw(C--D); pair E = (-17, -9); pair F = (17, -9); draw(E--F); pair O = (0, 0); pair P = (0, -3); pair Q = (0, -9); draw(O--Q); draw(O--C); draw(O--D); draw(O--E); draw(O--F); label("$O$", O, N); label("$C$", C, SW); label("$D$", D, SE); label("$E$", E, SW); label("$F$", F, SE); label("$P$", P, SW); label("$Q$", Q, S); [/asy] If $d$ is the requested distance, and $r$ is the radius of the circle, Stewart's Theorem applied to $\triangle OCD$ with cevian $\overleftrightarrow{OP}$ gives \[19\cdot 38\cdot 19 + \tfrac{1}{2}d\cdot 38\cdot\tfrac{1}{2}d=19r^{2}+19r^{2}.\] This simplifies to $13718+\tfrac{19}{2}d^{2}=38r^{2}$ . Similarly, another round of Stewart's Theorem applied to $\triangle OEF$ with cevian $\overleftrightarrow{OQ}$ gives \[17\cdot 34\cdot 17 + \tfrac{3}{2}d\cdot 34\cdot\tfrac{3}{2}d=17r^{2}+17r^{2}.\] This simplifies to $9826+\tfrac{153}{2}d^{2}=34r^{2}$ . Dividing the top equation by $38$ and the bottom equation by $34$ results in the system of equations \begin{align*} 361+\tfrac{1}{4}d^{2} &= r^{2} \\ 289+\tfrac{9}{4}d^{2} &= r^{2} \\ \end{align*} By transitive, $361+\tfrac{1}{4}d^{2}=289+\tfrac{9}{4}d^{2}$ . Therefore $(\tfrac{9}{4}-\tfrac{1}{4})d^{2}=361-289\rightarrow 2d^{2}=72\rightarrow d^{2}=36\rightarrow d=\boxed{6}.$

Answer: B 6
Problem: The real number $x$ satisfies the equation $x+\frac{1}{x} = \sqrt{5}$ . What is the value of $x^{11}-7x^{7}+x^3?$
$\textbf{(A)} ~-1 \qquad\textbf{(B)} ~0 \qquad\textbf{(C)} ~1 \qquad\textbf{(D)} ~2 \qquad\textbf{(E)} ~\sqrt{5}$

Solution: We square $x+\frac{1}{x}=\sqrt5$ to get $x^2+2+\frac{1}{x^2}=5$ . We subtract 2 on both sides for $x^2+\frac{1}{x^2}=3$ and square again, and see that $x^4+2+\frac{1}{x^4}=9$ so $x^4+\frac{1}{x^4}=7$ . We can factor out $x^7$ from our original expression of $x^{11}-7x^7+x^3$ to get that it is equal to $x^7(x^4-7+\frac{1}{x^4})$ . Therefore because $x^4+\frac{1}{x^4}$ is 7, it is equal to $x^7(0)=\boxed{0}$

Answer: B 0
Problem: The real number $x$ satisfies the equation $x+\frac{1}{x} = \sqrt{5}$ . What is the value of $x^{11}-7x^{7}+x^3?$
$\textbf{(A)} ~-1 \qquad\textbf{(B)} ~0 \qquad\textbf{(C)} ~1 \qquad\textbf{(D)} ~2 \qquad\textbf{(E)} ~\sqrt{5}$

Solution: Multiplying both sides by $x$ and using the quadratic formula, we get $\frac{\sqrt{5} \pm 1}{2}$ . We can assume that it is $\frac{\sqrt{5}+1}{2}$ , and notice that this is also a solution the equation $x^2-x-1=0$ , i.e. we have $x^2=x+1$ . Repeatedly using this on the given (you can also just note Fibonacci numbers), \begin{align*}  (x^{11})-7x^7+x^3 &= (x^{10}+x^9)-7x^7+x^3 \\ &=(2x^9+x^8)-7x^7+x^3 \\ &=(3x^8+2x^7)-7x^7+x^3 \\ &=(3x^8-5x^7)+x^3 \\ &=(-2x^7+3x^6)+x^3 \\ &=(x^6-2x^5)+x^3 \\ &=(-x^5+x^4+x^3) \\ &=-x^3(x^2-x-1) = \boxed{0}

Answer: B 0
Problem: The real number $x$ satisfies the equation $x+\frac{1}{x} = \sqrt{5}$ . What is the value of $x^{11}-7x^{7}+x^3?$
$\textbf{(A)} ~-1 \qquad\textbf{(B)} ~0 \qquad\textbf{(C)} ~1 \qquad\textbf{(D)} ~2 \qquad\textbf{(E)} ~\sqrt{5}$

Solution: We can immediately note that the exponents of $x^{11}-7x^7+x^3$ are an arithmetic sequence, so they are symmetric around the middle term. So, $x^{11}-7x^7+x^3 = x^7(x^4-7+\frac{1}{x^4})$ . We can see that since $x+\frac{1}{x} = \sqrt{5}$ $x^2+2+\frac{1}{x^2} = 5$ and therefore $x^2+\frac{1}{x^2} = 3$ . Continuing from here, we get $x^4+2+\frac{1}{x^4} = 9$ , so $x^4-7+\frac{1}{x^4} = 0$ . We don't even need to find what $x^7$ is! This is since $x^7\cdot0$ is evidently $\boxed{0}$ , which is our answer.

Answer: B 0
Problem: The real number $x$ satisfies the equation $x+\frac{1}{x} = \sqrt{5}$ . What is the value of $x^{11}-7x^{7}+x^3?$
$\textbf{(A)} ~-1 \qquad\textbf{(B)} ~0 \qquad\textbf{(C)} ~1 \qquad\textbf{(D)} ~2 \qquad\textbf{(E)} ~\sqrt{5}$

Solution: We begin by multiplying $x+\frac{1}{x} = \sqrt{5}$ by $x$ , resulting in $x^2+1 = \sqrt{5}x$ . Now we see this equation: $x^{11}-7x^{7}+x^3$ . The terms all have $x^3$ in common, so we can factor that out, and what we're looking for becomes $x^3(x^8-7x^4+1)$ . Looking back to our original equation, we have $x^2+1 = \sqrt{5}x$ , which is equal to $x^2 = \sqrt{5}x-1$ . Using this, we can evaluate $x^4$ to be $5x^2-2\sqrt{5}x+1$ , and we see that there is another $x^2$ , so we put substitute it in again, resulting in $3\sqrt{5}x-4$ . Using the same way, we find that $x^8$ is $21\sqrt{5}x-29$ . We put this into $x^3(x^8-7x^4+1)$ , resulting in $x^3(0)$ , so the answer is $\boxed{0}$

Answer: B 0
Problem: The real number $x$ satisfies the equation $x+\frac{1}{x} = \sqrt{5}$ . What is the value of $x^{11}-7x^{7}+x^3?$
$\textbf{(A)} ~-1 \qquad\textbf{(B)} ~0 \qquad\textbf{(C)} ~1 \qquad\textbf{(D)} ~2 \qquad\textbf{(E)} ~\sqrt{5}$

Solution: The equation we are given is $x+\tfrac{1}{x}=\sqrt{5}...$ Yuck. Fractions and radicals! We multiply both sides by $x,$ square, and re-arrange to get \[x^2+1=\sqrt{5}x \implies x^4+2x^2+1=5x^2 \implies x^4-3x^2+1=0.\] Now, let us consider the expression we wish to acquire. Factoring out $x^3,$ we have \[x^3\left(x^8-7x^4+1\right) = x^3\left(x^8+2x^4+1-9x^4\right).\] Then, we notice that $x^8+2x^4+1=\left(x^4+1\right)^2.$ Furthermore, \[x^4+1=3x^2 \implies \left(x^4+1\right)^2=x^8+2x^4+1=9x^4.\] Thus, our answer is \[x^3\left(9x^4-9x^4\right) = x^3 \cdot 0 = \boxed{0} ~ 0.\] ~peace09

Answer: B 0
Problem: The real number $x$ satisfies the equation $x+\frac{1}{x} = \sqrt{5}$ . What is the value of $x^{11}-7x^{7}+x^3?$
$\textbf{(A)} ~-1 \qquad\textbf{(B)} ~0 \qquad\textbf{(C)} ~1 \qquad\textbf{(D)} ~2 \qquad\textbf{(E)} ~\sqrt{5}$

Solution: Multiplying by x and solving, we get that $x = \frac{\sqrt{5} \pm 1}{2}.$ Note that whether or not we take $x = \frac{\sqrt{5} + 1}{2}$ or we take $\frac{\sqrt{5} - 1}{2},$ our answer has to be the same. Thus, we take $x = \frac{\sqrt{5} - 1}{2} \approx 0.62$ . Since this number is small, taking it to high powers like $11$ $7$ , and $3$ will make the number very close to $0$ , so the answer is $\boxed{0}.$ ~AtharvNaphade

Answer: B 0
Problem: Call a positive integer an uphill integer if every digit is strictly greater than the previous digit. For example, $1357, 89,$ and $5$ are all uphill integers, but $32, 1240,$ and $466$ are not. How many uphill integers are divisible by $15$
$\textbf{(A)} ~4 \qquad\textbf{(B)} ~5 \qquad\textbf{(C)} ~6 \qquad\textbf{(D)} ~7 \qquad\textbf{(E)} ~8$

Solution: The divisibility rule of $15$ is that the number must be congruent to $0$ mod $3$ and congruent to $0$ mod $5$ . Being divisible by $5$ means that it must end with a $5$ or a $0$ . We can rule out the case when the number ends with a $0$ immediately because the only integer that is uphill and ends with a $0$ is $0$ which is not positive. So now we know that the number ends with a $5$ . Looking at the answer choices, the answer choices are all pretty small, so we can generate all of the numbers that are uphill and are divisible by $3$ . These numbers are $15, 45, 135, 345, 1245, 12345$ , or $\boxed{6}$ numbers.

Answer: C 6
Problem: Call a positive integer an uphill integer if every digit is strictly greater than the previous digit. For example, $1357, 89,$ and $5$ are all uphill integers, but $32, 1240,$ and $466$ are not. How many uphill integers are divisible by $15$
$\textbf{(A)} ~4 \qquad\textbf{(B)} ~5 \qquad\textbf{(C)} ~6 \qquad\textbf{(D)} ~7 \qquad\textbf{(E)} ~8$

Solution: First, note how the number must end in either $5$ or $0$ in order to satisfying being divisible by $15$ . However, the number can't end in $0$ because it's not strictly greater than the previous digits. Thus, our number must end in $5$ . We do casework on the number of digits.
Case 1: $1$ digit. No numbers work, so $0$ numbers.
Case 2: $2$ digits. We have the numbers $15, 45,$ and $75$ , but $75$ isn't an uphill number, so $2$ numbers
Case 3: $3$ digits. We have the numbers $135, 345$ , so $2$ numbers.
Case 4: $4$ digits. We have the numbers $1235, 1245$ and $2345$ , but only $1245$ satisfies this condition, so $1$ number.
Case 5: $5$ digits. We have only $12345$ , so $1$ number.
Adding these up, we have $2+2+1+1=\boxed{6}$

Answer: C 6
Problem: Call a positive integer an uphill integer if every digit is strictly greater than the previous digit. For example, $1357, 89,$ and $5$ are all uphill integers, but $32, 1240,$ and $466$ are not. How many uphill integers are divisible by $15$
$\textbf{(A)} ~4 \qquad\textbf{(B)} ~5 \qquad\textbf{(C)} ~6 \qquad\textbf{(D)} ~7 \qquad\textbf{(E)} ~8$

Solution: Like solution 2, we can proceed by using casework. A number is divisible by $15$ if is divisible by $3$ and $5.$ In this case, the units digit must be $5,$ otherwise no number can be formed.
Case 1: sum of digits = 6
There is only one number, $15.$
Case 2: sum of digits = 9
There are two numbers: $45$ and $135.$
Case 3: sum of digits = 12
There are two numbers: $345$ and $1245.$
Case 4: sum of digits = 15
There is only one number, $12345.$
We can see that we have exhausted all cases, because in order to have a larger sum of digits, then a number greater than $5$ needs to be used, breaking the conditions of the problem. The answer is $\boxed{6}.$

Answer: C 6
Problem: Call a positive integer an uphill integer if every digit is strictly greater than the previous digit. For example, $1357, 89,$ and $5$ are all uphill integers, but $32, 1240,$ and $466$ are not. How many uphill integers are divisible by $15$
$\textbf{(A)} ~4 \qquad\textbf{(B)} ~5 \qquad\textbf{(C)} ~6 \qquad\textbf{(D)} ~7 \qquad\textbf{(E)} ~8$

Solution: An integer is divisible by $15$ if it is divisible by $3$ and $5$ . Divisibility by $5$ means ending in $0$ or $5$ , but since no digit is less than $0$ , the only uphill integer ending in $0$ could be $0$ , which is not positive. This means the integer must end in $5$
All uphill integers ending in $5$ are formed by picking any subset of the sequence $(1,2,3,4)$ of digits (keeping their order), then appending a $5$ . Divisibility by $3$ means the sum of the digits is a multiple of $3$ , so our choice of digits must add to $0$ modulo $3$
$5 \equiv -1 \pmod{3}$ , so the other digits we pick must add to $1$ modulo $3$ . Since $(1,2,3,4) \equiv (1,-1,0,1) \pmod{3}$ , we can pick either nothing, or one residue $1$ (from $1$ or $4$ ) and one residue $-1$ (from $2$ ), and we can then optionally add a residue $0$ (from $3$ ). This gives $(1+2\cdot1)\cdot2 = \boxed{6}$ possibilities.

Answer: C 6
Problem: Ravon, Oscar, Aditi, Tyrone, and Kim play a card game. Each person is given $2$ cards out of a set of $10$ cards numbered $1,2,3, \dots,10.$ The score of a player is the sum of the numbers of their cards. The scores of the players are as follows: Ravon-- $11,$ Oscar-- $4,$ Aditi-- $7,$ Tyrone-- $16,$ Kim-- $17.$ Which of the following statements is true?
$\textbf{(A) }\text{Ravon was given card 3.}$
$\textbf{(B) }\text{Aditi was given card 3.}$
$\textbf{(C) }\text{Ravon was given card 4.}$
$\textbf{(D) }\text{Aditi was given card 4.}$
$\textbf{(E) }\text{Tyrone was given card 7.}$

Solution: By logical deduction, we consider the scores from lowest to highest: \begin{align*} \text{Oscar's score is 4.} &\implies \text{Oscar is given cards 1 and 3.} \\ &\implies \text{Aditi is given cards 2 and 5.} \\ &\implies \text{Ravon is given cards 4 and 7.} && (\bigstar) \\ &\implies \text{Tyrone is given cards 6 and 10.} \\ &\implies \text{Kim is given cards 8 and 9.} \end{align*} Therefore, the answer is $\boxed{4.}$

Answer: C 4.
Problem: Suppose that $S$ is a finite set of positive integers. If the greatest integer in $S$ is removed from $S$ , then the average value (arithmetic mean) of the integers remaining is $32$ . If the least integer in $S$ is also removed, then the average value of the integers remaining is $35$ . If the greatest integer is then returned to the set, the average value of the integers rises to $40$ . The greatest integer in the original set $S$ is $72$ greater than the least integer in $S$ . What is the average value of all the integers in the set $S$
$\textbf{(A) }36.2 \qquad \textbf{(B) }36.4 \qquad \textbf{(C) }36.6\qquad \textbf{(D) }36.8 \qquad \textbf{(E) }37$

Solution: Let the lowest value be $L$ and the highest $G$ , and let the sum be $Z$ and the amount of numbers $n$ . We have $\frac{Z-G}{n-1}=32$ $\frac{Z-L-G}{n-2}=35$ $\frac{Z-L}{n-1}=40$ , and $G=L+72$ . Clearing denominators gives $Z-G=32n-32$ $Z-L-G=35n-70$ , and $Z-L=40n-40$ . We use $G=L+72$ to turn the first equation into $Z-L=32n+40$ . Since $Z-L=40(n-1)$ we substitute it into the equation which gives $n=10$ . Turning the second into $Z-2L=35n+2$ using $G=L+72$ we see $L=8$ and $Z=368$ so the average is $\frac{Z}{n}=\boxed{36.8}$ ~aop2014

Answer: D 36.8
Problem: Suppose that $S$ is a finite set of positive integers. If the greatest integer in $S$ is removed from $S$ , then the average value (arithmetic mean) of the integers remaining is $32$ . If the least integer in $S$ is also removed, then the average value of the integers remaining is $35$ . If the greatest integer is then returned to the set, the average value of the integers rises to $40$ . The greatest integer in the original set $S$ is $72$ greater than the least integer in $S$ . What is the average value of all the integers in the set $S$
$\textbf{(A) }36.2 \qquad \textbf{(B) }36.4 \qquad \textbf{(C) }36.6\qquad \textbf{(D) }36.8 \qquad \textbf{(E) }37$

Solution: Let $x$ be the greatest integer, $y$ be the smallest, $z$ be the sum of the numbers in S excluding $x$ and $y$ , and $k$ be the number of elements in S.
Then, $S=x+y+z$
First, when the greatest integer is removed, $\frac{S-x}{k-1}=32$
When the smallest integer is also removed, $\frac{S-x-y}{k-2}=35$
When the greatest integer is added back, $\frac{S-y}{k-1}=40$
We are given that $x=y+72$
After you substitute $x=y+72$ , you have 3 equations with 3 unknowns $S,$ $y$ and $k$
$S-y-72=32k-32$
$S-2y-72=35k-70$
$S-y=40k-40$
This can be easily solved to yield $k=10$ $y=8$ $S=368$
$\therefore$ average value of all integers in the set $=S/k = 368/10 = \boxed{36.8}$

Answer: D 36.8
Problem: Suppose that $S$ is a finite set of positive integers. If the greatest integer in $S$ is removed from $S$ , then the average value (arithmetic mean) of the integers remaining is $32$ . If the least integer in $S$ is also removed, then the average value of the integers remaining is $35$ . If the greatest integer is then returned to the set, the average value of the integers rises to $40$ . The greatest integer in the original set $S$ is $72$ greater than the least integer in $S$ . What is the average value of all the integers in the set $S$
$\textbf{(A) }36.2 \qquad \textbf{(B) }36.4 \qquad \textbf{(C) }36.6\qquad \textbf{(D) }36.8 \qquad \textbf{(E) }37$

Solution: We should plug in $36.2$ and assume everything is true except the $35$ part. We then calculate that part and end up with $35.75$ . We also see with the formulas we used with the plug in that when you increase by $0.2$ the $35.75$ part decreases by $0.25$ . The answer is then $\boxed{36.8}$ . You can work backwards because it is multiple choice and you don't have to do critical thinking. ~Lopkiloinm

Answer: D 36.8
Problem: Suppose that $S$ is a finite set of positive integers. If the greatest integer in $S$ is removed from $S$ , then the average value (arithmetic mean) of the integers remaining is $32$ . If the least integer in $S$ is also removed, then the average value of the integers remaining is $35$ . If the greatest integer is then returned to the set, the average value of the integers rises to $40$ . The greatest integer in the original set $S$ is $72$ greater than the least integer in $S$ . What is the average value of all the integers in the set $S$
$\textbf{(A) }36.2 \qquad \textbf{(B) }36.4 \qquad \textbf{(C) }36.6\qquad \textbf{(D) }36.8 \qquad \textbf{(E) }37$

Solution: Let $S = \{a_1, a_2, a_3, \hdots, a_n\}$ with $a_1 < a_2 < a_3 < \hdots < a_n.$ We are given the following: \[{\begin{cases} \sum_{i=1}^{n-1} a_i = 32(n-1) = 32n-32, \\ \sum_{i=2}^n a_i = 40(n-1) = 40n-40, \\ \sum_{i=2}^{n-1} a_i = 35(n-2) = 35n-70, \\ a_n-a_1 = 72 \implies a_1 + 72 = a_n. \end{cases}}\] Subtracting the third equation from the sum of the first two, we find that \[\sum_{i=1}^n a_i = \left(32n-32\right) + \left(40n-40\right) - \left(35n-70\right) = 37n - 2.\] Furthermore, from the fourth equation, we have \[\sum_{i=2}^{n} a_i - \sum_{i=1}^{n-1} a_i = \left[\left(a_1 + 72\right) + \sum_{i=2}^{n-1} a_i\right] - \left[\left(a_1\right) + \sum_{i=2}^{n-1} a_i\right] = \left(40n-40\right)-\left(32n-32\right).\] Combining like terms and simplifying, we have \[72 = 8n-8 \implies 8n = 80 \implies n=10.\] Thus, the sum of the elements in $S$ is $37 \cdot 10 - 2 = 368,$ and since there are 10 elements in $S,$ the average of the elements in $S$ is $\tfrac{368}{10}=\boxed{36.8}$

Answer: D 36.8