prompt
listlengths
1
1
data_source
stringclasses
2 values
ability
stringclasses
1 value
reward_model
dict
extra_info
dict
[ { "content": "Please solve the following math problem: Let $ABCD$ be a unit square in the plane. Points $X$ and $Y$ are chosen independently and uniformly at random on the perimeter of $ABCD$. If the expected value of the area of triangle $\\triangle AXY$ can be expressed as $\\frac{m}{n}$ for relatively prime ...
dapo_math
math
{ "ground_truth": "113", "style": "rule" }
{ "index": 1, "split": "train", "solution": "To find the expected area of triangle $\\triangle AXY$, we set up a coordinate system with $A=(0,0)$, $B=(1,0)$, $C=(1,1)$, and $D=(0,1)$. The area is given by $\\frac{1}{2} |x_1 y_2 - x_2 y_1|$, where $(x_1, y_1)$ and $(x_2, y_2)$ are the coordinates of $X$ and $Y$. S...
[ { "content": "Please solve the following math problem: Let $a, b, c$ be distinct numbers such that the equations $x^2 + ax + 1 = 0$ and $x^2 + bx + c = 0$ have a common real root, and the equations $x^2 + x + a = 0$ and $x^2 + cx + b = 0$ also have a common real root. Compute the sum $a + b + c$.. The assistant...
dapo_math
math
{ "ground_truth": "-3", "style": "rule" }
{ "index": 2, "split": "train", "solution": "Let $r$ be the common real root of $x^2 + ax + 1 = 0$ and $x^2 + bx + c = 0$. Then:\n$$r^2 + ar + 1 = 0 \\quad \\text{and} \\quad r^2 + br + c = 0$$\nSubtracting these equations yields:\n$$(a - b)r + (1 - c) = 0 \\implies (a - b)r = c - 1 \\quad (1)$$\n\nLet $s$ be the...
[ { "content": "Please solve the following math problem: There are $7$ boxes arranged in a row and numbered $1$ through $7$. You have a stack of $2015$ cards, which you place one by one in the boxes. The first card is placed in box $1$, the second in box $2$, and so forth up to the seventh card which is placed in...
dapo_math
math
{ "ground_truth": "3", "style": "rule" }
{ "index": 3, "split": "train", "solution": "We have a back-and-forth pattern over 7 boxes. Sequence of box numbers repeats with period? It's like a snake: 1,2,3,4,5,6,7,6,5,4,3,2,1,2,3,... This is a walk on line length 7 reflecting at ends. Period length = 12? Let's see cycle: from 1 to 7 to 1 takes 12 steps? Se...
[ { "content": "Please solve the following math problem: Let $S$ be the set of triples $(a,b,c)$ of non-negative integers such that $a+b+c$ is even. The value of the sum\n\\[ \\sum_{(a,b,c) \\in S} \\frac{1}{2^a 3^b 5^c} \\]\ncan be expressed as $\\frac{m}{n}$, where $m$ and $n$ are relatively prime positive inte...
dapo_math
math
{ "ground_truth": "37", "style": "rule" }
{ "index": 4, "split": "train", "solution": "To solve for the sum\n\\[ \\sum_{(a,b,c) \\in S} \\frac{1}{2^a 3^b 5^c} \\]\nwhere $S$ is the set of triples of non-negative integers such that $a+b+c$ is even, we utilize the method of parity splitting. We define the total sum of the series without the parity constrai...
[ { "content": "Please solve the following math problem: For which $n$ is $n^4 + 6n^3 + 11n^2 + 3n + 31$ a perfect square?. The assistant first thinks about the reasoning process step by step and then provides the user with the answer. Return the final answer in \\boxed{} tags, for example \\boxed{1}. Let's solve...
dapo_math
math
{ "ground_truth": "10", "style": "rule" }
{ "index": 5, "split": "train", "solution": "To determine for which integer $n$ the expression $f(n) = n^4 + 6n^3 + 11n^2 + 3n + 31$ is a perfect square, we analyze the structure of the polynomial for large values of $n$. The leading term is $n^4$, suggesting that $f(n)$ is close to the square of a quadratic poly...
[ { "content": "Please solve the following math problem: Four positive integers $a, b, c, d$ satisfy the condition $a < b < c < d$. Determine the smallest possible value of $d$ such that the arithmetic mean of the numbers $a, b, c$ is half of the arithmetic mean of the numbers $a, b, c, d$.. The assistant first t...
dapo_math
math
{ "ground_truth": "10", "style": "rule" }
{ "index": 6, "split": "train", "solution": "We are given four positive integers \\(a, b, c, d\\) satisfying \\(a < b < c < d\\). The condition states that the arithmetic mean of \\(a, b, c\\) is half of the arithmetic mean of \\(a, b, c, d\\).\n\nFirst, express the arithmetic means:\n\\[\n\\text{Mean of } a, b, ...
[ { "content": "Please solve the following math problem: Determine the smallest prime $p$ such that $2018!$ is divisible by $p^3$, but not divisible by $p^4$.. The assistant first thinks about the reasoning process step by step and then provides the user with the answer. Return the final answer in \\boxed{} tags,...
dapo_math
math
{ "ground_truth": "509", "style": "rule" }
{ "index": 8, "split": "train", "solution": "To determine the smallest prime $p$ such that $2018!$ is divisible by $p^3$ but not $p^4$, we must find the smallest prime for which the exponent of $p$ in the prime factorization of $2018!$ is exactly 3. Let $\\nu_p(n!)$ denote the exponent of prime $p$ in $n!$. By Le...
[ { "content": "Please solve the following math problem: Suppose you have a sphere tangent to the $xy$-plane with its center having a positive $z$-coordinate. If it is projected from a point $P=(0,b,a)$ to the $xy$-plane, it gives the conic section $y=x^2$. If we write $a=\\frac{p}{q}$ where $p$ and $q$ are integ...
dapo_math
math
{ "ground_truth": "3", "style": "rule" }
{ "index": 9, "split": "train", "solution": "Let the sphere have center \\((c_x,c_y,R)\\) and radius \\(R>0\\). Since it is tangent to the \\(xy\\)-plane, its center lies at height \\(R\\), so the tangency point is \\((c_x,c_y,0)\\).\n\nFor a point \\((x,y,0)\\) in the plane, the line from \\(P=(0,b,a)\\) to this...
[ { "content": "Please solve the following math problem: Rectangle $HOMF$ has $HO = 11$ and $OM = 5$. Triangle $\\triangle ABC$ has orthocenter $H$ and circumcenter $O$. $M$ is the midpoint of $BC$, and altitude $AF$ meets $BC$ at $F$. Find the length of $BC$.. The assistant first thinks about the reasoning proce...
dapo_math
math
{ "ground_truth": "28", "style": "rule" }
{ "index": 11, "split": "train", "solution": "To determine the length of side $BC$ in $\\triangle ABC$, we establish a coordinate system based on the given geometric properties.\n\n**1. Coordinate Setup**\nLet the midpoint of $BC$, denoted as $M$, be the origin $(0,0)$. Since $BC$ lies on the $x$-axis, we can def...
[ { "content": "Please solve the following math problem: Let $a$, $b$, $c$ be the three roots of the equation $x^3-(k+1)x^2+kx+12=0$, where $k$ is a real number. If $(a-2)^3+(b-2)^3+(c-2)^3=-18$, find the value of $k$.. The assistant first thinks about the reasoning process step by step and then provides the user...
dapo_math
math
{ "ground_truth": "5", "style": "rule" }
{ "index": 12, "split": "train", "solution": "Let $a, b, c$ be the roots of the equation $x^3-(k+1)x^2+kx+12=0$. By Vieta's formulas, we identify the elementary symmetric sums:\n$$\n\\begin{aligned}\nS_1 &= a+b+c = k+1, \\\\\nS_2 &= ab+bc+ca = k, \\\\\nS_3 &= abc = -12.\n\\end{aligned}\n$$\nWe are given the condi...
[ { "content": "Please solve the following math problem: Burrito Bear has a white unit square. She inscribes a circle inside the square and paints it black. She then inscribes a square inside the black circle and paints it white. Burrito repeats this process indefinitely. The total black area can be expressed as ...
dapo_math
math
{ "ground_truth": "1", "style": "rule" }
{ "index": 14, "split": "train", "solution": "Let $L_n$ be the side length of the $n$-th white square, with $L_0 = 1$. The process involves inscribing a circle in a square, then a square in that circle.\n\n1. **Geometric Relationships**\n The radius $r_n$ of the circle inscribed in a square of side $L_n$ is $r_...
[ { "content": "Please solve the following math problem: Danial went to a fruit stall that sells apples, mangoes, and papayas. Each apple costs $3$ RM, each mango costs $4$ RM, and each papaya costs $5$ RM. He bought at least one of each fruit and paid exactly $50$ RM. What is the maximum number of fruits that he...
dapo_math
math
{ "ground_truth": "15", "style": "rule" }
{ "index": 15, "split": "train", "solution": "Let $a$, $b$, and $c$ be the number of apples, mangoes, and papayas, respectively. We are given:\n$$3a + 4b + 5c = 50$$\nwith $a, b, c \\ge 1$. We want to maximize $N = a + b + c$.\n\nSince apples are the cheapest fruit ($3$ RM), we should maximize $a$ while keeping $...
[ { "content": "Please solve the following math problem: Sabrina has a fair tetrahedral die with faces numbered 1, 2, 3, and 4. She rolls the die to create a sequence by recording the number on its bottom face. However, she discards any roll if appending its number to the sequence results in two consecutive terms...
dapo_math
math
{ "ground_truth": "10", "style": "rule" }
{ "index": 16, "split": "train", "solution": "To find the expected number of terms in Sabrina's sequence, we model the process as a Markov chain.\n\n**1. Modeling the Transitions**\nLet the current last recorded number be $a \\in \\{1, 2, 3, 4\\}$. The next roll is discarded if it equals $5-a$ (since $a + (5-a) =...
[ { "content": "Please solve the following math problem: Denote by $S(n)$ the sum of the digits of the positive integer $n$. Find all the solutions of the equation $n(S(n)-1)=2010.$. The assistant first thinks about the reasoning process step by step and then provides the user with the answer. Return the final an...
dapo_math
math
{ "ground_truth": "402", "style": "rule" }
{ "index": 17, "split": "train", "solution": "To solve $n(S(n)-1)=2010$, let $d = S(n)-1$. Then $n \\cdot d = 2010$, implying $n$ is a positive divisor of 2010. The prime factorization is $2010 = 2 \\cdot 3 \\cdot 5 \\cdot 67$. The divisors are:\n\\[ 1, 2, 3, 5, 6, 10, 15, 30, 67, 134, 201, 335, 402, 670, 1005, 2...
[ { "content": "Please solve the following math problem: For each positive integer $n$, let $S(n)$ be the sum of the digits of $n$. Determine the smallest positive integer $a$ such that there are infinitely many positive integers $n$ for which $S(n) - S(n + a) = 2018$.. The assistant first thinks about the reason...
dapo_math
math
{ "ground_truth": "7", "style": "rule" }
{ "index": 18, "split": "train", "solution": "To determine the smallest positive integer $a$ such that there are infinitely many positive integers $n$ satisfying $S(n) - S(n+a) = 2018$, we first establish a necessary condition for $a$ using modular arithmetic.\n\nRecall that the sum of the digits of an integer $m...
[ { "content": "Please solve the following math problem: Let $S$ be the set of triples $(a,b,c)$ of non-negative integers such that $a+b+c$ is even. Determine the value of the sum:\n\\[\n\\sum_{(a,b,c)\\in S}\\frac{1}{2^a3^b5^c}\n\\]\nThis sum can be expressed as $\\frac{m}{n}$, where $m$ and $n$ are relatively p...
dapo_math
math
{ "ground_truth": "37", "style": "rule" }
{ "index": 22, "split": "train", "solution": "Let $S$ be the sum of $\\frac{1}{2^a3^b5^c}$ over non-negative integers $a,b,c$ such that $a+b+c$ is even. We use the parity selector $\\frac{1+(-1)^{a+b+c}}{2}$ to isolate these terms. The sum $S$ is given by:\n\\[\nS = \\frac{1}{2} \\left( T + U \\right)\n\\]\nwhere...
[ { "content": "Please solve the following math problem: Find all positive integers $n$ for which the largest prime divisor of $n^2 + 3$ is equal to the least prime divisor of $n^4 + 6$.. The assistant first thinks about the reasoning process step by step and then provides the user with the answer. Return the fin...
dapo_math
math
{ "ground_truth": "3", "style": "rule" }
{ "index": 24, "split": "train", "solution": "Let $p$ be the largest prime divisor of $n^2 + 3$ and $q$ be the least prime divisor of $n^4 + 6$. We require $p = q$.\n\nTesting small values:\n- $n=1$: $n^2+3=4 \\implies p=2$. $n^4+6=7 \\implies q=7$.\n- $n=2$: $n^2+3=7 \\implies p=7$. $n^4+6=22=2\\cdot11 \\implies...
[ { "content": "Please solve the following math problem: The integers from $1$ to $n$ are written, one on each of $n$ cards. The first player removes one card. Then the second player removes two cards with consecutive integers. After that, the first player removes three cards with consecutive integers. Finally, t...
dapo_math
math
{ "ground_truth": "14", "style": "rule" }
{ "index": 26, "split": "train", "solution": "To find the smallest value of $n$ for which the second player can ensure completing both moves, we analyze the game state after each move. The total number of cards removed is $1+2+3+4=10$, so $n \\ge 10$ is required for the game to be possible. However, the constrain...
[ { "content": "Please solve the following math problem: Joe has $1729$ randomly oriented and randomly arranged unit cubes, which are initially unpainted. He makes two cubes of side lengths $9$ and $10$ or of side lengths $1$ and $12$ (randomly chosen). These cubes are dipped into white paint. Then two more cubes...
dapo_math
math
{ "ground_truth": "7", "style": "rule" }
{ "index": 27, "split": "train", "solution": "To determine the expected number of times Joe must repeat the process for the painted faces to be closest to half of the total, we first analyze the geometry and probabilities involved in each step.\n\n**1. Analyze the Cube Configurations**\nJoe uses 1729 unit cubes. ...
[ { "content": "Please solve the following math problem: The circle $C_1$ is tangent to the circle $C_2$ internally at the point $A$. Let $O$ be the center of $C_2$. The point $P$ is on $C_1$, and the tangent line at $P$ passes through $O$. Let the ray $OP$ intersect with $C_2$ at $Q$, and let the tangent line of...
dapo_math
math
{ "ground_truth": "3", "style": "rule" }
{ "index": 28, "split": "train", "solution": "Let $C_2$ have center $O$ and radius $R=9$. Let $C_1$ have center $O_1$ and radius $r$. Since $C_1$ is internally tangent to $C_2$ at $A$, the points $O, O_1, A$ are collinear. The distance between the centers is $OO_1 = 9-r$.\n\nThe line $OP$ is tangent to $C_1$ at $...
[ { "content": "Please solve the following math problem: Consider two distinct positive integers $a$ and $b$ that have integer arithmetic, geometric, and harmonic means. Find the minimal value of $|a-b|$.. The assistant first thinks about the reasoning process step by step and then provides the user with the answ...
dapo_math
math
{ "ground_truth": "30", "style": "rule" }
{ "index": 29, "split": "train", "solution": "Let $a$ and $b$ be distinct positive integers with integer arithmetic, geometric, and harmonic means. The geometric mean condition implies $ab$ is a perfect square. We express $a$ and $b$ as $a = m x^2$ and $b = m y^2$, where $m$ is a positive integer and $x, y$ are c...
[ { "content": "Please solve the following math problem: Determine the greatest power of $2$ that is a factor of $3^{15} + 3^{11} + 3^{6} + 1$.. The assistant first thinks about the reasoning process step by step and then provides the user with the answer. Return the final answer in \\boxed{} tags, for example \\...
dapo_math
math
{ "ground_truth": "64", "style": "rule" }
{ "index": 35, "split": "train", "solution": "To determine the greatest power of $2$ that is a factor of the expression $3^{15} + 3^{11} + 3^6 + 1$, we first compute the numerical value of the expression.\n\nLet $N = 3^{15} + 3^{11} + 3^6 + 1$. We calculate each term individually:\n1. $3^6 = 729$\n2. $3^{11} = ...
[ { "content": "Please solve the following math problem: On a board, the numbers from 1 to 2009 are written. A couple of them are erased and instead of them, the remainder of the sum of the erased numbers divided by 13 is written on the board. After a few repetitions of this process, only three numbers are left, ...
dapo_math
math
{ "ground_truth": "8", "style": "rule" }
{ "index": 36, "split": "train", "solution": "The process replaces two numbers $a$ and $b$ with their sum modulo 13, $r = (a+b) \\pmod{13}$. This operation preserves the sum of all numbers on the board modulo 13. Specifically, the change in the total sum is $(a+b) - r$, which is a multiple of 13. Therefore, the s...
[ { "content": "Please solve the following math problem: For positive integers $n$, let $s(n)$ be the sum of the digits of $n$. Over all four-digit positive integers $n$, which value of $n$ maximizes the ratio $\\frac{s(n)}{n}$?. The assistant first thinks about the reasoning process step by step and then provide...
dapo_math
math
{ "ground_truth": "1099", "style": "rule" }
{ "index": 37, "split": "train", "solution": "To maximize the ratio $\\frac{s(n)}{n}$ for a four-digit integer $n$, we must balance a large digit sum $s(n)$ with a small value of $n$. The maximum possible digit sum is 36 (for $n=9999$), but the ratio $\\frac{36}{9999} \\approx 0.0036$ is small due to the large de...
[ { "content": "Please solve the following math problem: How many ways can $8$ mutually non-attacking rooks be placed on a $9 \\times 9$ chessboard so that all $8$ rooks are on squares of the same color?\n\n(Two rooks are said to be attacking each other if they are placed in the same row or column of the board.)....
dapo_math
math
{ "ground_truth": "40320", "style": "rule" }
{ "index": 39, "split": "train", "solution": "To determine the number of ways to place 8 mutually non-attacking rooks on a $9 \\times 9$ chessboard such that all rooks occupy squares of the same color, we analyze the board structure based on the parity of the row and column indices. Let the rows and columns be in...
[ { "content": "Please solve the following math problem: Let $ABCDEFGHIJ$ be a regular 10-sided polygon inscribed in a circle with center $O$ and radius $5$. The diagonals $AD$ and $BE$ intersect at point $P$, and the diagonals $AH$ and $BI$ intersect at point $Q$. Calculate the length of segment $PQ$.. The assis...
dapo_math
math
{ "ground_truth": "5", "style": "rule" }
{ "index": 41, "split": "train", "solution": "Place the regular decagon $ABCDEFGHIJ$ in the complex plane with center $O$ at the origin and radius $R=5$. Let vertex $A$ correspond to the complex number $5$. The vertices are located at $5e^{ik\\pi/5}$ for $k=0,1,\\dots,9$. Thus, $A=5$, $B=5e^{i\\pi/5}$, $D=5e^{i3\...
[ { "content": "Please solve the following math problem: Determine all integers $m$ for which all solutions of the equation $3x^3 - 3x^2 + m = 0$ are rational.. The assistant first thinks about the reasoning process step by step and then provides the user with the answer. Return the final answer in \\boxed{} tags...
dapo_math
math
{ "ground_truth": "0", "style": "rule" }
{ "index": 42, "split": "train", "solution": "To determine all integers $m$ such that $3x^3 - 3x^2 + m = 0$ has rational roots, we first divide the equation by 3 to obtain the monic polynomial:\n\\[ x^3 - x^2 + \\frac{m}{3} = 0 \\]\nLet the roots be $r_1, r_2, r_3$. By Vieta's formulas, these roots satisfy:\n\\[ ...
[ { "content": "Please solve the following math problem: Let $A$, $B$, and $C$ be three points on the edge of a circular chord such that $B$ is due west of $C$ and $\\triangle ABC$ is an equilateral triangle with each side measuring $86$ meters. A boy swam from $A$ directly towards $B$. After covering a distance ...
dapo_math
math
{ "ground_truth": "12", "style": "rule" }
{ "index": 44, "split": "train", "solution": "Place the equilateral triangle in a coordinate system with $B=(-43,0)$ and $C=(43,0)$, so the base $BC$ is horizontal. The third vertex is $A=(0, 43\\sqrt{3})$. The circumcenter of the triangle is $O=(0, \\frac{43\\sqrt{3}}{3})$ and the circumradius is $R = \\frac{86}...
[ { "content": "Please solve the following math problem: Let $A$, $B$, $C$, and $D$ be points on a circle such that $AB = 11$ and $CD = 19$. Point $P$ is on segment $AB$ with $AP = 6$, and $Q$ is on segment $CD$ with $CQ = 7$. The line through $P$ and $Q$ intersects the circle at $X$ and $Y$. If $PQ = 27$, find $...
dapo_math
math
{ "ground_truth": "31", "style": "rule" }
{ "index": 45, "split": "train", "solution": "To find the length of segment $XY$, we utilize the Power of a Point Theorem, which states that for a point inside a circle, the product of the lengths of the segments of any chord passing through that point is constant.\n\n**Step 1: Calculate the power of point $P$**\...
[ { "content": "Please solve the following math problem: For any real numbers $x$ and $y$ that satisfy the equations:\n\\[\nx + y - xy = 155\n\\]\nand\n\\[\nx^2 + y^2 = 325\n\\]\nFind $|x^3 - y^3|$.. The assistant first thinks about the reasoning process step by step and then provides the user with the answer. Re...
dapo_math
math
{ "ground_truth": "4375", "style": "rule" }
{ "index": 46, "split": "train", "solution": "To find $|x^3 - y^3|$ for real numbers $x$ and $y$ satisfying the system:\n\\[\nx + y - xy = 155\n\\]\n\\[\nx^2 + y^2 = 325\n\\]\nwe utilize symmetric sums. Let $s = x + y$ and $p = xy$. The first equation can be rewritten as:\n\\[\ns - p = 155 \\implies p = s - 155\n...
[ { "content": "Please solve the following math problem: There are $2023$ distinct points on a plane, which are colored either white or red. For each white point, there are exactly two red points such that the distance from the white point to each of these red points is $2023$. Find the minimum number of red poin...
dapo_math
math
{ "ground_truth": "45", "style": "rule" }
{ "index": 47, "split": "train", "solution": "Let $r$ be the number of red points and $w$ be the number of white points. The total number of distinct points is given as 2023, so we have the relation:\n\\[ w = 2023 - r \\]\n\nConsider the geometric constraints imposed on the white points. For each white point, the...
[ { "content": "Please solve the following math problem: Find all positive integers $k$ for which the equation:\n$$ \\text{lcm}(m,n) - \\text{gcd}(m,n) = k(m-n) $$\nhas no solution in positive integers $(m,n)$ with $m \\neq n$.. The assistant first thinks about the reasoning process step by step and then provides...
dapo_math
math
{ "ground_truth": "2", "style": "rule" }
{ "index": 48, "split": "train", "solution": "Let $d = \\gcd(m,n)$ and write $m=da, n=db$ with $\\gcd(a,b)=1$. Since $\\operatorname{lcm}(m,n)=dab$, the equation becomes:\n$$ dab - d = k(da - db) $$\nDividing by $d$, we obtain:\n$$ ab - 1 = k(a - b) $$\nSince the left side is positive for distinct $m,n$, we must ...
[ { "content": "Please solve the following math problem: Given a regular tetrahedron with edge $a$, its edges are divided into $n$ equal segments, thus obtaining $n + 1$ points: $2$ at the ends and $n - 1$ inside. The following set of planes is considered:\n- Those that contain the faces of the tetrahedron, and\n...
dapo_math
math
{ "ground_truth": "3", "style": "rule" }
{ "index": 50, "split": "train", "solution": "To find the smallest positive natural number $n$, we model the regular tetrahedron in a Cartesian coordinate system with vertices at $(0,0,0)$, $(a,0,0)$, $(0,a,0)$, and $(0,0,a)$. The edges are divided into $n$ equal segments. The set of planes consists of the four f...
[ { "content": "Please solve the following math problem: Suppose integers $a < b < c$ satisfy the following conditions:\n\\[\n a + b + c = 95 \\\\\n a^2 + b^2 + c^2 = 3083\n\\]\nFind the value of $c$.. The assistant first thinks about the reasoning process step by step and then provides the user with the answer. ...
dapo_math
math
{ "ground_truth": "37", "style": "rule" }
{ "index": 52, "split": "train", "solution": "We are given integers \\(a < b < c\\) satisfying\n\\[\na + b + c = 95 \\quad \\text{and} \\quad a^2 + b^2 + c^2 = 3083.\n\\]\nLet \\(S = a+b+c = 95\\) and \\(Q = a^2+b^2+c^2 = 3083\\). Using the identity \\(Q = S^2 - 2(ab+bc+ca)\\), we find the sum of pairwise product...
[ { "content": "Please solve the following math problem: Let $a$, $b$, $c$ be real numbers such that $a^2 - 2 = 3b - c$, $b^2 + 4 = 3 + a$, and $c^2 + 4 = 3a - b$. Find $a^4 + b^4 + c^4$.. The assistant first thinks about the reasoning process step by step and then provides the user with the answer. Return the fi...
dapo_math
math
{ "ground_truth": "18", "style": "rule" }
{ "index": 53, "split": "train", "solution": "To solve the system of equations for real numbers $a, b, c$:\n1. $a^2 - 2 = 3b - c$\n2. $b^2 + 4 = 3 + a$\n3. $c^2 + 4 = 3a - b$\n\nFirst, simplify the second equation to express $a$ in terms of $b$:\n$$b^2 + 4 = 3 + a \\implies a = b^2 + 1$$\n\nNext, substitute th...
[ { "content": "Please solve the following math problem: Find the smallest natural number $n$ such that the expression $n^2 - n + 11$ has exactly four prime factors, which may not be distinct.. The assistant first thinks about the reasoning process step by step and then provides the user with the answer. Return t...
dapo_math
math
{ "ground_truth": "132", "style": "rule" }
{ "index": 54, "split": "train", "solution": "We seek the smallest natural number $n$ such that $N = n^2 - n + 11$ has exactly four prime factors counted with multiplicity, i.e., $\\Omega(N) = 4$.\n\nFirst, consider $n$ as a multiple of 11, let $n = 11k$. Then:\n\\[\nN = (11k)^2 - 11k + 11 = 11(11k^2 - k + 1).\n\...
[ { "content": "Please solve the following math problem: Let $P$ be a regular $2006$-gon. A diagonal is called *good* if its endpoints divide the boundary of $P$ into two parts, each composed of an odd number of sides of $P$. The sides of $P$ are also called *good*.\n\nSuppose $P$ has been dissected into triangle...
dapo_math
math
{ "ground_truth": "1003", "style": "rule" }
{ "index": 55, "split": "train", "solution": "Label the vertices of the regular 2006-gon as \\(0, 1, \\dots, 2005\\) in clockwise order. A diagonal is good if it connects vertices of opposite parity (even to odd), as the sum of the two boundary arcs is even. Thus, a triangle in the triangulation has two good side...
[ { "content": "Please solve the following math problem: Byan is playing a game called \"raven, raven, falcon\" with his three friends. His friends sit in a circle, and Byan walks clockwise around them, tapping each friend he passes on the head and saying either \"raven\" or \"falcon,\" each with a probability of...
dapo_math
math
{ "ground_truth": "107", "style": "rule" }
{ "index": 56, "split": "train", "solution": "Let the three friends be labeled $A, B, C$ in clockwise order. Byan visits them in the repeating sequence $A, B, C, A, B, C, \\dots$. At each visit, he says \"falcon\" with probability $p = \\frac{1}{2}$ and \"raven\" with probability $\\frac{1}{2}$. The game ends imm...
[ { "content": "Please solve the following math problem: One day, students in school organized an exchange among themselves with the following rates:\n- $11$ strawberries exchange for $14$ raspberries.\n- $22$ cherries exchange for $21$ raspberries.\n- $10$ cherries exchange for $3$ bananas.\n- $5$ pears exchange...
dapo_math
math
{ "ground_truth": "7", "style": "rule" }
{ "index": 58, "split": "train", "solution": "We need exchange rates. Convert to common value. Let’s assign value in some unit. Use strawberries as base. 1 strawberry =? Use first: 11 st =14 r => 1 st =14/11 r. So 7 st = 7*14/11 = 98/11 r.\n\nNow convert raspberries to cherries: 22 ch =21 r => 1 r =22/21 ch. So 9...
[ { "content": "Please solve the following math problem: In triangle $ABC$, let $D$ be the foot of the altitude from $A$. Suppose that $AD = 4$, $BD = 3$, $CD = 2$, and $AB$ is extended past $B$ to a point $E$ such that $BE = 5$. Determine the value of $CE^2$.. The assistant first thinks about the reasoning proce...
dapo_math
math
{ "ground_truth": "80", "style": "rule" }
{ "index": 59, "split": "train", "solution": "We have right triangle? D foot from A to BC so AD altitude to BC. So D lies on BC with BD=3, DC=2, so BC=5. AD=4. So triangle with legs? Use right triangle with altitude: AB? Use coordinates: Let B=(0,0), C=(5,0). D at x=3 from B so D=(3,0). A somewhere above line BC ...
[ { "content": "Please solve the following math problem: Find the sum of all positive integers $x$ such that $|x^2-x-6|$ has exactly 4 positive integer divisors.. The assistant first thinks about the reasoning process step by step and then provides the user with the answer. Return the final answer in \\boxed{} ta...
dapo_math
math
{ "ground_truth": "10", "style": "rule" }
{ "index": 61, "split": "train", "solution": "To find the sum of all positive integers $x$ such that $|x^2 - x - 6|$ has exactly 4 positive integer divisors, we first factor the expression inside the absolute value:\n\\[ x^2 - x - 6 = (x-3)(x+2) \\]\nLet $a = x-3$. Then $x+2 = a+5$, and the expression becomes $N ...
[ { "content": "Please solve the following math problem: The triangle $ABC$ has sides $AB = 137$, $AC = 241$, and $BC = 200$. There is a point $D$ on $BC$ such that both incircles of triangles $ABD$ and $ACD$ touch $AD$ at the same point $E$. Determine the length of $CD$.. The assistant first thinks about the rea...
dapo_math
math
{ "ground_truth": "152", "style": "rule" }
{ "index": 63, "split": "train", "solution": "Let $BD = x$ and $CD = y$. Since $D$ lies on $BC$, we have $x + y = BC = 200$. Let $AD = d$. We define the semiperimeters of triangles $ABD$ and $ACD$ as:\n$$s_1 = \\frac{AB + BD + AD}{2} = \\frac{137 + x + d}{2}$$\n$$s_2 = \\frac{AC + CD + AD}{2} = \\frac{241 + y + d...
[ { "content": "Please solve the following math problem: An arrangement of 12 real numbers in a row is called *good* if for any four consecutive numbers, the arithmetic mean of the first and last numbers is equal to the product of the two middle numbers. Determine how many good arrangements exist in which the fir...
dapo_math
math
{ "ground_truth": "45", "style": "rule" }
{ "index": 64, "split": "train", "solution": "The problem requires finding the number of real sequences $a_1, \\dots, a_{12}$ satisfying the condition that for any $i \\in \\{1, \\dots, 9\\}$, the arithmetic mean of the first and last terms in a consecutive block of four equals the product of the middle two. This...
[ { "content": "Please solve the following math problem: Find all odd natural numbers $n$ such that $d(n)$ is the largest divisor of the number $n$ different from $n$. Here, $d(n)$ represents the number of divisors of the number $n$, including $1$ and $n$.. The assistant first thinks about the reasoning process s...
dapo_math
math
{ "ground_truth": "9", "style": "rule" }
{ "index": 65, "split": "train", "solution": "We seek odd natural numbers $n$ such that the number of divisors $d(n)$ equals the largest proper divisor of $n$. Let $p$ be the smallest prime divisor of $n$. The largest proper divisor is $n/p$. Thus, we require $d(n) = n/p$.\n\nWrite $n = p^a m$, where $p$ is an od...
[ { "content": "Please solve the following math problem: Determine all natural numbers $n$ for which the number $A = n^4 + 4n^3 + 5n^2 + 6n$ is a perfect square of a natural number.. The assistant first thinks about the reasoning process step by step and then provides the user with the answer. Return the final an...
dapo_math
math
{ "ground_truth": "1", "style": "rule" }
{ "index": 66, "split": "train", "solution": "Let $A = n^4 + 4n^3 + 5n^2 + 6n$. We seek natural numbers $n$ such that $A$ is a perfect square. We compare $A$ to the squares of two consecutive integers: $(n^2 + 2n)^2$ and $(n^2 + 2n + 1)^2$.\n\nFirst, compute the lower bound:\n\\[\n(n^2 + 2n)^2 = n^4 + 4n^3 + 4n^2...
[ { "content": "Please solve the following math problem: Let's consider a set of distinct positive integers with a sum equal to 2023. Among these integers, there are a total of $d$ even numbers and $m$ odd numbers. Determine the maximum possible value of $2d + 4m$.. The assistant first thinks about the reasoning ...
dapo_math
math
{ "ground_truth": "200", "style": "rule" }
{ "index": 67, "split": "train", "solution": "Let $d$ be the number of even integers and $m$ the number of odd integers in a set of distinct positive integers summing to 2023. We wish to maximize $2d + 4m$.\n\nThe minimum sum for $d$ distinct positive even integers is $2+4+\\dots+2d = d(d+1)$. The minimum sum for...
[ { "content": "Please solve the following math problem: It is given that $x = -2272$, $y = 10^3 + 10^2c + 10b + a$, and $z = 1$ satisfy the equation $ax + by + cz = 1$, where $a, b, c$ are positive integers with $a < b < c$. Find $y$.. The assistant first thinks about the reasoning process step by step and then ...
dapo_math
math
{ "ground_truth": "1987", "style": "rule" }
{ "index": 68, "split": "train", "solution": "Given $x = -2272$, $z = 1$, and $y = 10^3 + 10^2c + 10b + a$, the equation $ax + by + cz = 1$ becomes:\n$$-2272a + b(1000 + 100c + 10b + a) + c = 1$$\nRearranging to isolate the product term:\n$$b(1000 + 100c + 10b + a) = 1 + 2272a - c$$\nThe expression for $y$ repres...
[ { "content": "Please solve the following math problem: Let $f(x)$ be a quadratic polynomial such that $f(f(1)) = f(-f(-1)) = 0$ and $f(1) \\neq -f(-1)$. Suppose furthermore that the quadratic $2f(x)$ has coefficients that are nonzero integers. Find $f(0)$.. The assistant first thinks about the reasoning process...
dapo_math
math
{ "ground_truth": "3", "style": "rule" }
{ "index": 69, "split": "train", "solution": "Let $f(x) = ax^2 + bx + c$. Since $2f(x)$ has nonzero integer coefficients, $2a, 2b, 2c \\in \\mathbb{Z} \\setminus \\{0\\}$.\n\nThe conditions $f(f(1)) = 0$ and $f(-f(-1)) = 0$ imply that $f(1)$ and $-f(-1)$ are the roots of $f(x)$. Let $p = f(1)$ and $q = f(-1)$. Gi...
[ { "content": "Please solve the following math problem: Given that nonzero real numbers $x$ and $y$ satisfy the equations $x + \\frac{1}{y} = 3$ and $y + \\frac{1}{x} = 4$, find the value of $xy + \\frac{1}{xy}$.. The assistant first thinks about the reasoning process step by step and then provides the user with...
dapo_math
math
{ "ground_truth": "10", "style": "rule" }
{ "index": 71, "split": "train", "solution": "To find the value of $xy + \\frac{1}{xy}$, we start with the given system of equations for nonzero real numbers $x$ and $y$:\n$$ x + \\frac{1}{y} = 3 $$\n$$ y + \\frac{1}{x} = 4 $$\n\nFirst, we manipulate each equation to express terms involving the product $xy$. Mult...
[ { "content": "Please solve the following math problem: Find the smallest positive integer $k$ such that $k + 25973$ is a palindrome, a number that reads the same forward and backward.. The assistant first thinks about the reasoning process step by step and then provides the user with the answer. Return the fina...
dapo_math
math
{ "ground_truth": "89", "style": "rule" }
{ "index": 72, "split": "train", "solution": "We need the smallest positive integer k such that N = k + 25973 is a palindrome.\n\nSo we want smallest k >0 such that N is palindrome and N > 25973. So find the next palindrome after 25973, then k = N - 25973.\n\nThus we need the smallest palindrome greater than 2597...
[ { "content": "Please solve the following math problem: Find all values of the positive integer $m$ such that there exist polynomials $P(x)$, $Q(x)$, and $R(x,y)$ with real coefficients satisfying the condition: For every pair of real numbers $a$ and $b$ satisfying $a^m - b^2 = 0$, we always have $P(R(a,b)) = a$...
dapo_math
math
{ "ground_truth": "1", "style": "rule" }
{ "index": 73, "split": "train", "solution": "Let $V_m$ be the set of real pairs $(a,b)$ satisfying $a^m = b^2$. The problem asks for polynomials $P(x), Q(x) \\in \\mathbb{R}[x]$ and $R(x,y) \\in \\mathbb{R}[x,y]$ such that $P(R(a,b)) = a$ and $Q(R(a,b)) = b$ for all $(a,b) \\in V_m$.\n\nDefine the coordinate rin...
[ { "content": "Please solve the following math problem: Find the smallest positive integer $n$ such that the decimal representation of $n!(n+1)!(2n+1)! - 1$ has its last 30 digits all equal to 9.. The assistant first thinks about the reasoning process step by step and then provides the user with the answer. Retu...
dapo_math
math
{ "ground_truth": "34", "style": "rule" }
{ "index": 74, "split": "train", "solution": "We seek the smallest positive integer $n$ such that the last 30 digits of $n!(n+1)!(2n+1)! - 1$ are all 9. This requires:\n\\[ n!(n+1)!(2n+1)! \\equiv 0 \\pmod{10^{30}} \\]\nThe product must contain at least 30 factors of 2 and 30 factors of 5. Let $v_p(m!) = \\sum_{k...
[ { "content": "Please solve the following math problem: The thousands digit of a five-digit number which is divisible by $37$ and $173$ is $3$. What is the hundreds digit of this number?\n\n\\[\n\\textbf{a)}\\ 0 \\quad \\textbf{b)}\\ 2 \\quad \\textbf{c)}\\ 4 \\quad \\textbf{d)}\\ 6 \\quad \\textbf{e)}\\ 8\n\\]....
dapo_math
math
{ "ground_truth": "2", "style": "rule" }
{ "index": 78, "split": "train", "solution": "To find the five-digit number, we first determine its required divisibility properties. The number must be divisible by both $37$ and $173$. Since $37$ and $173$ are distinct prime numbers, their least common multiple is their product:\n\\[\n37 \\times 173 = 6401\n\\]...
[ { "content": "Please solve the following math problem: Let $f(n)$ be a function satisfying the following three conditions for all positive integers $n$:\n\n1. $f(n)$ is a positive integer.\n2. $f(n + 1) > f(n)$.\n3. $f(f(n)) = 3n$.\n\nFind $f(2001)$.. The assistant first thinks about the reasoning process step ...
dapo_math
math
{ "ground_truth": "3816", "style": "rule" }
{ "index": 79, "split": "train", "solution": "Let $a_n = f(n)$. The conditions imply $a_n$ is a strictly increasing sequence of positive integers satisfying $a_{a_n} = 3n$. Applying $f$ to both sides yields $f(3n) = 3f(n)$, or $a_{3n} = 3a_n$. This scaling property means that for any $n = 3^k t$ where $3 \\nmid t...
[ { "content": "Please solve the following math problem: Let $ABC$ be a triangle in the $xy$ plane, where $B$ is at the origin $(0,0)$. Extend $BC$ to $D$ such that $BC: CD = 1:1$, extend $CA$ to $E$ such that $CA: AE = 1:2$, and extend $AB$ to $F$ such that $AB: BF = 1:3$. Let $G(32,24)$ be the centroid of the t...
dapo_math
math
{ "ground_truth": "40", "style": "rule" }
{ "index": 80, "split": "train", "solution": "Let the coordinates of the vertices of triangle $ABC$ be $A=(x_A, y_A)$, $B=(0,0)$, and $C=(x_C, y_C)$. The centroid $G$ of $\\triangle ABC$ is given as $(32, 24)$. By the definition of the centroid, the coordinates are the average of the vertices' coordinates:\n\\[\n...
[ { "content": "Please solve the following math problem: Real nonzero numbers $x, y, z$ satisfy $x + y + z = 0$. Furthermore, it is given that:\n\\[\nA = \\frac{x}{y} + \\frac{y}{z} + \\frac{z}{x} = \\frac{x}{z} + \\frac{z}{y} + \\frac{y}{x} + 1\n\\]\nDetermine the value of $A$.. The assistant first thinks about ...
dapo_math
math
{ "ground_truth": "-1", "style": "rule" }
{ "index": 81, "split": "train", "solution": "Let \\(a = x/y\\), \\(b = y/z\\), and \\(c = z/x\\). Since \\(x, y, z\\) are nonzero, we have the product relation:\n\\[ abc = \\frac{x}{y} \\cdot \\frac{y}{z} \\cdot \\frac{z}{x} = 1. \\]\n\nThe given equation is:\n\\[ A = \\frac{x}{y} + \\frac{y}{z} + \\frac{z}{x} =...
[ { "content": "Please solve the following math problem: Find all prime numbers $p$ such that $4p^2 + 1$ and $6p^2 + 1$ are also prime numbers.. The assistant first thinks about the reasoning process step by step and then provides the user with the answer. Return the final answer in \\boxed{} tags, for example \\...
dapo_math
math
{ "ground_truth": "5", "style": "rule" }
{ "index": 82, "split": "train", "solution": "To find all prime numbers \\( p \\) such that both \\( 4p^2 + 1 \\) and \\( 6p^2 + 1 \\) are prime, we analyze the problem using modular arithmetic.\n\nLet \\( A = 4p^2 + 1 \\) and \\( B = 6p^2 + 1 \\). We consider the residues of \\( p^2 \\) modulo 5. For any integer...
[ { "content": "Please solve the following math problem: Find the sum of all positive integers $x$ such that $3 \\times 2^x = n^2 - 1$ for some positive integer $n$.. The assistant first thinks about the reasoning process step by step and then provides the user with the answer. Return the final answer in \\boxed{...
dapo_math
math
{ "ground_truth": "7", "style": "rule" }
{ "index": 83, "split": "train", "solution": "We solve $3 \\cdot 2^x = n^2 - 1 = (n-1)(n+1)$. Let $a = n-1$ and $b = n+1$. Then $b-a=2$ and $ab = 3 \\cdot 2^x$. Since the product is even, both factors are even. Let $a=2u$ and $b=2(u+1)$. Substituting these into the product equation:\n\\[\n(2u)(2u+2) = 3 \\cdot 2^...
[ { "content": "Please solve the following math problem: Let $x$, $y$, $z$ be positive real numbers satisfying the simultaneous equations:\n\\[\n\\begin{align*}\nx(y^2+yz+z^2)&=3y+10z,\\\\\ny(z^2+zx+x^2)&=21z+24x,\\\\\nz(x^2+xy+y^2)&=7x+28y.\n\\end{align*}\n\\]\nFind $xy+yz+zx$.. The assistant first thinks about ...
dapo_math
math
{ "ground_truth": "31", "style": "rule" }
{ "index": 84, "split": "train", "solution": "To find the value of $xy+yz+zx$, we start with the given system of simultaneous equations for positive real numbers $x, y, z$:\n\n1. $x(y^2+yz+z^2) = 3y+10z$\n2. $y(z^2+zx+x^2) = 21z+24x$\n3. $z(x^2+xy+y^2) = 7x+28y$\n\nWe observe that summing these three equations...
[ { "content": "Please solve the following math problem: Let $f(x) = x^3 + ax^2 + bx + c$ have solutions that are distinct negative integers. If $a+b+c = 2014$, find $c$.. The assistant first thinks about the reasoning process step by step and then provides the user with the answer. Return the final answer in \\b...
dapo_math
math
{ "ground_truth": "1440", "style": "rule" }
{ "index": 86, "split": "train", "solution": "Let the distinct negative integer roots of the cubic $f(x) = x^3 + ax^2 + bx + c$ be $r, s, t$. By Vieta's formulas, the coefficients are related to the roots as follows:\n\\[\na = -(r+s+t), \\quad b = rs+rt+st, \\quad c = -rst.\n\\]\nSince the roots are negative inte...
[ { "content": "Please solve the following math problem: Let $\\triangle ABC$ have $AB=9$ and $AC=10$. A semicircle is inscribed in $\\triangle ABC$ with its center on segment $BC$ such that it is tangent to $AB$ at point $D$ and $AC$ at point $E$. If $AD=2DB$ and $r$ is the radius of the semicircle, $r^2$ can be...
dapo_math
math
{ "ground_truth": "415", "style": "rule" }
{ "index": 87, "split": "train", "solution": "Let $B=(0,0)$, $C=(b,0)$, and $A=(x,y)$. Given $AB=9$ and $AC=10$, we have:\n$$x^2 + y^2 = 81$$\n$$(x-b)^2 + y^2 = 100$$\n\nLet the semicircle center be $O=(t,0)$ with radius $r$. The distance from $O$ to line $AB$ is $r$:\n$$r = \\frac{yt}{9} \\implies t = \\frac{9r}...
[ { "content": "Please solve the following math problem: Triangle $ABC$ is right-angled at $A$. The circle with center $A$ and radius $AB$ intersects $BC$ and $AC$ internally at points $D$ and $E$ respectively. Given that $BD = 20$ and $DC = 16$, determine $AC^2$.. The assistant first thinks about the reasoning p...
dapo_math
math
{ "ground_truth": "936", "style": "rule" }
{ "index": 88, "split": "train", "solution": "To solve for $AC^2$ in the right-angled triangle $ABC$ with the right angle at $A$, we can use coordinate geometry. Let the vertex $A$ be at the origin $(0,0)$. Since $\\angle A = 90^\\circ$, we can align the legs of the triangle with the coordinate axes. Let $B = (b,...
[ { "content": "Please solve the following math problem: Petya gave Vasya a number puzzle. Petya chose a digit $X$ and said, \"I am thinking of a three-digit number that is divisible by 11. The hundreds digit is $X$ and the tens digit is 3. Find the units digit.\" Vasya was excited because he knew how to solve th...
dapo_math
math
{ "ground_truth": "4", "style": "rule" }
{ "index": 89, "split": "train", "solution": "We need X such that there's a 3-digit number XYZ where hundreds digit = X, tens =3, units unknown U, divisible by 11. Condition: (X + U) - 3 ≡ 0 mod 11 => X+U-3 ≡0 mod11 => U ≡ 3 - X (mod11). U must be digit 0-9. For each X 1-9 (since three-digit number, hundreds non-...
[ { "content": "Please solve the following math problem: The quadrilateral $ABCD$ satisfies the following conditions: \\( \\angle ABC = \\angle BCD = 150^{\\circ} \\). Additionally, \\( AB = 18 \\) and \\( BC = 24 \\). Equilateral triangles \\( \\triangle APB \\), \\( \\triangle BQC \\), and \\( \\triangle CRD \\...
dapo_math
math
{ "ground_truth": "10", "style": "rule" }
{ "index": 91, "split": "train", "solution": "To determine the length of side $CD$, we analyze the geometry of the constructed equilateral triangles and the given perimeter condition.\n\nFirst, identify the side lengths of the equilateral triangles $\\triangle APB$, $\\triangle BQC$, and $\\triangle CRD$ construc...
[ { "content": "Please solve the following math problem: We are given a coin of diameter $\\frac{1}{2}$ and a checkerboard of $1 \\times 1$ squares with an area of $2010 \\times 2010$. We toss the coin such that it lands completely on the checkerboard. If the probability that the coin doesn't touch any of the lat...
dapo_math
math
{ "ground_truth": "6029", "style": "rule" }
{ "index": 92, "split": "train", "solution": "To solve this problem, we must determine the probability that a coin of diameter $1/2$ lands completely on a $2010 \\times 2010$ checkerboard without touching any lattice lines.\n\nFirst, let's establish the geometric constraints for the center of the coin. The radius...
[ { "content": "Please solve the following math problem: Graph $G_1$ of a quadratic trinomial $y = px^2 + qx + r$ with real coefficients intersects the graph $G_2$ of a quadratic trinomial $y = x^2$ at points $A$ and $B$. The intersection of tangents to $G_2$ at points $A$ and $B$ is point $C$. If $C$ lies on $G_...
dapo_math
math
{ "ground_truth": "2", "style": "rule" }
{ "index": 93, "split": "train", "solution": "Let the intersection points of $G_1: y = px^2 + qx + r$ and $G_2: y = x^2$ be $A(x_1, x_1^2)$ and $B(x_2, x_2^2)$ with $x_1 \\neq x_2$. The abscissas $x_1$ and $x_2$ are the roots of the equation:\n\\[\n(p-1)x^2 + qx + r = 0\n\\]\nLet $S = x_1 + x_2$ and $P = x_1 x_2$...
[ { "content": "Please solve the following math problem: Solve for $x$:\n\\[\nv - w + x - y + z = 79 \\\\\nv + w + x + y + z = -1 \\\\\nv + 2w + 4x + 8y + 16z = -2 \\\\\nv + 3w + 9x + 27y + 81z = -1 \\\\\nv + 5w + 25x + 125y + 625z = 79.\n\\]. The assistant first thinks about the reasoning process step by step an...
dapo_math
math
{ "ground_truth": "24", "style": "rule" }
{ "index": 98, "split": "train", "solution": "We recognize the system as evaluations of a degree-4 polynomial $P(t) = v + wt + xt^2 + yt^3 + zt^4$ at specific points. The equations correspond to:\n$P(-1) = 79$\n$P(1) = -1$\n$P(2) = -2$\n$P(3) = -1$\n$P(5) = 79$\n\nObserving the symmetry of the input values around...
[ { "content": "Please solve the following math problem: You have a 4-digit whole number that is a perfect square. Another number is constructed by making the following changes to the digits of the original number:\n\n1. Add 1 to the unit's digit.\n2. Subtract 1 from the ten's digit.\n3. Add 1 to the hundred's di...
dapo_math
math
{ "ground_truth": "3025", "style": "rule" }
{ "index": 99, "split": "train", "solution": "Let the original 4-digit number be $N$ with digits $a, b, c, d$. The modified number $M$ is formed by subtracting 1 from the thousands digit, adding 1 to the hundreds digit, subtracting 1 from the tens digit, and adding 1 to the units digit. The value of $M$ is:\n\\[\...
[ { "content": "Please solve the following math problem: Given a regular octagon $ABCDEFGH$ with side length $3$. By drawing the four diagonals $AF$, $BE$, $CH$, and $DG$, the octagon is divided into a square, four triangles, and four rectangles. Find the sum of the areas of the square and the four triangles.. Th...
dapo_math
math
{ "ground_truth": "18", "style": "rule" }
{ "index": 102, "split": "train", "solution": "To solve for the sum of the areas of the central square and the four triangles formed by the diagonals in a regular octagon with side length $s=3$, we can utilize the geometric properties of the regular octagon.\n\nA regular octagon can be viewed as a square of side ...
[ { "content": "Please solve the following math problem: The prime numbers $a$, $b$, and $c$ satisfy the equation $a + b^2 = 4c^2$. Determine the sum of all possible values of $a + b + c$.. The assistant first thinks about the reasoning process step by step and then provides the user with the answer. Return the f...
dapo_math
math
{ "ground_truth": "31", "style": "rule" }
{ "index": 103, "split": "train", "solution": "We are given that $a$, $b$, and $c$ are prime numbers satisfying the equation:\n\\[\na + b^2 = 4c^2\n\\]\nRearranging to isolate $a$:\n\\[\na = 4c^2 - b^2 = (2c - b)(2c + b)\n\\]\nSince $a$ is prime, its only positive integer factors are 1 and $a$. Thus, one factor m...
[ { "content": "Please solve the following math problem: Kermit the frog enjoys hopping around the infinite square grid in his backyard. It takes him $1$ Joule of energy to hop one step north or one step south, and $1$ Joule of energy to hop one step east or one step west. He wakes up one morning on the grid with...
dapo_math
math
{ "ground_truth": "10201", "style": "rule" }
{ "index": 108, "split": "train", "solution": "Kermit starts at the origin $(0,0)$ with 100 Joules of energy. Since each hop consumes 1 Joule, he makes exactly 100 unit steps on the integer grid. The possible final positions are lattice points $(x,y)$ reachable by a walk of length 100.\n\nFirst, consider the pari...
[ { "content": "Please solve the following math problem: In a chemistry experiment, a tube contains 100 particles, 68 on the right and 32 on the left. Each second, if there are $a$ particles on the left side of the tube, some number $n$ of these particles move to the right side, where $n \\in \\{0,1,\\dots,a\\}$ ...
dapo_math
math
{ "ground_truth": "102", "style": "rule" }
{ "index": 109, "split": "train", "solution": "We need absorption probability for random walk where each step: from left a particles, choose n uniform 0..a to move right. Similarly from right (100-a) choose m uniform 0..(100-a) to move left. New left count = a - n + m. This is symmetric. This is a martingale? Exp...
[ { "content": "Please solve the following math problem: Let $u$, $v$, and $w$ be real numbers in geometric progression such that $u > v > w$. Suppose $u^{40} = v^n = w^{60}$. Find the value of $n$.. The assistant first thinks about the reasoning process step by step and then provides the user with the answer. Re...
dapo_math
math
{ "ground_truth": "48", "style": "rule" }
{ "index": 112, "split": "train", "solution": "We have u, v, w are in GP: v = ar, u = a, w = a/r? Actually terms decreasing: u > v > w, common ratio r <1. So u = a, v = ar, w = ar^2? Wait three terms GP: v = u * r, w = u * r^2, with 0<r<1. So u = u, v = u r, w = u r^2.\n\nGiven u^40 = v^n = w^60. Write in terms o...
[ { "content": "Please solve the following math problem: Determine all real values of $A$ for which there exist distinct complex numbers $x_1$, $x_2$ such that the following three equations hold:\n\\[\nx_1(x_1+1) = A \\\\\nx_2(x_2+1) = A \\\\\nx_1^4 + 3x_1^3 + 5x_1 = x_2^4 + 3x_2^3 + 5x_2.\n\\]. The assistant fir...
dapo_math
math
{ "ground_truth": "-7", "style": "rule" }
{ "index": 114, "split": "train", "solution": "Let $f(x) = x^4 + 3x^3 + 5x$. The conditions $x_1(x_1+1)=A$ and $x_2(x_2+1)=A$ imply that $x_1$ and $x_2$ are the distinct roots of the quadratic equation:\n\\[ x^2 + x - A = 0. \\]\nBy Vieta's formulas, the sum and product of the roots are:\n\\[ S = x_1 + x_2 = -1, ...
[ { "content": "Please solve the following math problem: Find the smallest positive integer $n$ such that there are at least three distinct ordered pairs $(x,y)$ of positive integers satisfying the equation $x^2 - y^2 = n$.. The assistant first thinks about the reasoning process step by step and then provides the...
dapo_math
math
{ "ground_truth": "45", "style": "rule" }
{ "index": 115, "split": "train", "solution": "To find the smallest positive integer $n$ such that there are at least three distinct ordered pairs $(x,y)$ of positive integers satisfying $x^2 - y^2 = n$, we begin by factoring the left-hand side:\n\\[\nx^2 - y^2 = (x-y)(x+y) = n\n\\]\nLet $a = x-y$ and $b = x+y$. ...
[ { "content": "Please solve the following math problem: A function $f$ is defined on integers such that:\n\n- $f(n) = n + 3$ if $n$ is odd.\n- $f(n) = \\frac{n}{2}$ if $n$ is even.\n\nIf $k$ is an odd integer, determine the values for which $f(f(f(k))) = k$.. The assistant first thinks about the reasoning proces...
dapo_math
math
{ "ground_truth": "1", "style": "rule" }
{ "index": 116, "split": "train", "solution": "To determine the values of the odd integer $k$ for which $f(f(f(k))) = k$, we analyze the function $f$ defined on integers as:\n$$ f(n) = \\begin{cases} n + 3 & \\text{if } n \\text{ is odd} \\\\ \\frac{n}{2} & \\text{if } n \\text{ is even} \\end{cases} $$\n\nLet $k...
[ { "content": "Please solve the following math problem: Let $a, b, c$ be positive integers such that $a, b, c, a+b-c, a+c-b, b+c-a, a+b+c$ are 7 distinct primes. The sum of two of $a, b, c$ is 800. If $d$ is the difference between the largest prime and the smallest prime among these 7 primes, find the maximum va...
dapo_math
math
{ "ground_truth": "1594", "style": "rule" }
{ "index": 117, "split": "train", "solution": "Let the pair of variables summing to 800 be \\(a\\) and \\(b\\), so \\(a+b=800\\). Since 800 is even and \\(a, b\\) are primes, both must be odd. Let \\(\\Delta = b-a\\), which is a positive even integer. We can express \\(a\\) and \\(b\\) as:\n\\[ a = 400 - \\frac{\...
[ { "content": "Please solve the following math problem: 10 students are arranged in a row. Every minute, a new student is inserted in the row (which can occur in the front and in the back as well, hence $11$ possible places) with a uniform $\\frac{1}{11}$ probability of each location. Then, either the frontmost ...
dapo_math
math
{ "ground_truth": "828", "style": "rule" }
{ "index": 118, "split": "train", "solution": "Let $i \\in \\{0, 1, \\dots, 9\\}$ denote the number of students ahead of you after a removal. Since you are the eighth from the front, your initial state is $i_0 = 7$. The row always contains 10 students.\n\nAt each step, a new student is inserted into one of the 11...
[ { "content": "Please solve the following math problem: On a semicircle with diameter $|AB|=d$, there are points $C$ and $D$ such that $|BC|=|CD|=a$ and $|DA|=b$, where $a$, $b$, and $d$ are different positive integers. Find the minimum possible value of $d$.. The assistant first thinks about the reasoning proce...
dapo_math
math
{ "ground_truth": "8", "style": "rule" }
{ "index": 119, "split": "train", "solution": "On a semicircle with diameter $|AB|=d$, points $C$ and $D$ lie on the arc such that the chord lengths are $|BC|=|CD|=a$ and $|DA|=b$. The radius is $R=d/2$. Let the central angles subtended by chords $BC$ and $CD$ be $\\theta$, and the angle for $DA$ be $\\phi$. Sinc...
[ { "content": "Please solve the following math problem: Suppose in the plane, there are 10 pairwise nonparallel lines intersecting one another. What is the maximum possible number of polygons (with finite areas) that can be formed?. The assistant first thinks about the reasoning process step by step and then pro...
dapo_math
math
{ "ground_truth": "36", "style": "rule" }
{ "index": 120, "split": "train", "solution": "We need maximum number of bounded regions formed by n lines in general position (no parallel, no three concurrent). Here 10 lines, pairwise nonparallel, intersect each other, but they may have multiple intersections (no three concurrent? It says intersecting one anot...
[ { "content": "Please solve the following math problem: The average age of the participants in a mathematics competition (gymnasts and high school students) increases by exactly one month if three high school age students $18$ years each are included in the competition or if three gymnasts aged $12$ years each a...
dapo_math
math
{ "ground_truth": "108", "style": "rule" }
{ "index": 121, "split": "train", "solution": "Let $N$ be the initial number of participants and $S$ be the sum of their ages in years. The initial average age is $A = S/N$. The problem states that the average age increases by exactly one month, which is $1/12$ of a year, under two specific conditions.\n\nFirst, ...
[ { "content": "Please solve the following math problem: Let $\\triangle ABC$ be a triangle with $AB=65$, $BC=70$, and $CA=75$. A semicircle $\\Gamma$ with diameter $\\overline{BC}$ is constructed outside the triangle. Suppose there exists a circle $\\omega$ tangent to $AB$ and $AC$ and furthermore internally tan...
dapo_math
math
{ "ground_truth": "76", "style": "rule" }
{ "index": 122, "split": "train", "solution": "Place \\(B=(0,0)\\) and \\(C=(70,0)\\). Using \\(AB=65\\) and \\(AC=75\\), solve for \\(A=(x,y)\\):\n\\[x^2+y^2=4225, \\quad (x-70)^2+y^2=5625\\]\nSubtracting yields \\(x=25\\), so \\(y=60\\). Thus \\(A=(25,60)\\). The semicircle \\(\\Gamma\\) has center \\(O=(35,0)\...
[ { "content": "Please solve the following math problem: A herder has forgotten the number of cows she has and does not want to count all of them. She remembers these four facts about the number of cows:\n\n- It has $3$ digits.\n- It is a palindrome.\n- The middle digit is a multiple of $4$.\n- It is divisible by...
dapo_math
math
{ "ground_truth": "726", "style": "rule" }
{ "index": 123, "split": "train", "solution": "To find the number of cows, let the three-digit palindrome be represented as $ABA$, where $A$ is the first and last digit ($1 \\le A \\le 9$) and $B$ is the middle digit ($0 \\le B \\le 9$).\n\nThe problem provides two main constraints on the digits:\n1. The middle d...
[ { "content": "Please solve the following math problem: Let $q$ be a real number. Gugu has a napkin with ten distinct real numbers written on it, and he writes the following three lines of real numbers on the blackboard:\n- In the first line, Gugu writes down every number of the form $a-b$, where $a$ and $b$ are...
dapo_math
math
{ "ground_truth": "0", "style": "rule" }
{ "index": 127, "split": "train", "solution": "We need condition that set S = {a-b}. That's all differences of 10 numbers => closed under? It's any linear combos? Actually S is all pairwise differences, so it's a symmetric set containing 0. Also closed under addition? Not necessarily. But note that any element of...
[ { "content": "Please solve the following math problem: Find all positive integers $n$ such that $n = 100 \\times d(n)$, where $d(n)$ represents the number of positive divisors of $n$.. The assistant first thinks about the reasoning process step by step and then provides the user with the answer. Return the fina...
dapo_math
math
{ "ground_truth": "2000", "style": "rule" }
{ "index": 129, "split": "train", "solution": "We seek positive integers $n$ such that $n = 100 \\, d(n)$, where $d(n)$ is the number of positive divisors. Let $n = 100k$ for some positive integer $k$. The condition becomes $d(100k) = k$.\n\nSince $100 = 2^2 \\cdot 5^2$, we write the prime factorization of $k$ as...
[ { "content": "Please solve the following math problem: In $\\triangle ABC$, we have $AC = BC = 7$ and $AB = 2$. Suppose that $D$ is a point on line $AB$ such that $B$ lies between $A$ and $D$ and $CD = 8$. What is the length of the segment $BD$?. The assistant first thinks about the reasoning process step by st...
dapo_math
math
{ "ground_truth": "3", "style": "rule" }
{ "index": 130, "split": "train", "solution": "We have triangle ABC with AC=BC=7 isosceles with base AB=2. Place coordinates: Let A at (-1,0), B at (1,0) so AB=2. Then C is somewhere above x-axis with distances to A and B both 7. So compute coordinates: C = (0, h). Since distances: distance to A: sqrt((0+1)^2 + h...
[ { "content": "Please solve the following math problem: Find the number of ordered triplets $(a, b, c)$ of positive integers such that $a < b < c$ and $abc = 2008$.. The assistant first thinks about the reasoning process step by step and then provides the user with the answer. Return the final answer in \\boxed{...
dapo_math
math
{ "ground_truth": "4", "style": "rule" }
{ "index": 131, "split": "train", "solution": "To find the number of ordered triplets $(a, b, c)$ of positive integers such that $a < b < c$ and $abc = 2008$, we begin by determining the prime factorization of 2008.\n\n$$ 2008 = 8 \\times 251 = 2^3 \\times 251^1 $$\n\nThe prime factors are 2 and 251. Since 251 is...
[ { "content": "Please solve the following math problem: Solve in the real numbers the equation $3^{x+1} = (x-1)(x-3)$.. The assistant first thinks about the reasoning process step by step and then provides the user with the answer. Return the final answer in \\boxed{} tags, for example \\boxed{1}. Let's solve th...
dapo_math
math
{ "ground_truth": "0", "style": "rule" }
{ "index": 132, "split": "train", "solution": "To solve the equation $3^{x+1} = (x-1)(x-3)$ in real numbers, we define the function:\n$$ f(x) = 3^{x+1} - (x-1)(x-3) $$\nWe seek the roots of $f(x) = 0$.\n\n**Step 1: Analyze the sign of the right-hand side**\nThe term $(x-1)(x-3)$ is a quadratic expression with roo...
[ { "content": "Please solve the following math problem: Let $f(x) = x^3 + x + 1$. Suppose $g$ is a cubic polynomial such that $g(0) = -1$, and the roots of $g$ are the squares of the roots of $f$. Find $g(9)$.. The assistant first thinks about the reasoning process step by step and then provides the user with th...
dapo_math
math
{ "ground_truth": "899", "style": "rule" }
{ "index": 133, "split": "train", "solution": "Let the roots of \\(f(x) = x^3 + x + 1\\) be \\(r_1, r_2, r_3\\). By Vieta's formulas for the cubic \\(x^3 + 0x^2 + 1x + 1\\), we have:\n\\[\nr_1 + r_2 + r_3 = 0, \\quad r_1 r_2 + r_1 r_3 + r_2 r_3 = 1, \\quad r_1 r_2 r_3 = -1.\n\\]\nThe polynomial \\(g(x)\\) is cubi...
[ { "content": "Please solve the following math problem: A large gathering of people stand in a triangular array with $2020$ rows, such that the first row has $1$ person, the second row has $2$ people, and so on. Every day, the people in each row infect all of the people adjacent to them in their own row. Additio...
dapo_math
math
{ "ground_truth": "2019", "style": "rule" }
{ "index": 134, "split": "train", "solution": "We need max spread time minimal? Two initial infected. Likely distance metric. Triangular grid adjacency as described: within row linear adjacency. Ends also connect to ends of adjacent rows same side (leftmost to leftmost of row+1 and row-1). So graph is like a tree...
[ { "content": "Please solve the following math problem: Willy Wonka has $n$ distinguishable pieces of candy that he wants to split into groups. If the number of ways for him to do this is $p(n)$, then we have the following table:\n\n\\[\n\\begin{array}{|c|c|c|c|c|c|c|c|c|c|c|}\n\\hline\nn & 1 & 2 & 3 & 4 & 5 & 6...
dapo_math
math
{ "ground_truth": "17007", "style": "rule" }
{ "index": 136, "split": "train", "solution": "We need sum over all set partitions of an n-element set of the number of blocks (groups). For n=8. The total number of set partitions is Bell number B_n = p(n) given? Indeed the table matches Bell numbers. For n=8, B_8=4140.\n\nWe need sum_{π ∈ partitions of [n]} (#b...
[ { "content": "Please solve the following math problem: In rectangle $ABCD$, diagonal $AC$ is intersected by the angle bisector from $B$ at point $B'$ and by the angle bisector from $D$ at point $D'$. Similarly, diagonal $BD$ is intersected by the angle bisector from $A$ at point $A'$ and by the angle bisector f...
dapo_math
math
{ "ground_truth": "7", "style": "rule" }
{ "index": 137, "split": "train", "solution": "Let the rectangle $ABCD$ have side lengths $a$ (longer) and $b$ (shorter), with $a \\ge b$. We place the rectangle in the coordinate plane with vertices $A(0,0)$, $B(a,0)$, $C(a,b)$, and $D(0,b)$.\n\nFirst, we determine the coordinates of the points where the angle b...
[ { "content": "Please solve the following math problem: What is the smallest positive integer $n$ such that $2013^n$ ends in $001$? In other words, find the smallest $n$ for which the rightmost three digits of $2013^n$ are $001$.. The assistant first thinks about the reasoning process step by step and then provi...
dapo_math
math
{ "ground_truth": "100", "style": "rule" }
{ "index": 139, "split": "train", "solution": "To find the smallest positive integer $n$ such that $2013^n$ ends in $001$, we solve the congruence:\n$$2013^n \\equiv 1 \\pmod{1000}$$\nSince $2013 \\equiv 13 \\pmod{1000}$, this simplifies to finding the multiplicative order of $13$ modulo $1000$. We decompose $100...
[ { "content": "Please solve the following math problem: Circle $B$, which has radius 2008, is tangent to horizontal line $A$ at point $P$. Circle $C_1$ has radius 1 and is tangent both to circle $B$ and to line $A$ at a point to the right of point $P$. Circle $C_2$ has radius larger than 1 and is tangent to line...
dapo_math
math
{ "ground_truth": "45", "style": "rule" }
{ "index": 142, "split": "train", "solution": "Let $k_B = \\frac{1}{2008}$ be the curvature of circle $B$, and let $k_n = \\frac{1}{r_n}$ be the curvature of circle $C_n$. The line $A$ has curvature $0$. According to the Descartes-Soddy theorem, for three mutually tangent circles with curvatures $k_1, k_2, k_3$ a...
[ { "content": "Please solve the following math problem: There are $25$ towns in a country. Find the smallest $k$ for which one can set up two-direction flight routes connecting these towns so that the following conditions are satisfied:\n1) From each town, there are exactly $k$ direct routes to $k$ other towns.\...
dapo_math
math
{ "ground_truth": "6", "style": "rule" }
{ "index": 143, "split": "train", "solution": "We seek the smallest integer $k$ for which an undirected, simple, $k$-regular graph on $n=25$ vertices exists such that any two non-adjacent vertices share a common neighbor. This condition implies the graph has diameter 2.\n\nFirst, we establish a lower bound for $k...
[ { "content": "Please solve the following math problem: Let $x, y$ be positive integers such that:\n\\[\nx^4 = (x-1)(y^3 - 23) - 1\n\\]\nFind the maximum possible value of $x + y$.. The assistant first thinks about the reasoning process step by step and then provides the user with the answer. Return the final an...
dapo_math
math
{ "ground_truth": "7", "style": "rule" }
{ "index": 144, "split": "train", "solution": "To solve the problem, we start with the given equation involving positive integers $x$ and $y$:\n\\[\nx^4 = (x-1)(y^3 - 23) - 1\n\\]\nFirst, we rearrange the equation to isolate the term involving $y$. Adding 1 to both sides yields:\n\\[\nx^4 + 1 = (x-1)(y^3 - 23)\n\...
[ { "content": "Please solve the following math problem: If the four sides of a quadrilateral are $2$, $3$, $6$, and $x$, find the sum of all possible integral values for $x$.. The assistant first thinks about the reasoning process step by step and then provides the user with the answer. Return the final answer i...
dapo_math
math
{ "ground_truth": "54", "style": "rule" }
{ "index": 145, "split": "train", "solution": "We need possible x such that quadrilateral exists: need triangle inequality for any three sides sum > fourth. So max side < sum of other three. Also each side positive. Given sides 2,3,6,x.\n\nWe need conditions: For each side:\n\nIf x is largest, x < 2+3+6 =11 => x ...
[ { "content": "Please solve the following math problem: Suppose that you are standing in the middle of a $100$ meter long bridge. You take a random sequence of steps either $1$ meter forward or $1$ meter backwards each iteration. At each step, if you are currently at meter $n$, you have a $\\frac{n}{100}$ probab...
dapo_math
math
{ "ground_truth": "2500", "style": "rule" }
{ "index": 146, "split": "train", "solution": "We need expected hitting time for biased random walk with position-dependent probabilities: p_n = n/100 forward, q_n = (100-n)/100 backward. Starting at 50. Need expected time to absorption at 0 or 100. This is gambler's ruin with varying bias. Expected time satisfie...
[ { "content": "Please solve the following math problem: Blue rolls a fair $n$-sided die numbered with integers from $1$ to $n$, and then flips a coin. The coin is weighted to land heads either $\\frac{1}{3}$ or $\\frac{2}{3}$ of the time. Given that the probability of both rolling a $7$ and flipping heads is $\\...
dapo_math
math
{ "ground_truth": "10", "style": "rule" }
{ "index": 147, "split": "train", "solution": "We need interpret the problem. Blue rolls a fair n-sided die numbered 1 to n, then flips a weighted coin. The coin's probability of heads is either 1/3 or 2/3 (i.e., one of those two possibilities, unknown which). Given that the probability of both rolling a 7 and fl...
[ { "content": "Please solve the following math problem: A positive integer is called *Tiranian* if it can be written as $x^2 + 6xy + y^2$, where $x$ and $y$ are (not necessarily distinct) positive integers. The integer $36^{2023}$ is written as the sum of $k$ Tiranian integers. What is the smallest possible valu...
dapo_math
math
{ "ground_truth": "2", "style": "rule" }
{ "index": 148, "split": "train", "solution": "A positive integer is Tiranian if it can be written as \\(x^2 + 6xy + y^2\\) for positive integers \\(x, y\\). Let \\(Q(x, y) = x^2 + 6xy + y^2\\). We seek the smallest \\(k\\) such that \\(36^{2023}\\) is the sum of \\(k\\) Tiranian integers.\n\nFirst, we establish ...