problem
stringlengths
14
7.96k
solution
stringlengths
3
10k
answer
stringlengths
1
91
problem_is_valid
stringclasses
1 value
solution_is_valid
stringclasses
1 value
question_type
stringclasses
1 value
problem_type
stringclasses
8 values
problem_raw
stringlengths
14
7.96k
solution_raw
stringlengths
3
10k
metadata
dict
uuid
stringlengths
36
36
id
int64
22.6k
612k
Let $A_{1}, A_{2}, A_{3}$ be three points in the plane, and for convenience,let $A_{4}=A_{1}, A_{5}=A_{2}$. For $n=1,2$, and 3 , suppose that $B_{n}$ is the midpoint of $A_{n} A_{n+1}$, and suppose that $C_{n}$ is the midpoint of $A_{n} B_{n}$. Suppose that $A_{n} C_{n+1}$ and $B_{n} A_{n+2}$ meet at $D_{n}$, and that $A_{n} B_{n+1}$ and $C_{n} A_{n+2}$ meet at $E_{n}$. Calculate the ratio of the area of triangle $D_{1} D_{2} D_{3}$ to the area of triangle $E_{1} E_{2} E_{3}$.
Let $G$ be the centroid of triangle $A B C$, and also the intersection point of $A_{1} B_{2}, A_{2} B_{3}$, and $A_{3} B_{1}$ 。 ![](https://cdn.mathpix.com/cropped/2024_11_22_831b46bbbb7a3a492868g-3.jpg?height=441&width=449&top_left_y=750&top_left_x=769) By Menelao's theorem on triangle $B_{1} A_{2} A_{3}$ and line $A_{1} D_{1} C_{2}$, $$ \frac{A_{1} B_{1}}{A_{1} A_{2}} \cdot \frac{D_{1} A_{3}}{D_{1} B_{1}} \cdot \frac{C_{2} A_{2}}{C_{2} A_{3}}=1 \Longleftrightarrow \frac{D_{1} A_{3}}{D_{1} B_{1}}=2 \cdot 3=6 \Longleftrightarrow \frac{D_{1} B_{1}}{A_{3} B_{1}}=\frac{1}{7} $$ Since $A_{3} G=\frac{2}{3} A_{3} B_{1}$, if $A_{3} B_{1}=21 t$ then $G A_{3}=14 t, D_{1} B_{1}=\frac{21 t}{7}=3 t, A_{3} D_{1}=18 t$, and $G D_{1}=A_{3} D_{1}-A_{3} G=18 t-14 t=4 t$, and $$ \frac{G D_{1}}{G A_{3}}=\frac{4}{14}=\frac{2}{7} $$ Similar results hold for the other medians, therefore $D_{1} D_{2} D_{3}$ and $A_{1} A_{2} A_{3}$ are homothetic with center $G$ and ratio $-\frac{2}{7}$. By Menelao's theorem on triangle $A_{1} A_{2} B_{2}$ and line $C_{1} E_{1} A_{3}$, $$ \frac{C_{1} A_{1}}{C_{1} A_{2}} \cdot \frac{E_{1} B_{2}}{E_{1} A_{1}} \cdot \frac{A_{3} A_{2}}{A_{3} B_{2}}=1 \Longleftrightarrow \frac{E_{1} B_{2}}{E_{1} A_{1}}=3 \cdot \frac{1}{2}=\frac{3}{2} \Longleftrightarrow \frac{A_{1} E_{1}}{A_{1} B_{2}}=\frac{2}{5} $$ If $A_{1} B_{2}=15 u$, then $A_{1} G=\frac{2}{3} \cdot 15 u=10 u$ and $G E_{1}=A_{1} G-A_{1} E_{1}=10 u-\frac{2}{5} \cdot 15 u=4 u$, and $$ \frac{G E_{1}}{G A_{1}}=\frac{4}{10}=\frac{2}{5} $$ Similar results hold for the other medians, therefore $E_{1} E_{2} E_{3}$ and $A_{1} A_{2} A_{3}$ are homothetic with center $G$ and ratio $\frac{2}{5}$. Then $D_{1} D_{2} D_{3}$ and $E_{1} E_{2} E_{3}$ are homothetic with center $G$ and ratio $-\frac{2}{7}: \frac{2}{5}=-\frac{5}{7}$, and the ratio of their area is $\left(\frac{5}{7}\right)^{2}=\frac{25}{49}$.
\frac{25}{49}
Yes
Yes
math-word-problem
Geometry
Let $A_{1}, A_{2}, A_{3}$ be three points in the plane, and for convenience,let $A_{4}=A_{1}, A_{5}=A_{2}$. For $n=1,2$, and 3 , suppose that $B_{n}$ is the midpoint of $A_{n} A_{n+1}$, and suppose that $C_{n}$ is the midpoint of $A_{n} B_{n}$. Suppose that $A_{n} C_{n+1}$ and $B_{n} A_{n+2}$ meet at $D_{n}$, and that $A_{n} B_{n+1}$ and $C_{n} A_{n+2}$ meet at $E_{n}$. Calculate the ratio of the area of triangle $D_{1} D_{2} D_{3}$ to the area of triangle $E_{1} E_{2} E_{3}$. Answer: $\frac{25}{49}$.
Let $G$ be the centroid of triangle $A B C$, and also the intersection point of $A_{1} B_{2}, A_{2} B_{3}$, and $A_{3} B_{1}$ 。 ![](https://cdn.mathpix.com/cropped/2024_11_22_831b46bbbb7a3a492868g-3.jpg?height=441&width=449&top_left_y=750&top_left_x=769) By Menelao's theorem on triangle $B_{1} A_{2} A_{3}$ and line $A_{1} D_{1} C_{2}$, $$ \frac{A_{1} B_{1}}{A_{1} A_{2}} \cdot \frac{D_{1} A_{3}}{D_{1} B_{1}} \cdot \frac{C_{2} A_{2}}{C_{2} A_{3}}=1 \Longleftrightarrow \frac{D_{1} A_{3}}{D_{1} B_{1}}=2 \cdot 3=6 \Longleftrightarrow \frac{D_{1} B_{1}}{A_{3} B_{1}}=\frac{1}{7} $$ Since $A_{3} G=\frac{2}{3} A_{3} B_{1}$, if $A_{3} B_{1}=21 t$ then $G A_{3}=14 t, D_{1} B_{1}=\frac{21 t}{7}=3 t, A_{3} D_{1}=18 t$, and $G D_{1}=A_{3} D_{1}-A_{3} G=18 t-14 t=4 t$, and $$ \frac{G D_{1}}{G A_{3}}=\frac{4}{14}=\frac{2}{7} $$ Similar results hold for the other medians, therefore $D_{1} D_{2} D_{3}$ and $A_{1} A_{2} A_{3}$ are homothetic with center $G$ and ratio $-\frac{2}{7}$. By Menelao's theorem on triangle $A_{1} A_{2} B_{2}$ and line $C_{1} E_{1} A_{3}$, $$ \frac{C_{1} A_{1}}{C_{1} A_{2}} \cdot \frac{E_{1} B_{2}}{E_{1} A_{1}} \cdot \frac{A_{3} A_{2}}{A_{3} B_{2}}=1 \Longleftrightarrow \frac{E_{1} B_{2}}{E_{1} A_{1}}=3 \cdot \frac{1}{2}=\frac{3}{2} \Longleftrightarrow \frac{A_{1} E_{1}}{A_{1} B_{2}}=\frac{2}{5} $$ If $A_{1} B_{2}=15 u$, then $A_{1} G=\frac{2}{3} \cdot 15 u=10 u$ and $G E_{1}=A_{1} G-A_{1} E_{1}=10 u-\frac{2}{5} \cdot 15 u=4 u$, and $$ \frac{G E_{1}}{G A_{1}}=\frac{4}{10}=\frac{2}{5} $$ Similar results hold for the other medians, therefore $E_{1} E_{2} E_{3}$ and $A_{1} A_{2} A_{3}$ are homothetic with center $G$ and ratio $\frac{2}{5}$. Then $D_{1} D_{2} D_{3}$ and $E_{1} E_{2} E_{3}$ are homothetic with center $G$ and ratio $-\frac{2}{7}: \frac{2}{5}=-\frac{5}{7}$, and the ratio of their area is $\left(\frac{5}{7}\right)^{2}=\frac{25}{49}$.
{ "resource_path": "APMO/segmented/en-apmo1989_sol.jsonl", "problem_match": "# Problem 3", "solution_match": "\nSolution\n" }
83c5357e-cc64-51e7-8925-9bd682bff7b7
604,178
Find the total number of different integer values the function $$ f(x)=[x]+[2 x]+\left[\frac{5 x}{3}\right]+[3 x]+[4 x] $$ takes for real numbers $x$ with $0 \leq x \leq 100$. Note: $[t]$ is the largest integer that does not exceed $t$.
Note that, since $[x+n]=[x]+n$ for any integer $n$, $$ f(x+3)=[x+3]+[2(x+3)]+\left[\frac{5(x+3)}{3}\right]+[3(x+3)]+[4(x+3)]=f(x)+35, $$ one only needs to investigate the interval $[0,3)$. The numbers in this interval at which at least one of the real numbers $x, 2 x, \frac{5 x}{3}, 3 x, 4 x$ is an integer are - $0,1,2$ for $x$; - $\frac{n}{2}, 0 \leq n \leq 5$ for $2 x$; - $\frac{3 n}{5}, 0 \leq n \leq 4$ for $\frac{5 x}{3}$; - $\frac{n}{3}, 0 \leq n \leq 8$ for $3 x$; - $\frac{n}{4}, 0 \leq n \leq 11$ for $4 x$. Of these numbers there are - 3 integers $(0,1,2)$; - 3 irreducible fractions with 2 as denominator (the numerators are $1,3,5$ ); - 6 irreducible fractions with 3 as denominator (the numerators are $1,2,4,5,7,8$ ); - 6 irreducible fractions with 4 as denominator (the numerators are $1,3,5,7,9,11,13,15$ ); - 4 irreducible fractions with 5 as denominator (the numerators are 3,6,9,12). Therefore $f(x)$ increases 22 times per interval. Since $100=33 \cdot 3+1$, there are $33 \cdot 22$ changes of value in $[0,99)$. Finally, there are 8 more changes in [99,100]: 99, 100, $99 \frac{1}{2}, 99 \frac{1}{3}, 99 \frac{2}{3}, 99 \frac{1}{4}$, $99 \frac{3}{4}, 99 \frac{3}{5}$. The total is then $33 \cdot 22+8=734$. Comment: A more careful inspection shows that the range of $f$ are the numbers congruent modulo 35 to one of $$ 0,1,2,4,5,6,7,11,12,13,14,16,17,18,19,23,24,25,26,28,29,30 $$ in the interval $[0, f(100)]=[0,1166]$. Since $1166 \equiv 11(\bmod 35)$, this comprises 33 cycles plus the 8 numbers in the previous list.
734
Yes
Yes
math-word-problem
Number Theory
Find the total number of different integer values the function $$ f(x)=[x]+[2 x]+\left[\frac{5 x}{3}\right]+[3 x]+[4 x] $$ takes for real numbers $x$ with $0 \leq x \leq 100$. Note: $[t]$ is the largest integer that does not exceed $t$. Answer: 734.
Note that, since $[x+n]=[x]+n$ for any integer $n$, $$ f(x+3)=[x+3]+[2(x+3)]+\left[\frac{5(x+3)}{3}\right]+[3(x+3)]+[4(x+3)]=f(x)+35, $$ one only needs to investigate the interval $[0,3)$. The numbers in this interval at which at least one of the real numbers $x, 2 x, \frac{5 x}{3}, 3 x, 4 x$ is an integer are - $0,1,2$ for $x$; - $\frac{n}{2}, 0 \leq n \leq 5$ for $2 x$; - $\frac{3 n}{5}, 0 \leq n \leq 4$ for $\frac{5 x}{3}$; - $\frac{n}{3}, 0 \leq n \leq 8$ for $3 x$; - $\frac{n}{4}, 0 \leq n \leq 11$ for $4 x$. Of these numbers there are - 3 integers $(0,1,2)$; - 3 irreducible fractions with 2 as denominator (the numerators are $1,3,5$ ); - 6 irreducible fractions with 3 as denominator (the numerators are $1,2,4,5,7,8$ ); - 6 irreducible fractions with 4 as denominator (the numerators are $1,3,5,7,9,11,13,15$ ); - 4 irreducible fractions with 5 as denominator (the numerators are 3,6,9,12). Therefore $f(x)$ increases 22 times per interval. Since $100=33 \cdot 3+1$, there are $33 \cdot 22$ changes of value in $[0,99)$. Finally, there are 8 more changes in [99,100]: 99, 100, $99 \frac{1}{2}, 99 \frac{1}{3}, 99 \frac{2}{3}, 99 \frac{1}{4}$, $99 \frac{3}{4}, 99 \frac{3}{5}$. The total is then $33 \cdot 22+8=734$. Comment: A more careful inspection shows that the range of $f$ are the numbers congruent modulo 35 to one of $$ 0,1,2,4,5,6,7,11,12,13,14,16,17,18,19,23,24,25,26,28,29,30 $$ in the interval $[0, f(100)]=[0,1166]$. Since $1166 \equiv 11(\bmod 35)$, this comprises 33 cycles plus the 8 numbers in the previous list.
{ "resource_path": "APMO/segmented/en-apmo1993_sol.jsonl", "problem_match": "# Problem 2", "solution_match": "# Solution\n\n" }
bd5d8315-f23a-5686-b090-d21bea91e8e5
604,509
Find the smallest positive integer $n$ with the following property : There does not exist an arithmetic progression of 1993 terms of real numbers containing exactly $n$ integers.
and Marking Scheme: We first note that the integer terms of any arithmetic progression are "equally spaced", because if the $i$ th term $a_{i}$ and the $(i+j)$ th term $a_{i+j}$ of an arithmetic progression are both integers, then so is the $(i+2 j)$ th term $a_{i+2 j}=a_{i+j}+\left(a_{i+j}-a_{i}\right)$. 1 POINT for realizing that the integers must be "equally spaced". Thus, by scaling and translation, we can assume that the integer terms of the arithmetic progression are $1,2, \cdots, n$ and we need only to consider arithmetic progression of the form $$ 1,1+\frac{1}{k}, 1+\frac{2}{k}, \cdots, 1+\frac{k-1}{k}, 2,2+\frac{1}{k}, \cdots, n-1, \cdots, n-1+\frac{k-1}{k}, n $$ This has $k n-k+1$ terms of which exactly $n$ are integers. Moreover we can add up to $k-1$ terms on either end and get another arithmetic progression without changing the number of integer terms. 2 POINTS for noticing that the maximal sequence has an equal number of terms on either side of the integers appearing in the sequence (this includes the 1 POINT above). In other words, 2 POINTS for the scaled and translated form of the progression including the $k-1$ terms on either side. Thus there are arithmetic progressions with $n$ integers whose length is any integer lying in the interval $[k n-k+1, k n+k-1]$, where $k$ is any positive integer. Thus we want to find the smallest $n>0$ so that, if $k$ is the largest integer satisfying $k n+k-1 \leq 1998$, then $(k+1) n-(k+1)+1 \geq 2000$. 4 POINTS for clarifying the nature of the number $n$ in this way, which includes counting the terms of the maximal and minimal sequences containing $n$ integers and bounding them accordingly (this includes the 2 POINTS above). That is, putting $k=\lfloor 1999 /(n+1)\rfloor$, we want the smallest integer $n$ so that $$ \left\lfloor\frac{1999}{n+1}\right\rfloor(n-1)+n \geq 2000 $$ This inequality does not hold if $$ \frac{1999}{n+1} \cdot(n-1)+n<2000 $$ 2 POINTS for setting up an inequality for $n$. This simplifies to $n^{2}<3999$, that is, $n \leq 63$. Now we check integers from $n=64$ on: $$ \begin{aligned} & \text { for } n=64,\left\lfloor\frac{1999}{65}\right\rfloor \cdot 63+64=30 \cdot 63+64=1954<2000 ; \\ & \text { for } n=65,\left\lfloor\frac{1999}{66}\right\rfloor \cdot 64+65=30 \cdot 64+65=1985<2000 ; \\ & \text { for } n=66,\left\lfloor\frac{1999}{67}\right\rfloor \cdot 65+66=29 \cdot 65+66=1951<2000 ; \\ & \text { for } n=67,\left\lfloor\left\lfloor\frac{1999}{68}\right\rfloor \cdot 66+67=29 \cdot 66+67=1981<2000 ;\right. \\ & \text { for } n=68,\left\lfloor\frac{1999}{69}\right\rfloor \cdot 67+68=28 \cdot 67+68=1944<2000 ; \\ & \text { for } n=69,\left\lfloor\frac{1999}{70}\right\rfloor \cdot 68+69=28 \cdot 68+69=1973<2000 ; \\ & \text { for } n=70,\left\lfloor\frac{1999}{71}\right\rfloor \cdot 69+70=28 \cdot 69+70=2002 \geq 2000 . \end{aligned} $$ Thus the answer is $n=70$. 1.POINT for checking these rumbers and finding that $n=70$.
70
Yes
Yes
math-word-problem
Number Theory
Find the smallest positive integer $n$ with the following property : There does not exist an arithmetic progression of 1993 terms of real numbers containing exactly $n$ integers.
and Marking Scheme: We first note that the integer terms of any arithmetic progression are "equally spaced", because if the $i$ th term $a_{i}$ and the $(i+j)$ th term $a_{i+j}$ of an arithmetic progression are both integers, then so is the $(i+2 j)$ th term $a_{i+2 j}=a_{i+j}+\left(a_{i+j}-a_{i}\right)$. 1 POINT for realizing that the integers must be "equally spaced". Thus, by scaling and translation, we can assume that the integer terms of the arithmetic progression are $1,2, \cdots, n$ and we need only to consider arithmetic progression of the form $$ 1,1+\frac{1}{k}, 1+\frac{2}{k}, \cdots, 1+\frac{k-1}{k}, 2,2+\frac{1}{k}, \cdots, n-1, \cdots, n-1+\frac{k-1}{k}, n $$ This has $k n-k+1$ terms of which exactly $n$ are integers. Moreover we can add up to $k-1$ terms on either end and get another arithmetic progression without changing the number of integer terms. 2 POINTS for noticing that the maximal sequence has an equal number of terms on either side of the integers appearing in the sequence (this includes the 1 POINT above). In other words, 2 POINTS for the scaled and translated form of the progression including the $k-1$ terms on either side. Thus there are arithmetic progressions with $n$ integers whose length is any integer lying in the interval $[k n-k+1, k n+k-1]$, where $k$ is any positive integer. Thus we want to find the smallest $n>0$ so that, if $k$ is the largest integer satisfying $k n+k-1 \leq 1998$, then $(k+1) n-(k+1)+1 \geq 2000$. 4 POINTS for clarifying the nature of the number $n$ in this way, which includes counting the terms of the maximal and minimal sequences containing $n$ integers and bounding them accordingly (this includes the 2 POINTS above). That is, putting $k=\lfloor 1999 /(n+1)\rfloor$, we want the smallest integer $n$ so that $$ \left\lfloor\frac{1999}{n+1}\right\rfloor(n-1)+n \geq 2000 $$ This inequality does not hold if $$ \frac{1999}{n+1} \cdot(n-1)+n<2000 $$ 2 POINTS for setting up an inequality for $n$. This simplifies to $n^{2}<3999$, that is, $n \leq 63$. Now we check integers from $n=64$ on: $$ \begin{aligned} & \text { for } n=64,\left\lfloor\frac{1999}{65}\right\rfloor \cdot 63+64=30 \cdot 63+64=1954<2000 ; \\ & \text { for } n=65,\left\lfloor\frac{1999}{66}\right\rfloor \cdot 64+65=30 \cdot 64+65=1985<2000 ; \\ & \text { for } n=66,\left\lfloor\frac{1999}{67}\right\rfloor \cdot 65+66=29 \cdot 65+66=1951<2000 ; \\ & \text { for } n=67,\left\lfloor\left\lfloor\frac{1999}{68}\right\rfloor \cdot 66+67=29 \cdot 66+67=1981<2000 ;\right. \\ & \text { for } n=68,\left\lfloor\frac{1999}{69}\right\rfloor \cdot 67+68=28 \cdot 67+68=1944<2000 ; \\ & \text { for } n=69,\left\lfloor\frac{1999}{70}\right\rfloor \cdot 68+69=28 \cdot 68+69=1973<2000 ; \\ & \text { for } n=70,\left\lfloor\frac{1999}{71}\right\rfloor \cdot 69+70=28 \cdot 69+70=2002 \geq 2000 . \end{aligned} $$ Thus the answer is $n=70$. 1.POINT for checking these rumbers and finding that $n=70$.
{ "resource_path": "APMO/segmented/en-apmo1999_sol.jsonl", "problem_match": "\nProblem 1.", "solution_match": "\nSolution " }
2b064b65-5764-50a4-aaaf-18dcc2829667
604,646
Compute the sum $S=\sum_{i=0}^{101} \frac{x_{i}^{3}}{1-3 x_{i}+3 x_{i}^{2}}$ for $x_{i}=\frac{i}{101}$.
Since $x_{101-i}=\frac{101-i}{101}=1-\frac{i}{101}=1-x_{i}$ and $$ 1-3 x_{i}+3 x_{i}^{2}=\left(1-3 x_{i}+3 x_{i}^{2}-x_{i}^{3}\right)+x_{i}^{3}=\left(1-x_{i}\right)^{3}+x_{i}^{3}=x_{101-i}^{3}+x_{i}^{3}, $$ we have, by replacing $i$ by $101-i$ in the second sum, $$ 2 S=S+S=\sum_{i=0}^{101} \frac{x_{i}^{3}}{x_{101-i}^{3}+x_{i}^{3}}+\sum_{i=0}^{101} \frac{x_{101-i}^{3}}{x_{i}^{3}+x_{101-i}^{3}}=\sum_{i=0}^{101} \frac{x_{i}^{3}+x_{101-i}^{3}}{x_{101-i}^{3}+x_{i}^{3}}=102, $$ so $S=51$.
51
Yes
Yes
math-word-problem
Algebra
Compute the sum $S=\sum_{i=0}^{101} \frac{x_{i}^{3}}{1-3 x_{i}+3 x_{i}^{2}}$ for $x_{i}=\frac{i}{101}$. Answer: $S=51$.
Since $x_{101-i}=\frac{101-i}{101}=1-\frac{i}{101}=1-x_{i}$ and $$ 1-3 x_{i}+3 x_{i}^{2}=\left(1-3 x_{i}+3 x_{i}^{2}-x_{i}^{3}\right)+x_{i}^{3}=\left(1-x_{i}\right)^{3}+x_{i}^{3}=x_{101-i}^{3}+x_{i}^{3}, $$ we have, by replacing $i$ by $101-i$ in the second sum, $$ 2 S=S+S=\sum_{i=0}^{101} \frac{x_{i}^{3}}{x_{101-i}^{3}+x_{i}^{3}}+\sum_{i=0}^{101} \frac{x_{101-i}^{3}}{x_{i}^{3}+x_{101-i}^{3}}=\sum_{i=0}^{101} \frac{x_{i}^{3}+x_{101-i}^{3}}{x_{101-i}^{3}+x_{i}^{3}}=102, $$ so $S=51$.
{ "resource_path": "APMO/segmented/en-apmo2000_sol.jsonl", "problem_match": "# Problem 1", "solution_match": "# Solution\n\n" }
9b4fe559-cb6b-5f2d-b86c-bacaacc657cb
604,724
Let $a, b, c, d, e, f$ be real numbers such that the polynomial $$ p(x)=x^{8}-4 x^{7}+7 x^{6}+a x^{5}+b x^{4}+c x^{3}+d x^{2}+e x+f $$ factorises into eight linear factors $x-x_{i}$, with $x_{i}>0$ for $i=1,2, \ldots, 8$. Determine all possible values of $f$.
From $$ x^{8}-4 x^{7}+7 x^{6}+a x^{5}+b x^{4}+c x^{3}+d x^{2}+e x+f=\left(x-x_{1}\right)\left(x-x_{2}\right) \ldots\left(x-x_{8}\right) $$ we have $$ \sum_{i=1}^{8} x_{i}=4 \quad \text { and } \quad \sum x_{i} x_{j}=7 $$ where the second sum is over all pairs $(i, j)$ of integers where $1 \leq i<j \leq 8$. Since this sum can also be written $$ \frac{1}{2}\left[\left(\sum_{i=1}^{8} x_{i}\right)^{2}-\sum_{i=1}^{8} x_{i}^{2}\right] $$ we get $$ 14=\left(\sum_{i=1}^{8} x_{i}\right)^{2}-\sum_{i=1}^{8} x_{i}^{2}=16-\sum_{i=1}^{8} x_{i}^{2} $$ so $$ \sum_{i=1}^{8} x_{i}^{2}=2 \quad \text { while } \quad \sum_{i=1}^{8} x_{i}=4 . \quad[3 \text { marks }] $$ Now $$ \sum_{i=1}^{8}\left(2 x_{i}-1\right)^{2}=4 \sum_{i=1}^{8} x_{i}^{2}-4 \sum_{i=1}^{8} x_{i}+8=4(2)-4(4)+8=0 $$ which forces $x_{i}=1 / 2$ for all $i$. [3 marks] Therefore $$ f=\prod_{i=1}^{8} x_{i}=\left(\frac{1}{2}\right)^{8}=\frac{1}{256} . \quad[1 m x] $$ Alternate solution: After obtaining (1) [3 marks], use Cauchy's inequality to get $$ 16=\left(x_{1} \cdot 1+x_{2} \cdot 1+\cdots+x_{8} \cdot 1\right)^{2} \leq\left(x_{1}^{2-}+x_{2}^{2}+\cdots+x_{8}^{2}\right)\left(1^{2}+1^{2}+\cdots+1^{2}\right)=8 \cdot 2=16 $$ or the power mean inequality to get $$ \frac{1}{2}=\frac{1}{8} \sum_{i=1}^{8} x_{i} \leq\left(\frac{1}{8} \sum_{i=1}^{8} x_{i}^{2}\right)^{1 / 2}=\frac{1}{2} . \quad[2 \text { marks }] $$ Either way, equality must hold, which can only happen if all the terms $x_{i}$ are equal, that is, if $x_{i}=1 / 2$ for all $i$. [1 mark] Thus $f=1 / 256$ as above. [ 1 mark]
\frac{1}{256}
Yes
Yes
math-word-problem
Algebra
Let $a, b, c, d, e, f$ be real numbers such that the polynomial $$ p(x)=x^{8}-4 x^{7}+7 x^{6}+a x^{5}+b x^{4}+c x^{3}+d x^{2}+e x+f $$ factorises into eight linear factors $x-x_{i}$, with $x_{i}>0$ for $i=1,2, \ldots, 8$. Determine all possible values of $f$.
From $$ x^{8}-4 x^{7}+7 x^{6}+a x^{5}+b x^{4}+c x^{3}+d x^{2}+e x+f=\left(x-x_{1}\right)\left(x-x_{2}\right) \ldots\left(x-x_{8}\right) $$ we have $$ \sum_{i=1}^{8} x_{i}=4 \quad \text { and } \quad \sum x_{i} x_{j}=7 $$ where the second sum is over all pairs $(i, j)$ of integers where $1 \leq i<j \leq 8$. Since this sum can also be written $$ \frac{1}{2}\left[\left(\sum_{i=1}^{8} x_{i}\right)^{2}-\sum_{i=1}^{8} x_{i}^{2}\right] $$ we get $$ 14=\left(\sum_{i=1}^{8} x_{i}\right)^{2}-\sum_{i=1}^{8} x_{i}^{2}=16-\sum_{i=1}^{8} x_{i}^{2} $$ so $$ \sum_{i=1}^{8} x_{i}^{2}=2 \quad \text { while } \quad \sum_{i=1}^{8} x_{i}=4 . \quad[3 \text { marks }] $$ Now $$ \sum_{i=1}^{8}\left(2 x_{i}-1\right)^{2}=4 \sum_{i=1}^{8} x_{i}^{2}-4 \sum_{i=1}^{8} x_{i}+8=4(2)-4(4)+8=0 $$ which forces $x_{i}=1 / 2$ for all $i$. [3 marks] Therefore $$ f=\prod_{i=1}^{8} x_{i}=\left(\frac{1}{2}\right)^{8}=\frac{1}{256} . \quad[1 m x] $$ Alternate solution: After obtaining (1) [3 marks], use Cauchy's inequality to get $$ 16=\left(x_{1} \cdot 1+x_{2} \cdot 1+\cdots+x_{8} \cdot 1\right)^{2} \leq\left(x_{1}^{2-}+x_{2}^{2}+\cdots+x_{8}^{2}\right)\left(1^{2}+1^{2}+\cdots+1^{2}\right)=8 \cdot 2=16 $$ or the power mean inequality to get $$ \frac{1}{2}=\frac{1}{8} \sum_{i=1}^{8} x_{i} \leq\left(\frac{1}{8} \sum_{i=1}^{8} x_{i}^{2}\right)^{1 / 2}=\frac{1}{2} . \quad[2 \text { marks }] $$ Either way, equality must hold, which can only happen if all the terms $x_{i}$ are equal, that is, if $x_{i}=1 / 2$ for all $i$. [1 mark] Thus $f=1 / 256$ as above. [ 1 mark]
{ "resource_path": "APMO/segmented/en-apmo2003_sol.jsonl", "problem_match": "\n1. ", "solution_match": "# Solution." }
c13852dc-b4a2-516c-ba98-28de916b4f95
607,119
In a small town, there are $n \times n$ houses indexed by $(i, j)$ for $1 \leq i, j \leq n$ with $(1,1)$ being the house at the top left corner, where $i$ and $j$ are the row and column indices, respectively. At time 0 , a fire breaks out at the house indexed by $(1, c)$, where $c \leq \frac{n}{2}$. During each subsequent time interval $[t, t+1]$, the fire fighters defend a house which is not yet on fire while the fire spreads to all undefended neighbors of each house which was on fire at time $t$. Once a house is defended, it remains so all the time. The process ends when the fire can no longer spread. At most how many houses can be saved by the fire fighters? A house indexed by $(i, j)$ is a neighbor of a house indexed by $(k, \ell)$ if $|i-k|+|j-\ell|=1$.
At most $n^{2}+c^{2}-n c-c$ houses can be saved. This can be achieved under the following order of defending: $$ \begin{gathered} (2, c),(2, c+1) ;(3, c-1),(3, c+2) ;(4, c-2),(4, c+3) ; \ldots \\ (c+1,1),(c+1,2 c) ;(c+1,2 c+1), \ldots,(c+1, n) \end{gathered} $$ Under this strategy, there are 2 columns (column numbers $c, c+1$ ) at which $n-1$ houses are saved 2 columns (column numbers $c-1, c+2$ ) at which $n-2$ houses are saved ... 2 columns (column numbers $1,2 c$ ) at which $n-c$ houses are saved $n-2 c$ columns (column numbers $n-2 c+1, \ldots, n$ ) at which $n-c$ houses are saved Adding all these we obtain : $$ 2[(n-1)+(n-2)+\cdots+(n-c)]+(n-2 c)(n-c)=n^{2}+c^{2}-c n-c $$ We say that a house indexed by $(i, j)$ is at level $t$ if $|i-1|+|j-c|=t$. Let $d(t)$ be the number of houses at level $t$ defended by time $t$, and $p(t)$ be the number of houses at levels greater than $t$ defended by time $t$. It is clear that $$ p(t)+\sum_{i=1}^{t} d(i) \leq t \text { and } p(t+1)+d(t+1) \leq p(t)+1 $$ Let $s(t)$ be the number of houses at level $t$ which are not burning at time $t$. We prove that $$ s(t) \leq t-p(t) \leq t $$ for $1 \leq t \leq n-1$ by induction. It is obvious when $t=1$. Assume that it is true for $t=k$. The union of the neighbors of any $k-p(k)+1$ houses at level $k+1$ contains at least $k-p(k)+1$ vertices at level $k$. Since $s(k) \leq k-p(k)$, one of these houses at level $k$ is burning. Therefore, at most $k-p(k)$ houses at level $k+1$ have no neighbor burning. Hence we have $$ \begin{aligned} s(k+1) & \leq k-p(k)+d(k+1) \\ & =(k+1)-(p(k)+1-d(k+1)) \\ & \leq(k+1)-p(k+1) \end{aligned} $$ We now prove that the strategy given above is optimal. Since $$ \sum_{t=1}^{n-1} s(t) \leq\binom{ n}{2} $$ the maximum number of houses at levels less than or equal to $n-1$, that can be saved under any strategy is at most $\binom{n}{2}$, which is realized by the strategy above. Moreover, at levels bigger than $n-1$, every house is saved under the strategy above. The following is an example when $n=11$ and $c=4$. The houses with $\bigcirc$ mark are burned. The houses with $\otimes$ mark are blocked ones and hence those and the houses below them are saved. ![](https://cdn.mathpix.com/cropped/2024_11_22_4451135f73c37463c161g-5.jpg?height=1023&width=1055&top_left_y=1055&top_left_x=519)
n^{2}+c^{2}-n c-c
Yes
Yes
math-word-problem
Combinatorics
In a small town, there are $n \times n$ houses indexed by $(i, j)$ for $1 \leq i, j \leq n$ with $(1,1)$ being the house at the top left corner, where $i$ and $j$ are the row and column indices, respectively. At time 0 , a fire breaks out at the house indexed by $(1, c)$, where $c \leq \frac{n}{2}$. During each subsequent time interval $[t, t+1]$, the fire fighters defend a house which is not yet on fire while the fire spreads to all undefended neighbors of each house which was on fire at time $t$. Once a house is defended, it remains so all the time. The process ends when the fire can no longer spread. At most how many houses can be saved by the fire fighters? A house indexed by $(i, j)$ is a neighbor of a house indexed by $(k, \ell)$ if $|i-k|+|j-\ell|=1$.
At most $n^{2}+c^{2}-n c-c$ houses can be saved. This can be achieved under the following order of defending: $$ \begin{gathered} (2, c),(2, c+1) ;(3, c-1),(3, c+2) ;(4, c-2),(4, c+3) ; \ldots \\ (c+1,1),(c+1,2 c) ;(c+1,2 c+1), \ldots,(c+1, n) \end{gathered} $$ Under this strategy, there are 2 columns (column numbers $c, c+1$ ) at which $n-1$ houses are saved 2 columns (column numbers $c-1, c+2$ ) at which $n-2$ houses are saved ... 2 columns (column numbers $1,2 c$ ) at which $n-c$ houses are saved $n-2 c$ columns (column numbers $n-2 c+1, \ldots, n$ ) at which $n-c$ houses are saved Adding all these we obtain : $$ 2[(n-1)+(n-2)+\cdots+(n-c)]+(n-2 c)(n-c)=n^{2}+c^{2}-c n-c $$ We say that a house indexed by $(i, j)$ is at level $t$ if $|i-1|+|j-c|=t$. Let $d(t)$ be the number of houses at level $t$ defended by time $t$, and $p(t)$ be the number of houses at levels greater than $t$ defended by time $t$. It is clear that $$ p(t)+\sum_{i=1}^{t} d(i) \leq t \text { and } p(t+1)+d(t+1) \leq p(t)+1 $$ Let $s(t)$ be the number of houses at level $t$ which are not burning at time $t$. We prove that $$ s(t) \leq t-p(t) \leq t $$ for $1 \leq t \leq n-1$ by induction. It is obvious when $t=1$. Assume that it is true for $t=k$. The union of the neighbors of any $k-p(k)+1$ houses at level $k+1$ contains at least $k-p(k)+1$ vertices at level $k$. Since $s(k) \leq k-p(k)$, one of these houses at level $k$ is burning. Therefore, at most $k-p(k)$ houses at level $k+1$ have no neighbor burning. Hence we have $$ \begin{aligned} s(k+1) & \leq k-p(k)+d(k+1) \\ & =(k+1)-(p(k)+1-d(k+1)) \\ & \leq(k+1)-p(k+1) \end{aligned} $$ We now prove that the strategy given above is optimal. Since $$ \sum_{t=1}^{n-1} s(t) \leq\binom{ n}{2} $$ the maximum number of houses at levels less than or equal to $n-1$, that can be saved under any strategy is at most $\binom{n}{2}$, which is realized by the strategy above. Moreover, at levels bigger than $n-1$, every house is saved under the strategy above. The following is an example when $n=11$ and $c=4$. The houses with $\bigcirc$ mark are burned. The houses with $\otimes$ mark are blocked ones and hence those and the houses below them are saved. ![](https://cdn.mathpix.com/cropped/2024_11_22_4451135f73c37463c161g-5.jpg?height=1023&width=1055&top_left_y=1055&top_left_x=519)
{ "resource_path": "APMO/segmented/en-apmo2005_sol.jsonl", "problem_match": "\nProblem 4.", "solution_match": "(Solution)" }
ab2e01d6-9893-55dd-a5ef-36ae08e81cdd
604,978
In a circus, there are $n$ clowns who dress and paint themselves up using a selection of 12 distinct colours. Each clown is required to use at least five different colours. One day, the ringmaster of the circus orders that no two clowns have exactly the same set of colours and no more than 20 clowns may use any one particular colour. Find the largest number $n$ of clowns so as to make the ringmaster's order possible.
Let $C$ be the set of $n$ clowns. Label the colours $1,2,3, \ldots, 12$. For each $i=1,2, \ldots, 12$, let $E_{i}$ denote the set of clowns who use colour $i$. For each subset $S$ of $\{1,2, \ldots, 12\}$, let $E_{S}$ be the set of clowns who use exactly those colours in $S$. Since $S \neq S^{\prime}$ implies $E_{S} \cap E_{S^{\prime}}=\emptyset$, we have $$ \sum_{S}\left|E_{S}\right|=|C|=n $$ where $S$ runs over all subsets of $\{1,2, \ldots, 12\}$. Now for each $i$, $$ E_{S} \subseteq E_{i} \quad \text { if and only if } \quad i \in S $$ and hence $$ \left|E_{i}\right|=\sum_{i \in S}\left|E_{S}\right| $$ By assumption, we know that $\left|E_{i}\right| \leq 20$ and that if $E_{S} \neq \emptyset$, then $|S| \geq 5$. From this we obtain $$ 20 \times 12 \geq \sum_{i=1}^{12}\left|E_{i}\right|=\sum_{i=1}^{12}\left(\sum_{i \in S}\left|E_{S}\right|\right) \geq 5 \sum_{S}\left|E_{S}\right|=5 n $$ Therefore $n \leq 48$. Now, define a sequence $\left\{c_{i}\right\}_{i=1}^{52}$ of colours in the following way: $1234|5678| 9101112 \mid$ $4123|8567| 1291011 \mid$ $3412|7856| 1112910 \mid$ $2341|6785| 1011129 \mid 1234$ The first row lists $c_{1}, \ldots, c_{12}$ in order, the second row lists $c_{13}, \ldots, c_{24}$ in order, the third row lists $c_{25}, \ldots, c_{36}$ in order, and finally the last row lists $c_{37}, \ldots, c_{52}$ in order. For each $j, 1 \leq j \leq 48$, assign colours $c_{j}, c_{j+1}, c_{j+2}, c_{j+3}, c_{j+4}$ to the $j$-th clown. It is easy to check that this assignment satisfies all conditions given above. So, 48 is the largest for $n$. Remark: The fact that $n \leq 48$ can be obtained in a much simpler observation that $$ 5 n \leq 12 \times 20=240 $$ There are many other ways of constructing 48 distinct sets consisting of 5 colours. For example, consider the sets $$ \begin{array}{cccc} \{1,2,3,4,5,6\}, & \{3,4,5,6,7,8\}, & \{5,6,7,8,9,10\}, & \{7,8,9,10,11,12\}, \\ \{9,10,11,12,1,2\}, & \{11,12,1,2,3,4\}, & \{1,2,5,6,9,10\}, & \{3,4,7,8,11,12\} . \end{array} $$ Each of the above 8 sets has 6 distinct subsets consisting of exactly 5 colours. It is easy to check that the 48 subsets obtained in this manner are all distinct.
48
Yes
Yes
math-word-problem
Combinatorics
In a circus, there are $n$ clowns who dress and paint themselves up using a selection of 12 distinct colours. Each clown is required to use at least five different colours. One day, the ringmaster of the circus orders that no two clowns have exactly the same set of colours and no more than 20 clowns may use any one particular colour. Find the largest number $n$ of clowns so as to make the ringmaster's order possible.
Let $C$ be the set of $n$ clowns. Label the colours $1,2,3, \ldots, 12$. For each $i=1,2, \ldots, 12$, let $E_{i}$ denote the set of clowns who use colour $i$. For each subset $S$ of $\{1,2, \ldots, 12\}$, let $E_{S}$ be the set of clowns who use exactly those colours in $S$. Since $S \neq S^{\prime}$ implies $E_{S} \cap E_{S^{\prime}}=\emptyset$, we have $$ \sum_{S}\left|E_{S}\right|=|C|=n $$ where $S$ runs over all subsets of $\{1,2, \ldots, 12\}$. Now for each $i$, $$ E_{S} \subseteq E_{i} \quad \text { if and only if } \quad i \in S $$ and hence $$ \left|E_{i}\right|=\sum_{i \in S}\left|E_{S}\right| $$ By assumption, we know that $\left|E_{i}\right| \leq 20$ and that if $E_{S} \neq \emptyset$, then $|S| \geq 5$. From this we obtain $$ 20 \times 12 \geq \sum_{i=1}^{12}\left|E_{i}\right|=\sum_{i=1}^{12}\left(\sum_{i \in S}\left|E_{S}\right|\right) \geq 5 \sum_{S}\left|E_{S}\right|=5 n $$ Therefore $n \leq 48$. Now, define a sequence $\left\{c_{i}\right\}_{i=1}^{52}$ of colours in the following way: $1234|5678| 9101112 \mid$ $4123|8567| 1291011 \mid$ $3412|7856| 1112910 \mid$ $2341|6785| 1011129 \mid 1234$ The first row lists $c_{1}, \ldots, c_{12}$ in order, the second row lists $c_{13}, \ldots, c_{24}$ in order, the third row lists $c_{25}, \ldots, c_{36}$ in order, and finally the last row lists $c_{37}, \ldots, c_{52}$ in order. For each $j, 1 \leq j \leq 48$, assign colours $c_{j}, c_{j+1}, c_{j+2}, c_{j+3}, c_{j+4}$ to the $j$-th clown. It is easy to check that this assignment satisfies all conditions given above. So, 48 is the largest for $n$. Remark: The fact that $n \leq 48$ can be obtained in a much simpler observation that $$ 5 n \leq 12 \times 20=240 $$ There are many other ways of constructing 48 distinct sets consisting of 5 colours. For example, consider the sets $$ \begin{array}{cccc} \{1,2,3,4,5,6\}, & \{3,4,5,6,7,8\}, & \{5,6,7,8,9,10\}, & \{7,8,9,10,11,12\}, \\ \{9,10,11,12,1,2\}, & \{11,12,1,2,3,4\}, & \{1,2,5,6,9,10\}, & \{3,4,7,8,11,12\} . \end{array} $$ Each of the above 8 sets has 6 distinct subsets consisting of exactly 5 colours. It is easy to check that the 48 subsets obtained in this manner are all distinct.
{ "resource_path": "APMO/segmented/en-apmo2006_sol.jsonl", "problem_match": "\nProblem 5.", "solution_match": "(Solution)" }
5b2a8169-c2ad-5a85-9550-581891fe4e37
261,512
Consider $n$ disks $C_{1}, C_{2}, \ldots, C_{n}$ in a plane such that for each $1 \leq i<n$, the center of $C_{i}$ is on the circumference of $C_{i+1}$, and the center of $C_{n}$ is on the circumference of $C_{1}$. Define the score of such an arrangement of $n$ disks to be the number of pairs $(i, j)$ for which $C_{i}$ properly contains $C_{j}$. Determine the maximum possible score.
The answer is $(n-1)(n-2) / 2$. Let's call a set of $n$ disks satisfying the given conditions an $n$-configuration. For an $n$ configuration $\mathcal{C}=\left\{C_{1}, \ldots, C_{n}\right\}$, let $S_{\mathcal{C}}=\left\{(i, j) \mid C_{i}\right.$ properly contains $\left.C_{j}\right\}$. So, the score of an $n$-configuration $\mathcal{C}$ is $\left|S_{\mathcal{C}}\right|$. We'll show that (i) there is an $n$-configuration $\mathcal{C}$ for which $\left|S_{\mathcal{C}}\right|=(n-1)(n-2) / 2$, and that (ii) $\left|S_{\mathcal{C}}\right| \leq(n-1)(n-2) / 2$ for any $n$-configuration $\mathcal{C}$. Let $C_{1}$ be any disk. Then for $i=2, \ldots, n-1$, take $C_{i}$ inside $C_{i-1}$ so that the circumference of $C_{i}$ contains the center of $C_{i-1}$. Finally, let $C_{n}$ be a disk whose center is on the circumference of $C_{1}$ and whose circumference contains the center of $C_{n-1}$. This gives $S_{\mathcal{C}}=\{(i, j) \mid 1 \leq i<j \leq n-1\}$ of size $(n-1)(n-2) / 2$, which proves (i). For any $n$-configuration $\mathcal{C}, S_{\mathcal{C}}$ must satisfy the following properties: (1) $(i, i) \notin S_{\mathcal{C}}$, (2) $(i+1, i) \notin S_{\mathcal{C}},(1, n) \notin S_{\mathcal{C}}$, (3) if $(i, j),(j, k) \in S_{\mathcal{C}}$, then $(i, k) \in S_{\mathcal{C}}$, (4) if $(i, j) \in S_{\mathcal{C}}$, then $(j, i) \notin S_{\mathcal{C}}$. Now we show that a set $G$ of ordered pairs of integers between 1 and $n$, satisfying the conditions $(1) \sim(4)$, can have no more than $(n-1)(n-2) / 2$ elements. Suppose that there exists a set $G$ that satisfies the conditions (1) $\sim(4)$, and has more than $(n-1)(n-2) / 2$ elements. Let $n$ be the least positive integer with which there exists such a set $G$. Note that $G$ must have $(i, i+1)$ for some $1 \leq i \leq n$ or $(n, 1)$, since otherwise $G$ can have at most $$ \binom{n}{2}-n=\frac{n(n-3)}{2}<\frac{(n-1)(n-2)}{2} $$ elements. Without loss of generality we may assume that $(n, 1) \in G$. Then $(1, n-1) \notin G$, since otherwise the condition (3) yields $(n, n-1) \in G$ contradicting the condition (2). Now let $G^{\prime}=\{(i, j) \in G \mid 1 \leq i, j \leq n-1\}$, then $G^{\prime}$ satisfies the conditions (1) (4), with $n-1$. We now claim that $\left|G-G^{\prime}\right| \leq n-2$ : Suppose that $\left|G-G^{\prime}\right|>n-2$, then $\left|G-G^{\prime}\right|=n-1$ and hence for each $1 \leq i \leq n-1$, either $(i, n)$ or $(n, i)$ must be in $G$. We already know that $(n, 1) \in G$ and $(n-1, n) \in G$ (because $(n, n-1) \notin G$ ) and this implies that $(n, n-2) \notin G$ and $(n-2, n) \in G$. If we keep doing this process, we obtain $(1, n) \in G$, which is a contradiction. Since $\left|G-G^{\prime}\right| \leq n-2$, we obtain $$ \left|G^{\prime}\right| \geq \frac{(n-1)(n-2)}{2}-(n-2)=\frac{(n-2)(n-3)}{2} $$ This, however, contradicts the minimality of $n$, and hence proves (ii).
(n-1)(n-2) / 2
Yes
Yes
math-word-problem
Combinatorics
Consider $n$ disks $C_{1}, C_{2}, \ldots, C_{n}$ in a plane such that for each $1 \leq i<n$, the center of $C_{i}$ is on the circumference of $C_{i+1}$, and the center of $C_{n}$ is on the circumference of $C_{1}$. Define the score of such an arrangement of $n$ disks to be the number of pairs $(i, j)$ for which $C_{i}$ properly contains $C_{j}$. Determine the maximum possible score.
The answer is $(n-1)(n-2) / 2$. Let's call a set of $n$ disks satisfying the given conditions an $n$-configuration. For an $n$ configuration $\mathcal{C}=\left\{C_{1}, \ldots, C_{n}\right\}$, let $S_{\mathcal{C}}=\left\{(i, j) \mid C_{i}\right.$ properly contains $\left.C_{j}\right\}$. So, the score of an $n$-configuration $\mathcal{C}$ is $\left|S_{\mathcal{C}}\right|$. We'll show that (i) there is an $n$-configuration $\mathcal{C}$ for which $\left|S_{\mathcal{C}}\right|=(n-1)(n-2) / 2$, and that (ii) $\left|S_{\mathcal{C}}\right| \leq(n-1)(n-2) / 2$ for any $n$-configuration $\mathcal{C}$. Let $C_{1}$ be any disk. Then for $i=2, \ldots, n-1$, take $C_{i}$ inside $C_{i-1}$ so that the circumference of $C_{i}$ contains the center of $C_{i-1}$. Finally, let $C_{n}$ be a disk whose center is on the circumference of $C_{1}$ and whose circumference contains the center of $C_{n-1}$. This gives $S_{\mathcal{C}}=\{(i, j) \mid 1 \leq i<j \leq n-1\}$ of size $(n-1)(n-2) / 2$, which proves (i). For any $n$-configuration $\mathcal{C}, S_{\mathcal{C}}$ must satisfy the following properties: (1) $(i, i) \notin S_{\mathcal{C}}$, (2) $(i+1, i) \notin S_{\mathcal{C}},(1, n) \notin S_{\mathcal{C}}$, (3) if $(i, j),(j, k) \in S_{\mathcal{C}}$, then $(i, k) \in S_{\mathcal{C}}$, (4) if $(i, j) \in S_{\mathcal{C}}$, then $(j, i) \notin S_{\mathcal{C}}$. Now we show that a set $G$ of ordered pairs of integers between 1 and $n$, satisfying the conditions $(1) \sim(4)$, can have no more than $(n-1)(n-2) / 2$ elements. Suppose that there exists a set $G$ that satisfies the conditions (1) $\sim(4)$, and has more than $(n-1)(n-2) / 2$ elements. Let $n$ be the least positive integer with which there exists such a set $G$. Note that $G$ must have $(i, i+1)$ for some $1 \leq i \leq n$ or $(n, 1)$, since otherwise $G$ can have at most $$ \binom{n}{2}-n=\frac{n(n-3)}{2}<\frac{(n-1)(n-2)}{2} $$ elements. Without loss of generality we may assume that $(n, 1) \in G$. Then $(1, n-1) \notin G$, since otherwise the condition (3) yields $(n, n-1) \in G$ contradicting the condition (2). Now let $G^{\prime}=\{(i, j) \in G \mid 1 \leq i, j \leq n-1\}$, then $G^{\prime}$ satisfies the conditions (1) (4), with $n-1$. We now claim that $\left|G-G^{\prime}\right| \leq n-2$ : Suppose that $\left|G-G^{\prime}\right|>n-2$, then $\left|G-G^{\prime}\right|=n-1$ and hence for each $1 \leq i \leq n-1$, either $(i, n)$ or $(n, i)$ must be in $G$. We already know that $(n, 1) \in G$ and $(n-1, n) \in G$ (because $(n, n-1) \notin G$ ) and this implies that $(n, n-2) \notin G$ and $(n-2, n) \in G$. If we keep doing this process, we obtain $(1, n) \in G$, which is a contradiction. Since $\left|G-G^{\prime}\right| \leq n-2$, we obtain $$ \left|G^{\prime}\right| \geq \frac{(n-1)(n-2)}{2}-(n-2)=\frac{(n-2)(n-3)}{2} $$ This, however, contradicts the minimality of $n$, and hence proves (ii).
{ "resource_path": "APMO/segmented/en-apmo2007_sol.jsonl", "problem_match": "\nProblem 3.", "solution_match": "\nSolution." }
8d33c1d3-c1d3-5bf1-b208-ed86249f3b44
261,138
Let $a_{1}, a_{2}, a_{3}, a_{4}, a_{5}$ be real numbers satisfying the following equations: $$ \frac{a_{1}}{k^{2}+1}+\frac{a_{2}}{k^{2}+2}+\frac{a_{3}}{k^{2}+3}+\frac{a_{4}}{k^{2}+4}+\frac{a_{5}}{k^{2}+5}=\frac{1}{k^{2}} \text { for } k=1,2,3,4,5 $$ Find the value of $\frac{a_{1}}{37}+\frac{a_{2}}{38}+\frac{a_{3}}{39}+\frac{a_{4}}{40}+\frac{a_{5}}{41}$. (Express the value in a single fraction.)
Let $R(x):=\frac{a_{1}}{x^{2}+1}+\frac{a_{2}}{x^{2}+2}+\frac{a_{3}}{x^{2}+3}+\frac{a_{4}}{x^{2}+4}+\frac{a_{5}}{x^{2}+5}$. Then $R( \pm 1)=1$, $R( \pm 2)=\frac{1}{4}, R( \pm 3)=\frac{1}{9}, R( \pm 4)=\frac{1}{16}, R( \pm 5)=\frac{1}{25}$ and $R(6)$ is the value to be found. Let's put $P(x):=\left(x^{2}+1\right)\left(x^{2}+2\right)\left(x^{2}+3\right)\left(x^{2}+4\right)\left(x^{2}+5\right)$ and $Q(x):=R(x) P(x)$. Then for $k= \pm 1, \pm 2, \pm 3, \pm 4, \pm 5$, we get $Q(k)=R(k) P(k)=\frac{P(k)}{k^{2}}$, that is, $P(k)-k^{2} Q(k)=0$. Since $P(x)-x^{2} Q(x)$ is a polynomial of degree 10 with roots $\pm 1, \pm 2, \pm 3, \pm 4, \pm 5$, we get $$ P(x)-x^{2} Q(x)=A\left(x^{2}-1\right)\left(x^{2}-4\right)\left(x^{2}-9\right)\left(x^{2}-16\right)\left(x^{2}-25\right) $$ Putting $x=0$, we get $A=\frac{P(0)}{(-1)(-4)(-9)(-16)(-25)}=-\frac{1}{120}$. Finally, dividing both sides of $(*)$ by $P(x)$ yields $$ 1-x^{2} R(x)=1-x^{2} \frac{Q(x)}{P(x)}=-\frac{1}{120} \cdot \frac{\left(x^{2}-1\right)\left(x^{2}-4\right)\left(x^{2}-9\right)\left(x^{2}-16\right)\left(x^{2}-25\right)}{\left(x^{2}+1\right)\left(x^{2}+2\right)\left(x^{2}+3\right)\left(x^{2}+4\right)\left(x^{2}+5\right)} $$ and hence that $$ 1-36 R(6)=-\frac{35 \times 32 \times 27 \times 20 \times 11}{120 \times 37 \times 38 \times 39 \times 40 \times 41}=-\frac{3 \times 7 \times 11}{13 \times 19 \times 37 \times 41}=-\frac{231}{374699} $$ which implies $R(6)=\frac{187465}{6744582}$. Remark. We can get $a_{1}=\frac{1105}{72}, a_{2}=-\frac{2673}{40}, a_{3}=\frac{1862}{15}, a_{4}=-\frac{1885}{18}, a_{5}=\frac{1323}{40}$ by solving the given system of linear equations, which is extremely messy and takes a lot of time.
\frac{187465}{6744582}
Yes
Yes
math-word-problem
Algebra
Let $a_{1}, a_{2}, a_{3}, a_{4}, a_{5}$ be real numbers satisfying the following equations: $$ \frac{a_{1}}{k^{2}+1}+\frac{a_{2}}{k^{2}+2}+\frac{a_{3}}{k^{2}+3}+\frac{a_{4}}{k^{2}+4}+\frac{a_{5}}{k^{2}+5}=\frac{1}{k^{2}} \text { for } k=1,2,3,4,5 $$ Find the value of $\frac{a_{1}}{37}+\frac{a_{2}}{38}+\frac{a_{3}}{39}+\frac{a_{4}}{40}+\frac{a_{5}}{41}$. (Express the value in a single fraction.)
Let $R(x):=\frac{a_{1}}{x^{2}+1}+\frac{a_{2}}{x^{2}+2}+\frac{a_{3}}{x^{2}+3}+\frac{a_{4}}{x^{2}+4}+\frac{a_{5}}{x^{2}+5}$. Then $R( \pm 1)=1$, $R( \pm 2)=\frac{1}{4}, R( \pm 3)=\frac{1}{9}, R( \pm 4)=\frac{1}{16}, R( \pm 5)=\frac{1}{25}$ and $R(6)$ is the value to be found. Let's put $P(x):=\left(x^{2}+1\right)\left(x^{2}+2\right)\left(x^{2}+3\right)\left(x^{2}+4\right)\left(x^{2}+5\right)$ and $Q(x):=R(x) P(x)$. Then for $k= \pm 1, \pm 2, \pm 3, \pm 4, \pm 5$, we get $Q(k)=R(k) P(k)=\frac{P(k)}{k^{2}}$, that is, $P(k)-k^{2} Q(k)=0$. Since $P(x)-x^{2} Q(x)$ is a polynomial of degree 10 with roots $\pm 1, \pm 2, \pm 3, \pm 4, \pm 5$, we get $$ P(x)-x^{2} Q(x)=A\left(x^{2}-1\right)\left(x^{2}-4\right)\left(x^{2}-9\right)\left(x^{2}-16\right)\left(x^{2}-25\right) $$ Putting $x=0$, we get $A=\frac{P(0)}{(-1)(-4)(-9)(-16)(-25)}=-\frac{1}{120}$. Finally, dividing both sides of $(*)$ by $P(x)$ yields $$ 1-x^{2} R(x)=1-x^{2} \frac{Q(x)}{P(x)}=-\frac{1}{120} \cdot \frac{\left(x^{2}-1\right)\left(x^{2}-4\right)\left(x^{2}-9\right)\left(x^{2}-16\right)\left(x^{2}-25\right)}{\left(x^{2}+1\right)\left(x^{2}+2\right)\left(x^{2}+3\right)\left(x^{2}+4\right)\left(x^{2}+5\right)} $$ and hence that $$ 1-36 R(6)=-\frac{35 \times 32 \times 27 \times 20 \times 11}{120 \times 37 \times 38 \times 39 \times 40 \times 41}=-\frac{3 \times 7 \times 11}{13 \times 19 \times 37 \times 41}=-\frac{231}{374699} $$ which implies $R(6)=\frac{187465}{6744582}$. Remark. We can get $a_{1}=\frac{1105}{72}, a_{2}=-\frac{2673}{40}, a_{3}=\frac{1862}{15}, a_{4}=-\frac{1885}{18}, a_{5}=\frac{1323}{40}$ by solving the given system of linear equations, which is extremely messy and takes a lot of time.
{ "resource_path": "APMO/segmented/en-apmo2009_sol.jsonl", "problem_match": "\nProblem 2.", "solution_match": "(Solution)" }
149fe16f-5e4d-586c-aea5-aafc6a7e9dea
605,313
Let $n$ be a positive integer. $n$ people take part in a certain party. For any pair of the participants, either the two are acquainted with each other or they are not. What is the maximum possible number of the pairs for which the two are not acquainted but have a common acquaintance among the participants?
When 1 participant, say the person $A$, is mutually acquainted with each of the remaining $n-1$ participants, and if there are no other acquaintance relationships among the participants, then for any pair of participants not involving $A$, the two are not mutual acquaintances, but they have a common acquaintance, namely $A$, so any such pair satisfies the requirement. Thus, the number desired in this case is $\frac{(n-1)(n-2)}{2}=\frac{n^{2}-3 n+2}{2}$. Let us show that $\frac{n^{2}-3 n+2}{2}$ is the maximum possible number of the pairs satisfying the requirement of the problem. First, let us observe that in the process of trying to find the maximum possible number of such pairs, if we split the participants into two non-empty subsets $T$ and $S$ which are disjoint, we may assume that there is a pair consisting of one person chosen from $T$ and the other chosen from $S$ who are mutual acquaintances. This is so, since if there are no such pair for some splitting $T$ and $S$, then among the pairs consisting of one person chosen from $T$ and the other chosen from $S$, there is no pair for which the two have a common acquaintance among participants, and therefore, if we arbitrarily choose a person $A \in T$ and $B \in S$ and declare that $A$ and $B$ are mutual acquaintances, the number of the pairs satisfying the requirement of the problem does not decrease. Let us now call a set of participants a group if it satisfies the following 2 conditions: - One can connect any person in the set with any other person in the set by tracing a chain of mutually acquainted pairs. More precisely, for any pair of people $A, B$ in the set there exists a sequence of people $A_{0}, A_{1}, \cdots, A_{n}$ for which $A_{0}=A, A_{n}=B$ and, for each $i: 0 \leq i \leq n-1, A_{i}$ and $A_{i+1}$ are mutual acquaintances. - No person in this set can be connected with a person not belonging to this set by tracing a chain of mutually acquainted pairs. In view of the discussions made above, we may assume that the set of all the participants to the party forms a group of $n$ people. Let us next consider the following lemma. Lemma. In a group of $n$ people, there are at least $n-1$ pairs of mutual acquaintances. Proof: If you choose a mutually acquainted pair in a group and declare the two in the pair are not mutually acquainted, then either the group stays the same or splits into 2 groups. This means that by changing the status of a mutually acquainted pair in a group to that of a non-acquainted pair, one can increase the number of groups at most by 1 . Now if in a group of $n$ people you change the status of all of the mutually acquainted pairs to that of non-acquainted pairs, then obviously, the number of groups increases from 1 to $n$. Therefore, there must be at least $n-1$ pairs of mutually acquainted pairs in a group consisting of $n$ people. The lemma implies that there are at most $\frac{n(n-1)}{2}-(n-1)=\frac{n^{2}-3 n+2}{2}$ pairs satisfying the condition of the problem. Thus the desired maximum number of pairs satisfying the requirement of the problem is $\frac{n^{2}-3 n+2}{2}$. Remark: One can give a somewhat different proof by separating into 2 cases depending on whether there are at least $n-1$ mutually acquainted pairs, or at most $n-2$ such pairs. In the former case, one can argue in the same way as the proof above, while in the latter case, the Lemma above implies that there would be 2 or more groups to start with, but then, in view of the comment made before the definition of a group above, these groups can be combined to form one group, thereby one can reduce the argument to the former case. Alternate Solution 1: The construction of an example for the case for which the number $\frac{n^{2}-3 n+2}{2}$ appears, and the argument for the case where there is only 1 group would be the same as in the preceding proof. Suppose, then, $n$ participants are separated into $k(k \geq 2)$ groups, and the number of people in each group is given by $a_{i}, i=1, \cdots, k$. In such a case, the number of pairs for which paired people are not mutually acquainted but have a common acquaintance is at most $\sum_{i=1}^{k} a_{i} C_{2}$, where we set ${ }_{1} C_{2}=0$ for convenience. Since ${ }_{a} C_{2}+{ }_{b} C_{2} \leq{ }_{a+b} C_{2}$ holds for any pair of positive integers $a, b$, we have $\sum_{i=1}^{k} a_{i} C_{2} \leq{ }_{a_{1}} C_{2}+{ }_{n-a_{1}} C_{2}$. From $$ { }_{a_{1}} C_{2}+{ }_{n-a_{1}} C_{2}=a_{1}^{2}-n a_{1}+\frac{n^{2}-n}{2}=\left(a_{1}-\frac{n}{2}\right)^{2}+\frac{n^{2}-2 n}{4} $$ it follows that ${ }_{a} C_{2}+{ }_{n-a_{1}} C_{2}$ takes its maximum value when $a_{1}=1, n-1$. Therefore, we have $\sum_{i=1}^{k}{ }_{a} C_{2} \leq{ }_{n-1} C_{2}$, which shows that in the case where the number of groups are 2 or more, the number of the pairs for which paired people are not mutually acquainted but have a common acquaintance is at most ${ }_{n-1} C_{2}=\frac{n^{2}-3 n+2}{2}$, and hence the desired maximum number of the pairs satisfying the requirement is $\frac{n^{2}-3 n+2}{2}$. Alternate Solution 2: Construction of an example would be the same as the preceding proof. For a participant, say $A$, call another participant, say $B$, a familiar face if $A$ and $B$ are not mutually acquainted but they have a common acquaintance among the participants, and in this case call the pair $A, B$ a familiar pair. Suppose there is a participant $P$ who is mutually acquainted with $d$ participants. Denote by $S$ the set of these $d$ participants, and by $T$ the set of participants different from $P$ and not belonging to the set $S$. Suppose there are $e$ pairs formed by a person in $S$ and a person in $T$ who are mutually acquainted. Then the number of participants who are familiar faces to $P$ is at most $e$. The number of pairs formed by two people belonging to the set $S$ and are mutually acquainted is at most ${ }_{d} C_{2}$. The number of familiar pairs formed by two people belonging to the set $T$ is at most ${ }_{n-d-1} C_{2}$. Since there are $e$ pairs formed by a person in the set $S$ and a person in the set $T$ who are mutually acquainted (and so the pairs are not familiar pairs), we have at most $d(n-1-d)-e$ familiar pairs formed by a person chosen from $S$ and a person chosen from $T$. Putting these together we conclude that there are at most $e+{ }_{d} C_{2}+{ }_{n-1-d} C_{2}+d(n-1-d)-e$ familiar pairs. Since $$ e+{ }_{d} C_{2}+{ }_{n-1-d} C_{2}+d(n-1-d)-e=\frac{n^{2}-3 n+2}{2} $$ the number we seek is at most $\frac{n^{2}-3 n+2}{2}$, and hence this is the desired solution to the problem.
\frac{n^{2}-3 n+2}{2}
Yes
Yes
math-word-problem
Combinatorics
Let $n$ be a positive integer. $n$ people take part in a certain party. For any pair of the participants, either the two are acquainted with each other or they are not. What is the maximum possible number of the pairs for which the two are not acquainted but have a common acquaintance among the participants?
When 1 participant, say the person $A$, is mutually acquainted with each of the remaining $n-1$ participants, and if there are no other acquaintance relationships among the participants, then for any pair of participants not involving $A$, the two are not mutual acquaintances, but they have a common acquaintance, namely $A$, so any such pair satisfies the requirement. Thus, the number desired in this case is $\frac{(n-1)(n-2)}{2}=\frac{n^{2}-3 n+2}{2}$. Let us show that $\frac{n^{2}-3 n+2}{2}$ is the maximum possible number of the pairs satisfying the requirement of the problem. First, let us observe that in the process of trying to find the maximum possible number of such pairs, if we split the participants into two non-empty subsets $T$ and $S$ which are disjoint, we may assume that there is a pair consisting of one person chosen from $T$ and the other chosen from $S$ who are mutual acquaintances. This is so, since if there are no such pair for some splitting $T$ and $S$, then among the pairs consisting of one person chosen from $T$ and the other chosen from $S$, there is no pair for which the two have a common acquaintance among participants, and therefore, if we arbitrarily choose a person $A \in T$ and $B \in S$ and declare that $A$ and $B$ are mutual acquaintances, the number of the pairs satisfying the requirement of the problem does not decrease. Let us now call a set of participants a group if it satisfies the following 2 conditions: - One can connect any person in the set with any other person in the set by tracing a chain of mutually acquainted pairs. More precisely, for any pair of people $A, B$ in the set there exists a sequence of people $A_{0}, A_{1}, \cdots, A_{n}$ for which $A_{0}=A, A_{n}=B$ and, for each $i: 0 \leq i \leq n-1, A_{i}$ and $A_{i+1}$ are mutual acquaintances. - No person in this set can be connected with a person not belonging to this set by tracing a chain of mutually acquainted pairs. In view of the discussions made above, we may assume that the set of all the participants to the party forms a group of $n$ people. Let us next consider the following lemma. Lemma. In a group of $n$ people, there are at least $n-1$ pairs of mutual acquaintances. Proof: If you choose a mutually acquainted pair in a group and declare the two in the pair are not mutually acquainted, then either the group stays the same or splits into 2 groups. This means that by changing the status of a mutually acquainted pair in a group to that of a non-acquainted pair, one can increase the number of groups at most by 1 . Now if in a group of $n$ people you change the status of all of the mutually acquainted pairs to that of non-acquainted pairs, then obviously, the number of groups increases from 1 to $n$. Therefore, there must be at least $n-1$ pairs of mutually acquainted pairs in a group consisting of $n$ people. The lemma implies that there are at most $\frac{n(n-1)}{2}-(n-1)=\frac{n^{2}-3 n+2}{2}$ pairs satisfying the condition of the problem. Thus the desired maximum number of pairs satisfying the requirement of the problem is $\frac{n^{2}-3 n+2}{2}$. Remark: One can give a somewhat different proof by separating into 2 cases depending on whether there are at least $n-1$ mutually acquainted pairs, or at most $n-2$ such pairs. In the former case, one can argue in the same way as the proof above, while in the latter case, the Lemma above implies that there would be 2 or more groups to start with, but then, in view of the comment made before the definition of a group above, these groups can be combined to form one group, thereby one can reduce the argument to the former case. Alternate Solution 1: The construction of an example for the case for which the number $\frac{n^{2}-3 n+2}{2}$ appears, and the argument for the case where there is only 1 group would be the same as in the preceding proof. Suppose, then, $n$ participants are separated into $k(k \geq 2)$ groups, and the number of people in each group is given by $a_{i}, i=1, \cdots, k$. In such a case, the number of pairs for which paired people are not mutually acquainted but have a common acquaintance is at most $\sum_{i=1}^{k} a_{i} C_{2}$, where we set ${ }_{1} C_{2}=0$ for convenience. Since ${ }_{a} C_{2}+{ }_{b} C_{2} \leq{ }_{a+b} C_{2}$ holds for any pair of positive integers $a, b$, we have $\sum_{i=1}^{k} a_{i} C_{2} \leq{ }_{a_{1}} C_{2}+{ }_{n-a_{1}} C_{2}$. From $$ { }_{a_{1}} C_{2}+{ }_{n-a_{1}} C_{2}=a_{1}^{2}-n a_{1}+\frac{n^{2}-n}{2}=\left(a_{1}-\frac{n}{2}\right)^{2}+\frac{n^{2}-2 n}{4} $$ it follows that ${ }_{a} C_{2}+{ }_{n-a_{1}} C_{2}$ takes its maximum value when $a_{1}=1, n-1$. Therefore, we have $\sum_{i=1}^{k}{ }_{a} C_{2} \leq{ }_{n-1} C_{2}$, which shows that in the case where the number of groups are 2 or more, the number of the pairs for which paired people are not mutually acquainted but have a common acquaintance is at most ${ }_{n-1} C_{2}=\frac{n^{2}-3 n+2}{2}$, and hence the desired maximum number of the pairs satisfying the requirement is $\frac{n^{2}-3 n+2}{2}$. Alternate Solution 2: Construction of an example would be the same as the preceding proof. For a participant, say $A$, call another participant, say $B$, a familiar face if $A$ and $B$ are not mutually acquainted but they have a common acquaintance among the participants, and in this case call the pair $A, B$ a familiar pair. Suppose there is a participant $P$ who is mutually acquainted with $d$ participants. Denote by $S$ the set of these $d$ participants, and by $T$ the set of participants different from $P$ and not belonging to the set $S$. Suppose there are $e$ pairs formed by a person in $S$ and a person in $T$ who are mutually acquainted. Then the number of participants who are familiar faces to $P$ is at most $e$. The number of pairs formed by two people belonging to the set $S$ and are mutually acquainted is at most ${ }_{d} C_{2}$. The number of familiar pairs formed by two people belonging to the set $T$ is at most ${ }_{n-d-1} C_{2}$. Since there are $e$ pairs formed by a person in the set $S$ and a person in the set $T$ who are mutually acquainted (and so the pairs are not familiar pairs), we have at most $d(n-1-d)-e$ familiar pairs formed by a person chosen from $S$ and a person chosen from $T$. Putting these together we conclude that there are at most $e+{ }_{d} C_{2}+{ }_{n-1-d} C_{2}+d(n-1-d)-e$ familiar pairs. Since $$ e+{ }_{d} C_{2}+{ }_{n-1-d} C_{2}+d(n-1-d)-e=\frac{n^{2}-3 n+2}{2} $$ the number we seek is at most $\frac{n^{2}-3 n+2}{2}$, and hence this is the desired solution to the problem.
{ "resource_path": "APMO/segmented/en-apmo2010_sol.jsonl", "problem_match": "\nProblem 3.", "solution_match": "\nSolution:" }
8217e940-8b0a-5b7b-b8b8-51d1b25d50a6
65,014
Let $S=\{1,2, \ldots, 2014\}$. For each non-empty subset $T \subseteq S$, one of its members is chosen as its representative. Find the number of ways to assign representatives to all non-empty subsets of $S$ so that if a subset $D \subseteq S$ is a disjoint union of non-empty subsets $A, B, C \subseteq S$, then the representative of $D$ is also the representative of at least one of $A, B, C$. (Warut Suksompong, Thailand)
Answer: 108 - 2014!. For any subset $X$ let $r(X)$ denotes the representative of $X$. Suppose that $x_{1}=r(S)$. First, we prove the following fact: $$ \text { If } x_{1} \in X \text { and } X \subseteq S \text {, then } x_{1}=r(X) \text {. } $$ If $|X| \leq 2012$, then we can write $S$ as a disjoint union of $X$ and two other subsets of $S$, which gives that $x_{1}=r(X)$. If $|X|=2013$, then let $y \in X$ and $y \neq x_{1}$. We can write $X$ as a disjoint union of $\left\{x_{1}, y\right\}$ and two other subsets. We already proved that $r\left(\left\{x_{1}, y\right\}\right)=x_{1}$ (since $\left|\left\{x_{1}, y\right\}\right|=2<2012$ ) and it follows that $y \neq r(X)$ for every $y \in X$ except $x_{1}$. We have proved the fact. Note that this fact is true and can be proved similarly, if the ground set $S$ would contain at least 5 elements. There are 2014 ways to choose $x_{1}=r(S)$ and for $x_{1} \in X \subseteq S$ we have $r(X)=x_{1}$. Let $S_{1}=S \backslash\left\{x_{1}\right\}$. Analogously, we can state that there are 2013 ways to choose $x_{2}=r\left(S_{1}\right)$ and for $x_{2} \in X \subseteq S_{1}$ we have $r(X)=x_{2}$. Proceeding similarly (or by induction), there are $2014 \cdot 2013 \cdots 5$ ways to choose $x_{1}, x_{2}, \ldots, x_{2010} \in S$ so that for all $i=1,2 \ldots, 2010$, $x_{i}=r(X)$ for each $X \subseteq S \backslash\left\{x_{1}, \ldots, x_{i-1}\right\}$ and $x_{i} \in X$. We are now left with four elements $Y=\left\{y_{1}, y_{2}, y_{3}, y_{4}\right\}$. There are 4 ways to choose $r(Y)$. Suppose that $y_{1}=r(Y)$. Then we clearly have $y_{1}=r\left(\left\{y_{1}, y_{2}\right\}\right)=r\left(\left\{y_{1}, y_{3}\right\}\right)=r\left(\left\{y_{1}, y_{4}\right\}\right)$. The only subsets whose representative has not been assigned yet are $\left\{y_{1}, y_{2}, y_{3}\right\},\left\{y_{1}, y_{2}, y_{4}\right\}$, $\left\{y_{1}, y_{3}, y_{4}\right\},\left\{y_{2}, y_{3}, y_{4}\right\},\left\{y_{2}, y_{3}\right\},\left\{y_{2}, y_{4}\right\},\left\{y_{3}, y_{4}\right\}$. These subsets can be assigned in any way, hence giving $3^{4} \cdot 2^{3}$ more choices. In conclusion, the total number of assignments is $2014 \cdot 2013 \cdots 4 \cdot 3^{4} \cdot 2^{3}=108 \cdot 2014$ !.
108 \cdot 2014!
Yes
Yes
math-word-problem
Combinatorics
Let $S=\{1,2, \ldots, 2014\}$. For each non-empty subset $T \subseteq S$, one of its members is chosen as its representative. Find the number of ways to assign representatives to all non-empty subsets of $S$ so that if a subset $D \subseteq S$ is a disjoint union of non-empty subsets $A, B, C \subseteq S$, then the representative of $D$ is also the representative of at least one of $A, B, C$. (Warut Suksompong, Thailand)
Answer: 108 - 2014!. For any subset $X$ let $r(X)$ denotes the representative of $X$. Suppose that $x_{1}=r(S)$. First, we prove the following fact: $$ \text { If } x_{1} \in X \text { and } X \subseteq S \text {, then } x_{1}=r(X) \text {. } $$ If $|X| \leq 2012$, then we can write $S$ as a disjoint union of $X$ and two other subsets of $S$, which gives that $x_{1}=r(X)$. If $|X|=2013$, then let $y \in X$ and $y \neq x_{1}$. We can write $X$ as a disjoint union of $\left\{x_{1}, y\right\}$ and two other subsets. We already proved that $r\left(\left\{x_{1}, y\right\}\right)=x_{1}$ (since $\left|\left\{x_{1}, y\right\}\right|=2<2012$ ) and it follows that $y \neq r(X)$ for every $y \in X$ except $x_{1}$. We have proved the fact. Note that this fact is true and can be proved similarly, if the ground set $S$ would contain at least 5 elements. There are 2014 ways to choose $x_{1}=r(S)$ and for $x_{1} \in X \subseteq S$ we have $r(X)=x_{1}$. Let $S_{1}=S \backslash\left\{x_{1}\right\}$. Analogously, we can state that there are 2013 ways to choose $x_{2}=r\left(S_{1}\right)$ and for $x_{2} \in X \subseteq S_{1}$ we have $r(X)=x_{2}$. Proceeding similarly (or by induction), there are $2014 \cdot 2013 \cdots 5$ ways to choose $x_{1}, x_{2}, \ldots, x_{2010} \in S$ so that for all $i=1,2 \ldots, 2010$, $x_{i}=r(X)$ for each $X \subseteq S \backslash\left\{x_{1}, \ldots, x_{i-1}\right\}$ and $x_{i} \in X$. We are now left with four elements $Y=\left\{y_{1}, y_{2}, y_{3}, y_{4}\right\}$. There are 4 ways to choose $r(Y)$. Suppose that $y_{1}=r(Y)$. Then we clearly have $y_{1}=r\left(\left\{y_{1}, y_{2}\right\}\right)=r\left(\left\{y_{1}, y_{3}\right\}\right)=r\left(\left\{y_{1}, y_{4}\right\}\right)$. The only subsets whose representative has not been assigned yet are $\left\{y_{1}, y_{2}, y_{3}\right\},\left\{y_{1}, y_{2}, y_{4}\right\}$, $\left\{y_{1}, y_{3}, y_{4}\right\},\left\{y_{2}, y_{3}, y_{4}\right\},\left\{y_{2}, y_{3}\right\},\left\{y_{2}, y_{4}\right\},\left\{y_{3}, y_{4}\right\}$. These subsets can be assigned in any way, hence giving $3^{4} \cdot 2^{3}$ more choices. In conclusion, the total number of assignments is $2014 \cdot 2013 \cdots 4 \cdot 3^{4} \cdot 2^{3}=108 \cdot 2014$ !.
{ "resource_path": "APMO/segmented/en-apmo2014_sol.jsonl", "problem_match": "\nProblem 2.", "solution_match": "\nSolution." }
541b1cb1-d6a3-5fee-aff1-899a319fd3fc
261,240
A sequence of real numbers $a_{0}, a_{1}, \ldots$ is said to be good if the following three conditions hold. (i) The value of $a_{0}$ is a positive integer. (ii) For each non-negative integer $i$ we have $a_{i+1}=2 a_{i}+1$ or $a_{i+1}=\frac{a_{i}}{a_{i}+2}$. (iii) There exists a positive integer $k$ such that $a_{k}=2014$. Find the smallest positive integer $n$ such that there exists a good sequence $a_{0}, a_{1}, \ldots$ of real numbers with the property that $a_{n}=2014$.
Note that $$ a_{i+1}+1=2\left(a_{i}+1\right) \text { or } a_{i+1}+1=\frac{a_{i}+a_{i}+2}{a_{i}+2}=\frac{2\left(a_{i}+1\right)}{a_{i}+2} . $$ Hence $$ \frac{1}{a_{i+1}+1}=\frac{1}{2} \cdot \frac{1}{a_{i}+1} \text { or } \frac{1}{a_{i+1}+1}=\frac{a_{i}+2}{2\left(a_{i}+1\right)}=\frac{1}{2} \cdot \frac{1}{a_{i}+1}+\frac{1}{2} . $$ Therefore, $$ \frac{1}{a_{k}+1}=\frac{1}{2^{k}} \cdot \frac{1}{a_{0}+1}+\sum_{i=1}^{k} \frac{\varepsilon_{i}}{2^{k-i+1}} $$ where $\varepsilon_{i}=0$ or 1 . Multiplying both sides by $2^{k}\left(a_{k}+1\right)$ and putting $a_{k}=2014$, we get $$ 2^{k}=\frac{2015}{a_{0}+1}+2015 \cdot\left(\sum_{i=1}^{k} \varepsilon_{i} \cdot 2^{i-1}\right) $$ where $\varepsilon_{i}=0$ or 1 . Since $\operatorname{gcd}(2,2015)=1$, we have $a_{0}+1=2015$ and $a_{0}=2014$. Therefore, $$ 2^{k}-1=2015 \cdot\left(\sum_{i=1}^{k} \varepsilon_{i} \cdot 2^{i-1}\right) $$ where $\varepsilon_{i}=0$ or 1 . We now need to find the smallest $k$ such that $2015 \mid 2^{k}-1$. Since $2015=$ $5 \cdot 13 \cdot 31$, from the Fermat little theorem we obtain $5\left|2^{4}-1,13\right| 2^{12}-1$ and $31 \mid 2^{30}-1$. We also have $\operatorname{lcm}[4,12,30]=60$, hence $5\left|2^{60}-1,13\right| 2^{60}-1$ and $31 \mid 2^{60}-1$, which gives $2015 \mid 2^{60}-1$. But $5 \nmid 2^{30}-1$ and so $k=60$ is the smallest positive integer such that $2015 \mid 2^{k}-1$. To conclude, the smallest positive integer $k$ such that $a_{k}=2014$ is when $k=60$. Alternative solution 1. Clearly all members of the sequence are positive rational numbers. For each positive integer $i$, we have $a_{i}=\frac{a_{i+1}-1}{2}$ or $a_{i}=\frac{2 a_{i+1}}{1-a_{i+1}}$. Since $a_{i}>0$ we deduce that $$ a_{i}=\left\{\begin{array}{cl} \frac{a_{i+1}-1}{2} & \text { if } a_{i+1}>1 \\ \frac{2 a_{i+1}}{1-a_{i+1}} & \text { if } a_{i+1}<1 \end{array}\right. $$ Thus $a_{i}$ is uniquely determined from $a_{i+1}$. Hence starting from $a_{k}=2014$, we simply run the sequence backwards until we reach a positive integer. We compute as follows. $$ \begin{aligned} & \frac{2014}{1}, \frac{2013}{2}, \frac{2011}{4}, \frac{2007}{8}, \frac{1999}{16}, \frac{1983}{32}, \frac{1951}{64}, \frac{1887}{128}, \frac{1759}{256}, \frac{1503}{512}, \frac{991}{1024}, \frac{1982}{33}, \frac{1949}{66}, \frac{1883}{132}, \frac{1751}{264}, \frac{1487}{528}, \frac{959}{1056}, \frac{1918}{97}, \frac{1821}{194}, \frac{1627}{388}, \\ & \frac{1239}{776}, \frac{463}{1552}, \frac{926}{1089}, \frac{1852}{163}, \frac{1689}{326}, \frac{1363}{652}, \frac{711}{1304}, \frac{1422}{593}, \frac{829}{1186}, \frac{1658}{357}, \frac{1301}{714}, \frac{587}{1428}, \frac{1174}{841}, \frac{333}{1682}, \frac{666}{1349}, \frac{1332}{683}, \frac{649}{1366}, \frac{1298}{717}, \frac{581}{1434}, \frac{1162}{853}, \\ & \frac{309}{1706}, \frac{618}{1397}, \frac{1236}{779}, \frac{457}{1558}, \frac{914}{1101}, \frac{1828}{187}, \frac{1641}{374}, \frac{1267}{748}, \frac{519}{1496}, \frac{1038}{977}, \frac{61}{1954}, \frac{122}{1893}, \frac{244}{1771}, \frac{488}{1527}, \frac{976}{1039}, \frac{1952}{63}, \frac{1889}{126}, \frac{1763}{252}, \frac{1511}{504}, \frac{1007}{1008}, \frac{2014}{1} \end{aligned} $$ There are 61 terms in the above list. Thus $k=60$. Alternative solution 1 is quite computationally intensive. Calculating the first few terms indicates some patterns that are easy to prove. This is shown in the next solution. Alternative solution 2. Start with $a_{k}=\frac{m_{0}}{n_{0}}$ where $m_{0}=2014$ and $n_{0}=1$ as in alternative solution 1. By inverting the sequence as in alternative solution 1, we have $a_{k-i}=\frac{m_{i}}{n_{i}}$ for $i \geq 0$ where $$ \left(m_{i+1}, n_{i+1}\right)= \begin{cases}\left(m_{i}-n_{i}, 2 n_{i}\right) & \text { if } m_{i}>n_{i} \\ \left(2 m_{i}, n_{i}-m_{i}\right) & \text { if } m_{i}<n_{i}\end{cases} $$ Easy inductions show that $m_{i}+n_{i}=2015,1 \leq m_{i}, n_{i} \leq 2014$ and $\operatorname{gcd}\left(m_{i}, n_{i}\right)=1$ for $i \geq 0$. Since $a_{0} \in \mathbb{N}^{+}$and $\operatorname{gcd}\left(m_{k}, n_{k}\right)=1$, we require $n_{k}=1$. An easy induction shows that $\left(m_{i}, n_{i}\right) \equiv\left(-2^{i}, 2^{i}\right)(\bmod 2015)$ for $i=0,1, \ldots, k$. Thus $2^{k} \equiv 1(\bmod 2015)$. As in the official solution, the smallest such $k$ is $k=60$. This yields $n_{k} \equiv 1(\bmod 2015)$. But since $1 \leq n_{k}, m_{k} \leq 2014$, it follows that $a_{0}$ is an integer.
60
Yes
Yes
math-word-problem
Number Theory
A sequence of real numbers $a_{0}, a_{1}, \ldots$ is said to be good if the following three conditions hold. (i) The value of $a_{0}$ is a positive integer. (ii) For each non-negative integer $i$ we have $a_{i+1}=2 a_{i}+1$ or $a_{i+1}=\frac{a_{i}}{a_{i}+2}$. (iii) There exists a positive integer $k$ such that $a_{k}=2014$. Find the smallest positive integer $n$ such that there exists a good sequence $a_{0}, a_{1}, \ldots$ of real numbers with the property that $a_{n}=2014$. Answer: 60.
Note that $$ a_{i+1}+1=2\left(a_{i}+1\right) \text { or } a_{i+1}+1=\frac{a_{i}+a_{i}+2}{a_{i}+2}=\frac{2\left(a_{i}+1\right)}{a_{i}+2} . $$ Hence $$ \frac{1}{a_{i+1}+1}=\frac{1}{2} \cdot \frac{1}{a_{i}+1} \text { or } \frac{1}{a_{i+1}+1}=\frac{a_{i}+2}{2\left(a_{i}+1\right)}=\frac{1}{2} \cdot \frac{1}{a_{i}+1}+\frac{1}{2} . $$ Therefore, $$ \frac{1}{a_{k}+1}=\frac{1}{2^{k}} \cdot \frac{1}{a_{0}+1}+\sum_{i=1}^{k} \frac{\varepsilon_{i}}{2^{k-i+1}} $$ where $\varepsilon_{i}=0$ or 1 . Multiplying both sides by $2^{k}\left(a_{k}+1\right)$ and putting $a_{k}=2014$, we get $$ 2^{k}=\frac{2015}{a_{0}+1}+2015 \cdot\left(\sum_{i=1}^{k} \varepsilon_{i} \cdot 2^{i-1}\right) $$ where $\varepsilon_{i}=0$ or 1 . Since $\operatorname{gcd}(2,2015)=1$, we have $a_{0}+1=2015$ and $a_{0}=2014$. Therefore, $$ 2^{k}-1=2015 \cdot\left(\sum_{i=1}^{k} \varepsilon_{i} \cdot 2^{i-1}\right) $$ where $\varepsilon_{i}=0$ or 1 . We now need to find the smallest $k$ such that $2015 \mid 2^{k}-1$. Since $2015=$ $5 \cdot 13 \cdot 31$, from the Fermat little theorem we obtain $5\left|2^{4}-1,13\right| 2^{12}-1$ and $31 \mid 2^{30}-1$. We also have $\operatorname{lcm}[4,12,30]=60$, hence $5\left|2^{60}-1,13\right| 2^{60}-1$ and $31 \mid 2^{60}-1$, which gives $2015 \mid 2^{60}-1$. But $5 \nmid 2^{30}-1$ and so $k=60$ is the smallest positive integer such that $2015 \mid 2^{k}-1$. To conclude, the smallest positive integer $k$ such that $a_{k}=2014$ is when $k=60$. Alternative solution 1. Clearly all members of the sequence are positive rational numbers. For each positive integer $i$, we have $a_{i}=\frac{a_{i+1}-1}{2}$ or $a_{i}=\frac{2 a_{i+1}}{1-a_{i+1}}$. Since $a_{i}>0$ we deduce that $$ a_{i}=\left\{\begin{array}{cl} \frac{a_{i+1}-1}{2} & \text { if } a_{i+1}>1 \\ \frac{2 a_{i+1}}{1-a_{i+1}} & \text { if } a_{i+1}<1 \end{array}\right. $$ Thus $a_{i}$ is uniquely determined from $a_{i+1}$. Hence starting from $a_{k}=2014$, we simply run the sequence backwards until we reach a positive integer. We compute as follows. $$ \begin{aligned} & \frac{2014}{1}, \frac{2013}{2}, \frac{2011}{4}, \frac{2007}{8}, \frac{1999}{16}, \frac{1983}{32}, \frac{1951}{64}, \frac{1887}{128}, \frac{1759}{256}, \frac{1503}{512}, \frac{991}{1024}, \frac{1982}{33}, \frac{1949}{66}, \frac{1883}{132}, \frac{1751}{264}, \frac{1487}{528}, \frac{959}{1056}, \frac{1918}{97}, \frac{1821}{194}, \frac{1627}{388}, \\ & \frac{1239}{776}, \frac{463}{1552}, \frac{926}{1089}, \frac{1852}{163}, \frac{1689}{326}, \frac{1363}{652}, \frac{711}{1304}, \frac{1422}{593}, \frac{829}{1186}, \frac{1658}{357}, \frac{1301}{714}, \frac{587}{1428}, \frac{1174}{841}, \frac{333}{1682}, \frac{666}{1349}, \frac{1332}{683}, \frac{649}{1366}, \frac{1298}{717}, \frac{581}{1434}, \frac{1162}{853}, \\ & \frac{309}{1706}, \frac{618}{1397}, \frac{1236}{779}, \frac{457}{1558}, \frac{914}{1101}, \frac{1828}{187}, \frac{1641}{374}, \frac{1267}{748}, \frac{519}{1496}, \frac{1038}{977}, \frac{61}{1954}, \frac{122}{1893}, \frac{244}{1771}, \frac{488}{1527}, \frac{976}{1039}, \frac{1952}{63}, \frac{1889}{126}, \frac{1763}{252}, \frac{1511}{504}, \frac{1007}{1008}, \frac{2014}{1} \end{aligned} $$ There are 61 terms in the above list. Thus $k=60$. Alternative solution 1 is quite computationally intensive. Calculating the first few terms indicates some patterns that are easy to prove. This is shown in the next solution. Alternative solution 2. Start with $a_{k}=\frac{m_{0}}{n_{0}}$ where $m_{0}=2014$ and $n_{0}=1$ as in alternative solution 1. By inverting the sequence as in alternative solution 1, we have $a_{k-i}=\frac{m_{i}}{n_{i}}$ for $i \geq 0$ where $$ \left(m_{i+1}, n_{i+1}\right)= \begin{cases}\left(m_{i}-n_{i}, 2 n_{i}\right) & \text { if } m_{i}>n_{i} \\ \left(2 m_{i}, n_{i}-m_{i}\right) & \text { if } m_{i}<n_{i}\end{cases} $$ Easy inductions show that $m_{i}+n_{i}=2015,1 \leq m_{i}, n_{i} \leq 2014$ and $\operatorname{gcd}\left(m_{i}, n_{i}\right)=1$ for $i \geq 0$. Since $a_{0} \in \mathbb{N}^{+}$and $\operatorname{gcd}\left(m_{k}, n_{k}\right)=1$, we require $n_{k}=1$. An easy induction shows that $\left(m_{i}, n_{i}\right) \equiv\left(-2^{i}, 2^{i}\right)(\bmod 2015)$ for $i=0,1, \ldots, k$. Thus $2^{k} \equiv 1(\bmod 2015)$. As in the official solution, the smallest such $k$ is $k=60$. This yields $n_{k} \equiv 1(\bmod 2015)$. But since $1 \leq n_{k}, m_{k} \leq 2014$, it follows that $a_{0}$ is an integer.
{ "resource_path": "APMO/segmented/en-apmo2015_sol.jsonl", "problem_match": "\nProblem 3.", "solution_match": "\nSolution." }
35b4378f-60b8-52b6-81e4-64686cfb86f6
605,633
A positive integer is called fancy if it can be expressed in the form $$ 2^{a_{1}}+2^{a_{2}}+\cdots+2^{a_{100}} $$ where $a_{1}, a_{2}, \ldots, a_{100}$ are non-negative integers that are not necessarily distinct. Find the smallest positive integer $n$ such that no multiple of $n$ is a fancy number.
Let $k$ be any positive integer less than $2^{101}-1$. Then $k$ can be expressed in binary notation using at most 100 ones, and therefore there exists a positive integer $r$ and non-negative integers $a_{1}, a_{2}, \ldots, a_{r}$ such that $r \leq 100$ and $k=2^{a_{1}}+\cdots+2^{a_{r}}$. Notice that for a positive integer $s$ we have: $$ \begin{aligned} 2^{s} k & =2^{a_{1}+s}+2^{a_{2}+s}+\cdots+2^{a_{r-1}+s}+\left(1+1+2+\cdots+2^{s-1}\right) 2^{a_{r}} \\ & =2^{a_{1}+s}+2^{a_{2}+s}+\cdots+2^{a_{r-1}+s}+2^{a_{r}}+2^{a_{r}}+\cdots+2^{a_{r}+s-1} . \end{aligned} $$ This shows that $k$ has a multiple that is a sum of $r+s$ powers of two. In particular, we may take $s=100-r \geq 0$, which shows that $k$ has a multiple that is a fancy number. We will now prove that no multiple of $n=2^{101}-1$ is a fancy number. In fact we will prove a stronger statement, namely, that no multiple of $n$ can be expressed as the sum of at most 100 powers of 2 . For the sake of contradiction, suppose that there exists a positive integer $c$ such that $c n$ is the sum of at most 100 powers of 2 . We may assume that $c$ is the smallest such integer. By repeatedly merging equal powers of two in the representation of $c n$ we may assume that $$ c n=2^{a_{1}}+2^{a_{2}}+\cdots+2^{a_{r}} $$ where $r \leq 100$ and $a_{1}<a_{2}<\ldots<a_{r}$ are distinct non-negative integers. Consider the following two cases: - If $a_{r} \geq 101$, then $2^{a_{r}}-2^{a_{r}-101}=2^{a_{r}-101} n$. It follows that $2^{a_{1}}+2^{a_{2}}+\cdots+2^{a_{r}-1}+2^{a_{r}-101}$ would be a multiple of $n$ that is smaller than $c n$. This contradicts the minimality of $c$. - If $a_{r} \leq 100$, then $\left\{a_{1}, \ldots, a_{r}\right\}$ is a proper subset of $\{0,1, \ldots, 100\}$. Then $$ n \leq c n<2^{0}+2^{1}+\cdots+2^{100}=n $$ This is also a contradiction. From these contradictions we conclude that it is impossible for cn to be the sum of at most 100 powers of 2 . In particular, no multiple of $n$ is a fancy number.
2^{101}-1
Yes
Yes
math-word-problem
Number Theory
A positive integer is called fancy if it can be expressed in the form $$ 2^{a_{1}}+2^{a_{2}}+\cdots+2^{a_{100}} $$ where $a_{1}, a_{2}, \ldots, a_{100}$ are non-negative integers that are not necessarily distinct. Find the smallest positive integer $n$ such that no multiple of $n$ is a fancy number. Answer: The answer is $n=2^{101}-1$.
Let $k$ be any positive integer less than $2^{101}-1$. Then $k$ can be expressed in binary notation using at most 100 ones, and therefore there exists a positive integer $r$ and non-negative integers $a_{1}, a_{2}, \ldots, a_{r}$ such that $r \leq 100$ and $k=2^{a_{1}}+\cdots+2^{a_{r}}$. Notice that for a positive integer $s$ we have: $$ \begin{aligned} 2^{s} k & =2^{a_{1}+s}+2^{a_{2}+s}+\cdots+2^{a_{r-1}+s}+\left(1+1+2+\cdots+2^{s-1}\right) 2^{a_{r}} \\ & =2^{a_{1}+s}+2^{a_{2}+s}+\cdots+2^{a_{r-1}+s}+2^{a_{r}}+2^{a_{r}}+\cdots+2^{a_{r}+s-1} . \end{aligned} $$ This shows that $k$ has a multiple that is a sum of $r+s$ powers of two. In particular, we may take $s=100-r \geq 0$, which shows that $k$ has a multiple that is a fancy number. We will now prove that no multiple of $n=2^{101}-1$ is a fancy number. In fact we will prove a stronger statement, namely, that no multiple of $n$ can be expressed as the sum of at most 100 powers of 2 . For the sake of contradiction, suppose that there exists a positive integer $c$ such that $c n$ is the sum of at most 100 powers of 2 . We may assume that $c$ is the smallest such integer. By repeatedly merging equal powers of two in the representation of $c n$ we may assume that $$ c n=2^{a_{1}}+2^{a_{2}}+\cdots+2^{a_{r}} $$ where $r \leq 100$ and $a_{1}<a_{2}<\ldots<a_{r}$ are distinct non-negative integers. Consider the following two cases: - If $a_{r} \geq 101$, then $2^{a_{r}}-2^{a_{r}-101}=2^{a_{r}-101} n$. It follows that $2^{a_{1}}+2^{a_{2}}+\cdots+2^{a_{r}-1}+2^{a_{r}-101}$ would be a multiple of $n$ that is smaller than $c n$. This contradicts the minimality of $c$. - If $a_{r} \leq 100$, then $\left\{a_{1}, \ldots, a_{r}\right\}$ is a proper subset of $\{0,1, \ldots, 100\}$. Then $$ n \leq c n<2^{0}+2^{1}+\cdots+2^{100}=n $$ This is also a contradiction. From these contradictions we conclude that it is impossible for cn to be the sum of at most 100 powers of 2 . In particular, no multiple of $n$ is a fancy number.
{ "resource_path": "APMO/segmented/en-apmo2016_sol.jsonl", "problem_match": "\nProblem 2.", "solution_match": "\nSolution." }
3b0e7405-eba8-5a35-9ddf-4a27ed786d7b
605,693
The country Dreamland consists of 2016 cities. The airline Starways wants to establish some one-way flights between pairs of cities in such a way that each city has exactly one flight out of it. Find the smallest positive integer $k$ such that no matter how Starways establishes its flights, the cities can always be partitioned into $k$ groups so that from any city it is not possible to reach another city in the same group by using at most 28 flights. ##
The flights established by Starways yield a directed graph $G$ on 2016 vertices in which each vertex has out-degree equal to 1. We first show that we need at least 57 groups. For this, suppose that $G$ has a directed cycle of length 57. Then, for any two cities in the cycle, one is reachable from the other using at most 28 flights. So no two cities in the cycle can belong to the same group. Hence, we need at least 57 groups. We will now show that 57 groups are enough. Consider another auxiliary directed graph $H$ in which the vertices are the cities of Dreamland and there is an arrow from city $u$ to city $v$ if $u$ can be reached from $v$ using at most 28 flights. Each city has out-degree at most 28 . We will be done if we can split the cities of $H$ in at most 57 groups such that there are no arrows between vertices of the same group. We prove the following stronger statement. Lemma: Suppose we have a directed graph on $n \geq 1$ vertices such that each vertex has out-degree at most 28. Then the vertices can be partitioned into 57 groups in such a way that no vertices in the same group are connected by an arrow. Proof: We apply induction. The result is clear for 1 vertex. Now suppose we have more than one vertex. Since the out-degree of each vertex is at most 28 , there is a vertex, say $v$, with in-degree at most 28. If we remove the vertex $v$ we obtain a graph with fewer vertices which still satifies the conditions, so by inductive hypothesis we may split it into at most 57 groups with no adjacent vertices in the same group. Since $v$ has in-degree and out-degree at most 28 , it has at most 56 neighboors in the original directed graph. Therefore, we may add $v$ back and place it in a group in which it has no neighbors. This completes the inductive step.
57
Yes
Yes
math-word-problem
Combinatorics
The country Dreamland consists of 2016 cities. The airline Starways wants to establish some one-way flights between pairs of cities in such a way that each city has exactly one flight out of it. Find the smallest positive integer $k$ such that no matter how Starways establishes its flights, the cities can always be partitioned into $k$ groups so that from any city it is not possible to reach another city in the same group by using at most 28 flights. ## Answer: 57
The flights established by Starways yield a directed graph $G$ on 2016 vertices in which each vertex has out-degree equal to 1. We first show that we need at least 57 groups. For this, suppose that $G$ has a directed cycle of length 57. Then, for any two cities in the cycle, one is reachable from the other using at most 28 flights. So no two cities in the cycle can belong to the same group. Hence, we need at least 57 groups. We will now show that 57 groups are enough. Consider another auxiliary directed graph $H$ in which the vertices are the cities of Dreamland and there is an arrow from city $u$ to city $v$ if $u$ can be reached from $v$ using at most 28 flights. Each city has out-degree at most 28 . We will be done if we can split the cities of $H$ in at most 57 groups such that there are no arrows between vertices of the same group. We prove the following stronger statement. Lemma: Suppose we have a directed graph on $n \geq 1$ vertices such that each vertex has out-degree at most 28. Then the vertices can be partitioned into 57 groups in such a way that no vertices in the same group are connected by an arrow. Proof: We apply induction. The result is clear for 1 vertex. Now suppose we have more than one vertex. Since the out-degree of each vertex is at most 28 , there is a vertex, say $v$, with in-degree at most 28. If we remove the vertex $v$ we obtain a graph with fewer vertices which still satifies the conditions, so by inductive hypothesis we may split it into at most 57 groups with no adjacent vertices in the same group. Since $v$ has in-degree and out-degree at most 28 , it has at most 56 neighboors in the original directed graph. Therefore, we may add $v$ back and place it in a group in which it has no neighbors. This completes the inductive step.
{ "resource_path": "APMO/segmented/en-apmo2016_sol.jsonl", "problem_match": "\nProblem 4.", "solution_match": "\nSolution." }
842fab19-0a9e-5f76-b92c-64771e2a0233
260,724
A collection of $n$ squares on the plane is called tri-connected if the following criteria are satisfied: (i) All the squares are congruent. (ii) If two squares have a point $P$ in common, then $P$ is a vertex of each of the squares. (iii) Each square touches exactly three other squares. How many positive integers $n$ are there with $2018 \leq n \leq 3018$, such that there exists a collection of $n$ squares that is tri-connected?
We will prove that there is no tri-connected collection if $n$ is odd, and that tri-connected collections exist for all even $n \geq 38$. Since there are 501 even numbers in the range from 2018 to 3018, this yields 501 as the answer. For any two different squares $A$ and $B$, let us write $A \sim B$ to mean that square $A$ touches square $B$. Since each square touches exactly three other squares, and there are $n$ squares in total, the total number of instances of $A \sim B$ is $3 n$. But $A \sim B$ if and only if $B \sim A$. Hence the total number of instances of $A \sim B$ is even. Thus $3 n$ and hence also $n$ is even. We now construct tri-connected collections for each even $n$ in the range. We show two Construction 1 The idea is to use the following two configurations. Observe that in each configuration every square is related to three squares except for the leftmost and rightmost squares which are related to two squares. Note that the configuration on the left is of variable length. Also observe that multiple copies of the configuration on the right can be chained together to end around corners. ![](https://cdn.mathpix.com/cropped/2024_11_22_c87ece96a341aa1506ccg-5.jpg?height=164&width=835&top_left_y=752&top_left_x=625) Putting the above two types of configurations together as in the following figure yields a tri-connected collection for every even $n \geq 38$. ![](https://cdn.mathpix.com/cropped/2024_11_22_c87ece96a341aa1506ccg-5.jpg?height=309&width=789&top_left_y=1099&top_left_x=631) Construction 2 Consider a regular $4 n$-gon $A_{1} A_{2} \cdots A_{4 n}$, and make $4 n$ squares on the outside of the $4 n$-gon with one side being on the $4 n$-gon. Reflect squares sharing sides $A_{4 m+2} A_{4 m+3}, A_{4 m+3} A_{4 m+4}$ across line $A_{4 m+2} A_{4 m+4}$, for $0 \leq m \leq n-1$. This will produce a tri-connected set of $6 n$ squares, as long as the squares inside the $4 n$-gon do not intersect. When $n \geq 4$, this will be true. The picture for $n=24$ is as follows: ![](https://cdn.mathpix.com/cropped/2024_11_22_c87ece96a341aa1506ccg-5.jpg?height=830&width=824&top_left_y=1758&top_left_x=593) To treat the other cases, consider the following gadget ![](https://cdn.mathpix.com/cropped/2024_11_22_c87ece96a341aa1506ccg-6.jpg?height=184&width=272&top_left_y=296&top_left_x=869) Two squares touch 3 other squares, and the squares containing $X, Y$ touch 2 other squares. Take the $4 n$-gon from above, and break it into two along the line $A_{1} A_{2 n}$, moving the two parts away from that line. Do so until the gaps can be exactly filled by inserting two copies of the above figure, so that the vertices $X, Y$ touch the two vertices which used to be $A_{1}$ in one instance, and the two vertices which used to be $A_{2 n}$ in the other. This gives us a valid configuration for $6 n+8$ squares, $n \geq 4$. Finally, if we had instead spread the two parts out more and inserted two copies of the above figure into each gap, we would get $6 n+16$ for $n \geq 4$, which finishes the proof for all even numbers at least 36 .
501
Yes
Yes
math-word-problem
Combinatorics
A collection of $n$ squares on the plane is called tri-connected if the following criteria are satisfied: (i) All the squares are congruent. (ii) If two squares have a point $P$ in common, then $P$ is a vertex of each of the squares. (iii) Each square touches exactly three other squares. How many positive integers $n$ are there with $2018 \leq n \leq 3018$, such that there exists a collection of $n$ squares that is tri-connected? Answer: 501
We will prove that there is no tri-connected collection if $n$ is odd, and that tri-connected collections exist for all even $n \geq 38$. Since there are 501 even numbers in the range from 2018 to 3018, this yields 501 as the answer. For any two different squares $A$ and $B$, let us write $A \sim B$ to mean that square $A$ touches square $B$. Since each square touches exactly three other squares, and there are $n$ squares in total, the total number of instances of $A \sim B$ is $3 n$. But $A \sim B$ if and only if $B \sim A$. Hence the total number of instances of $A \sim B$ is even. Thus $3 n$ and hence also $n$ is even. We now construct tri-connected collections for each even $n$ in the range. We show two Construction 1 The idea is to use the following two configurations. Observe that in each configuration every square is related to three squares except for the leftmost and rightmost squares which are related to two squares. Note that the configuration on the left is of variable length. Also observe that multiple copies of the configuration on the right can be chained together to end around corners. ![](https://cdn.mathpix.com/cropped/2024_11_22_c87ece96a341aa1506ccg-5.jpg?height=164&width=835&top_left_y=752&top_left_x=625) Putting the above two types of configurations together as in the following figure yields a tri-connected collection for every even $n \geq 38$. ![](https://cdn.mathpix.com/cropped/2024_11_22_c87ece96a341aa1506ccg-5.jpg?height=309&width=789&top_left_y=1099&top_left_x=631) Construction 2 Consider a regular $4 n$-gon $A_{1} A_{2} \cdots A_{4 n}$, and make $4 n$ squares on the outside of the $4 n$-gon with one side being on the $4 n$-gon. Reflect squares sharing sides $A_{4 m+2} A_{4 m+3}, A_{4 m+3} A_{4 m+4}$ across line $A_{4 m+2} A_{4 m+4}$, for $0 \leq m \leq n-1$. This will produce a tri-connected set of $6 n$ squares, as long as the squares inside the $4 n$-gon do not intersect. When $n \geq 4$, this will be true. The picture for $n=24$ is as follows: ![](https://cdn.mathpix.com/cropped/2024_11_22_c87ece96a341aa1506ccg-5.jpg?height=830&width=824&top_left_y=1758&top_left_x=593) To treat the other cases, consider the following gadget ![](https://cdn.mathpix.com/cropped/2024_11_22_c87ece96a341aa1506ccg-6.jpg?height=184&width=272&top_left_y=296&top_left_x=869) Two squares touch 3 other squares, and the squares containing $X, Y$ touch 2 other squares. Take the $4 n$-gon from above, and break it into two along the line $A_{1} A_{2 n}$, moving the two parts away from that line. Do so until the gaps can be exactly filled by inserting two copies of the above figure, so that the vertices $X, Y$ touch the two vertices which used to be $A_{1}$ in one instance, and the two vertices which used to be $A_{2 n}$ in the other. This gives us a valid configuration for $6 n+8$ squares, $n \geq 4$. Finally, if we had instead spread the two parts out more and inserted two copies of the above figure into each gap, we would get $6 n+16$ for $n \geq 4$, which finishes the proof for all even numbers at least 36 .
{ "resource_path": "APMO/segmented/en-apmo2018_sol.jsonl", "problem_match": "\nProblem 3.", "solution_match": "\nSolution." }
99df8265-842c-5db0-8573-bcaa6c1c8dd8
605,916
Find all integers $n$ satisfying $n \geq 2$ and $\frac{\sigma(n)}{p(n)-1}=n$, in which $\sigma(n)$ denotes the sum of all positive divisors of $n$, and $p(n)$ denotes the largest prime divisor of $n$.
Let $n=p_{1}^{\alpha_{1}} \cdot \ldots \cdot p_{k}^{\alpha_{k}}$ be the prime factorization of $n$ with $p_{1}<\ldots<p_{k}$, so that $p(n)=p_{k}$ and $\sigma(n)=\left(1+p_{1}+\cdots+p_{1}^{\alpha_{1}}\right) \ldots\left(1+p_{k}+\cdots+p_{k}^{\alpha_{k}}\right)$. Hence $p_{k}-1=\frac{\sigma(n)}{n}=\prod_{i=1}^{k}\left(1+\frac{1}{p_{i}}+\cdots+\frac{1}{p_{i}^{\alpha_{i}}}\right)<\prod_{i=1}^{k} \frac{1}{1-\frac{1}{p_{i}}}=\prod_{i=1}^{k}\left(1+\frac{1}{p_{i}-1}\right) \leq \prod_{i=1}^{k}\left(1+\frac{1}{i}\right)=k+1$, that is, $p_{k}-1<k+1$, which is impossible for $k \geq 3$, because in this case $p_{k}-1 \geq 2 k-2 \geq k+1$. Then $k \leq 2$ and $p_{k}<k+2 \leq 4$, which implies $p_{k} \leq 3$. If $k=1$ then $n=p^{\alpha}$ and $\sigma(n)=1+p+\cdots+p^{\alpha}$, and in this case $n \nmid \sigma(n)$, which is not possible. Thus $k=2$, and $n=2^{\alpha} 3^{\beta}$ with $\alpha, \beta>0$. If $\alpha>1$ or $\beta>1$, $$ \frac{\sigma(n)}{n}>\left(1+\frac{1}{2}\right)\left(1+\frac{1}{3}\right)=2 . $$ Therefore $\alpha=\beta=1$ and the only answer is $n=6$. Comment: There are other ways to deal with the case $n=2^{\alpha} 3^{\beta}$. For instance, we have $2^{\alpha+2} 3^{\beta}=\left(2^{\alpha+1}-1\right)\left(3^{\beta+1}-1\right)$. Since $2^{\alpha+1}-1$ is not divisible by 2 , and $3^{\beta+1}-1$ is not divisible by 3 , we have $$ \left\{\begin{array} { l } { 2 ^ { \alpha + 1 } - 1 = 3 ^ { \beta } } \\ { 3 ^ { \beta + 1 } - 1 = 2 ^ { \alpha + 2 } } \end{array} \Longleftrightarrow \left\{\begin{array} { c } { 2 ^ { \alpha + 1 } - 1 = 3 ^ { \beta } } \\ { 3 \cdot ( 2 ^ { \alpha + 1 } - 1 ) - 1 = 2 \cdot 2 ^ { \alpha + 1 } } \end{array} \Longleftrightarrow \left\{\begin{array}{r} 2^{\alpha+1}=4 \\ 3^{\beta}=3 \end{array}\right.\right.\right. $$ and $n=2^{\alpha} 3^{\beta}=6$.
6
Yes
Yes
math-word-problem
Number Theory
Find all integers $n$ satisfying $n \geq 2$ and $\frac{\sigma(n)}{p(n)-1}=n$, in which $\sigma(n)$ denotes the sum of all positive divisors of $n$, and $p(n)$ denotes the largest prime divisor of $n$. Answer: $n=6$.
Let $n=p_{1}^{\alpha_{1}} \cdot \ldots \cdot p_{k}^{\alpha_{k}}$ be the prime factorization of $n$ with $p_{1}<\ldots<p_{k}$, so that $p(n)=p_{k}$ and $\sigma(n)=\left(1+p_{1}+\cdots+p_{1}^{\alpha_{1}}\right) \ldots\left(1+p_{k}+\cdots+p_{k}^{\alpha_{k}}\right)$. Hence $p_{k}-1=\frac{\sigma(n)}{n}=\prod_{i=1}^{k}\left(1+\frac{1}{p_{i}}+\cdots+\frac{1}{p_{i}^{\alpha_{i}}}\right)<\prod_{i=1}^{k} \frac{1}{1-\frac{1}{p_{i}}}=\prod_{i=1}^{k}\left(1+\frac{1}{p_{i}-1}\right) \leq \prod_{i=1}^{k}\left(1+\frac{1}{i}\right)=k+1$, that is, $p_{k}-1<k+1$, which is impossible for $k \geq 3$, because in this case $p_{k}-1 \geq 2 k-2 \geq k+1$. Then $k \leq 2$ and $p_{k}<k+2 \leq 4$, which implies $p_{k} \leq 3$. If $k=1$ then $n=p^{\alpha}$ and $\sigma(n)=1+p+\cdots+p^{\alpha}$, and in this case $n \nmid \sigma(n)$, which is not possible. Thus $k=2$, and $n=2^{\alpha} 3^{\beta}$ with $\alpha, \beta>0$. If $\alpha>1$ or $\beta>1$, $$ \frac{\sigma(n)}{n}>\left(1+\frac{1}{2}\right)\left(1+\frac{1}{3}\right)=2 . $$ Therefore $\alpha=\beta=1$ and the only answer is $n=6$. Comment: There are other ways to deal with the case $n=2^{\alpha} 3^{\beta}$. For instance, we have $2^{\alpha+2} 3^{\beta}=\left(2^{\alpha+1}-1\right)\left(3^{\beta+1}-1\right)$. Since $2^{\alpha+1}-1$ is not divisible by 2 , and $3^{\beta+1}-1$ is not divisible by 3 , we have $$ \left\{\begin{array} { l } { 2 ^ { \alpha + 1 } - 1 = 3 ^ { \beta } } \\ { 3 ^ { \beta + 1 } - 1 = 2 ^ { \alpha + 2 } } \end{array} \Longleftrightarrow \left\{\begin{array} { c } { 2 ^ { \alpha + 1 } - 1 = 3 ^ { \beta } } \\ { 3 \cdot ( 2 ^ { \alpha + 1 } - 1 ) - 1 = 2 \cdot 2 ^ { \alpha + 1 } } \end{array} \Longleftrightarrow \left\{\begin{array}{r} 2^{\alpha+1}=4 \\ 3^{\beta}=3 \end{array}\right.\right.\right. $$ and $n=2^{\alpha} 3^{\beta}=6$.
{ "resource_path": "APMO/segmented/en-apmo2023_sol.jsonl", "problem_match": "# Problem 2", "solution_match": "# Solution\n\n" }
8ef1d7ed-6915-53dc-ba6b-a82e5c8b3aae
606,316
Let $S$ be the set of positive real numbers. Find all functions $f: S^{3} \rightarrow S$ such that, for all positive real numbers $x, y, z$ and $k$, the following three conditions are satisfied: (i) $x f(x, y, z)=z f(z, y, x)$; (ii) $f\left(x, k y, k^{2} z\right)=k f(x, y, z)$; (iii) $f(1, k, k+1)=k+1$. (United Kingdom)
It follows from the properties of function $f$ that, for all $x, y, z, a, b>0$, $f\left(a^{2} x, a b y, b^{2} z\right)=b f\left(a^{2} x, a y, z\right)=b \cdot \frac{z}{a^{2} x} f\left(z, a y, a^{2} x\right)=\frac{b z}{a x} f(z, y, x)=\frac{b}{a} f(x, y, z)$. We shall choose $a$ and $b$ in such a way that the triple $\left(a^{2} x, a b y, b^{2} z\right)$ is of the form $(1, k, k+1)$ for some $k$ : namely, we take $a=\frac{1}{\sqrt{x}}$ and $b$ satisfying $b^{2} z-a b y=1$, which upon solving the quadratic equation yields $b=\frac{y+\sqrt{y^{2}+4 x z}}{2 z \sqrt{x}}$ and $k=\frac{y\left(y+\sqrt{y^{2}+4 x z}\right)}{2 x z}$. Now we easily obtain $$ f(x, y, z)=\frac{a}{b} f\left(a^{2} x, a b y, b^{2} z\right)=\frac{a}{b} f(1, k, k+1)=\frac{a}{b}(k+1)=\frac{y+\sqrt{y^{2}+4 x z}}{2 x} . $$ It is directly verified that $f$ satisfies the problem conditions.
\frac{y+\sqrt{y^{2}+4 x z}}{2 x}
Yes
Yes
math-word-problem
Algebra
Let $S$ be the set of positive real numbers. Find all functions $f: S^{3} \rightarrow S$ such that, for all positive real numbers $x, y, z$ and $k$, the following three conditions are satisfied: (i) $x f(x, y, z)=z f(z, y, x)$; (ii) $f\left(x, k y, k^{2} z\right)=k f(x, y, z)$; (iii) $f(1, k, k+1)=k+1$. (United Kingdom)
It follows from the properties of function $f$ that, for all $x, y, z, a, b>0$, $f\left(a^{2} x, a b y, b^{2} z\right)=b f\left(a^{2} x, a y, z\right)=b \cdot \frac{z}{a^{2} x} f\left(z, a y, a^{2} x\right)=\frac{b z}{a x} f(z, y, x)=\frac{b}{a} f(x, y, z)$. We shall choose $a$ and $b$ in such a way that the triple $\left(a^{2} x, a b y, b^{2} z\right)$ is of the form $(1, k, k+1)$ for some $k$ : namely, we take $a=\frac{1}{\sqrt{x}}$ and $b$ satisfying $b^{2} z-a b y=1$, which upon solving the quadratic equation yields $b=\frac{y+\sqrt{y^{2}+4 x z}}{2 z \sqrt{x}}$ and $k=\frac{y\left(y+\sqrt{y^{2}+4 x z}\right)}{2 x z}$. Now we easily obtain $$ f(x, y, z)=\frac{a}{b} f\left(a^{2} x, a b y, b^{2} z\right)=\frac{a}{b} f(1, k, k+1)=\frac{a}{b}(k+1)=\frac{y+\sqrt{y^{2}+4 x z}}{2 x} . $$ It is directly verified that $f$ satisfies the problem conditions.
{ "resource_path": "Balkan_MO/segmented/en-2013-BMO-type2.jsonl", "problem_match": "\n3.", "solution_match": "\n3." }
9a3cfccb-47cd-5f74-833c-faf45dc1786a
604,314
Let $n$ be a positive integer. A regular hexagon with side length $n$ is divided into equilateral triangles with side length 1 by lines parallel to its sides. Find the number of regular hexagons all of whose vertices are among the vertices of the equilateral triangles.
By a lattice hexagon we will mean a regular hexagon whose sides run along edges of the lattice. Given any regular hexagon $H$, we construct a lattice hexagon whose edges pass through the vertices of $H$, as shown in the figure, which we will call the enveloping lattice hexagon of $H$. Given a lattice hexagon $G$ of side length $m$, the number of regular hexagons whose enveloping lattice hexagon is $G$ is exactly $m$. Yet also there are precisely $3(n-m)(n-m+1)+1$ lattice hexagons of side length $m$ in our lattice: they are those with centres lying at most $n-m$ steps from the centre of the lattice. In particular, the total number of regular hexagons equals ![](https://cdn.mathpix.com/cropped/2024_12_10_86b1467c9ecfa953dbf8g-5.jpg?height=461&width=513&top_left_y=1437&top_left_x=1314) $N=\sum_{m=1}^{n}(3(n-m)(n-m+1)+1) m=\left(3 n^{2}+3 n\right) \sum_{m=1}^{n} m-3(2 m+1) \sum_{m=1}^{n} m^{2}+3 \sum_{m=1}^{n} m^{3}$. Since $\sum_{m=1}^{n} m=\frac{n(n+1)}{2}, \sum_{m=1}^{n} m^{2}=\frac{n(n+1)(2 n+1)}{6}$ and $\sum_{m=1}^{n} m^{3}=\left(\frac{n(n+1)}{2}\right)^{2}$ it is easily checked that $N=\left(\frac{n(n+1)}{2}\right)^{2}$.
\left(\frac{n(n+1)}{2}\right)^{2}
Yes
Yes
math-word-problem
Combinatorics
Let $n$ be a positive integer. A regular hexagon with side length $n$ is divided into equilateral triangles with side length 1 by lines parallel to its sides. Find the number of regular hexagons all of whose vertices are among the vertices of the equilateral triangles.
By a lattice hexagon we will mean a regular hexagon whose sides run along edges of the lattice. Given any regular hexagon $H$, we construct a lattice hexagon whose edges pass through the vertices of $H$, as shown in the figure, which we will call the enveloping lattice hexagon of $H$. Given a lattice hexagon $G$ of side length $m$, the number of regular hexagons whose enveloping lattice hexagon is $G$ is exactly $m$. Yet also there are precisely $3(n-m)(n-m+1)+1$ lattice hexagons of side length $m$ in our lattice: they are those with centres lying at most $n-m$ steps from the centre of the lattice. In particular, the total number of regular hexagons equals ![](https://cdn.mathpix.com/cropped/2024_12_10_86b1467c9ecfa953dbf8g-5.jpg?height=461&width=513&top_left_y=1437&top_left_x=1314) $N=\sum_{m=1}^{n}(3(n-m)(n-m+1)+1) m=\left(3 n^{2}+3 n\right) \sum_{m=1}^{n} m-3(2 m+1) \sum_{m=1}^{n} m^{2}+3 \sum_{m=1}^{n} m^{3}$. Since $\sum_{m=1}^{n} m=\frac{n(n+1)}{2}, \sum_{m=1}^{n} m^{2}=\frac{n(n+1)(2 n+1)}{6}$ and $\sum_{m=1}^{n} m^{3}=\left(\frac{n(n+1)}{2}\right)^{2}$ it is easily checked that $N=\left(\frac{n(n+1)}{2}\right)^{2}$.
{ "resource_path": "Balkan_MO/segmented/en-2014-BMO-type1.jsonl", "problem_match": "\nProblem 4.", "solution_match": "\nSolution." }
c2a0bdb9-1b48-5eb4-b675-fc82852509ab
604,375
Let $k$ be a positive integer. Determine the least integer $n \geqslant k+1$ for which the game below can be played indefinitely: Consider $n$ boxes, labelled $b_{1}, b_{2}, \ldots, b_{n}$. For each index $i$, box $b_{i}$ contains initially exactly $i$ coins. At each step, the following three substeps are performed in order: (1) Choose $k+1$ boxes; (2) Of these $k+1$ boxes, choose $k$ and remove at least half of the coins from each, and add to the remaining box, if labelled $b_{i}$, a number of $i$ coins. (3) If one of the boxes is left empty, the game ends; otherwise, go to the next step.
The required minimum is $n=2^{k}+k-1$. In this case the game can be played indefinitely by choosing the last $k+1$ boxes, $b_{2^{k}-1}, b_{2^{k}}, \ldots, b_{2^{k}+k-1}$, at each step: At step $r$, if box $b_{2^{k}+i-1}$ has exactly $m_{i}$ coins, then $\left\lceil m_{i} / 2\right\rceil$ coins are removed from that box, unless $i \equiv r-1(\bmod k+1)$, in which case $2^{k}+i-1$ coins are added. Thus, after step $r$ has been performed, box $b_{2^{k}+i-1}$ contains exactly $\left\lfloor m_{i} / 2\right\rfloor$ coins, unless $i \equiv r-1(\bmod k+1)$, in which case it contains exactly $m_{i}+2^{k}+i-1$ coins. This game goes on indefinitely, since each time a box is supplied, at least $2^{k}-1$ coins are added, so it will then contain at least $2^{k}$ coins, good enough to survive the $k$ steps to its next supply. We now show that no smaller value of $n$ works. So, let $n \leqslant 2^{k}+k-2$ and suppose, if possible, that a game can be played indefinitely. Notice that a box currently containing exactly $m$ coins survives at most $w=\left\lfloor\log _{2} m\right\rfloor$ withdrawals; this $w$ will be referred to as the weight of that box. The sum of the weigths of all boxes will referred to as the total weight. The argument hinges on the lemma below, proved at the end of the solution. Lemma. Performing a step does not increase the total weight. Moreover, supplying one of the first $2^{k}-2$ boxes strictly decreases the total weight. Since the total weight cannot strictly decrease indefinitely, $n>2^{k}-2$, and from some stage on none of the first $2^{k}-2$ boxes is ever supplied. Recall that each step involves a $(k+1)$-box choice. Since $n \leqslant 2^{k}+k-2$, from that stage on, each step involves a withdrawal from at least one of the first $2^{k}-2$ boxes. This cannot go on indefinitely, so the game must eventually come to an end, contradicting the assumption. Consequently, a game that can be played indefinitely requires $n \geqslant 2^{k}+$ $k-1$. Proof of the Lemma. Since a withdrawal from a box decreases its weight by at least 1 , it is sufficient to show that supplying a box increases its weight by at most $k$; and if the latter is amongst the first $2^{k}-2$ boxes, then its weight increases by at most $k-1$. Let the box to be supplied be $b_{i}$ and let it currently contain exactly $m_{i}$ coins, to proceed by case analysis: If $m_{i}=1$, the weight increases by $\left\lfloor\log _{2}(i+1)\right\rfloor \leqslant\left\lfloor\log _{2}\left(2^{k}+k-1\right)\right\rfloor \leqslant$ $\left\lfloor\log _{2}\left(2^{k+1}-2\right)\right\rfloor \leqslant k$; and if, in addition, $i \leqslant 2^{k}-2$, then the weight increases by $\left\lfloor\log _{2}(i+1)\right\rfloor \leqslant\left\lfloor\log _{2}\left(2^{k}-1\right)\right\rfloor=k-1$. If $m_{i}=2$, then the weight increases by $\left\lfloor\log _{2}(i+2)\right\rfloor-\left\lfloor\log _{2} 2\right\rfloor \leqslant$ $\left\lfloor\log _{2}\left(2^{k}+k\right)\right\rfloor-1 \leqslant k-1$. If $m_{i} \geqslant 3$, then the weight increases by $$ \begin{aligned} \left\lfloor\log _{2}\left(i+m_{i}\right)\right\rfloor-\left\lfloor\log _{2} m_{i}\right\rfloor & \leqslant\left\lfloor\log _{2}\left(i+m_{i}\right)-\log _{2} m_{i}\right\rfloor+1 \\ & \leqslant\left\lfloor\log _{2}\left(1+\frac{2^{k}+k-2}{3}\right)\right\rfloor+1 \leqslant k, \end{aligned} $$ since $1+\frac{1}{3}\left(2^{k}+k-2\right)=\frac{1}{3}\left(2^{k}+k+1\right)<\frac{1}{3}\left(2^{k}+2^{k+1}\right)=2^{k}$. Finally, let $i \leqslant 2^{k}-2$ to consider the subcases $m_{i}=3$ and $m_{i} \geqslant 4$. In the former subcase, the weight increases by $$ \left\lfloor\log _{2}(i+3)\right\rfloor-\left\lfloor\log _{2} 3\right\rfloor \leqslant\left\lfloor\log _{2}\left(2^{k}+1\right)\right\rfloor-1=k-1, $$ and in the latter by $$ \begin{aligned} \left\lfloor\log _{2}\left(i+m_{i}\right)\right\rfloor-\left\lfloor\log _{2} m_{i}\right\rfloor & \leqslant\left\lfloor\log _{2}\left(i+m_{i}\right)-\log _{2} m_{i}\right\rfloor+1 \\ & \leqslant\left\lfloor\log _{2}\left(1+\frac{2^{k}-2}{4}\right)\right\rfloor+1 \leqslant k-1, \end{aligned} $$ since $1+\frac{1}{4}\left(2^{k}-2\right)=\frac{1}{4}\left(2^{k}+2\right)<2^{k-2}+1$. This ends the proof and completes the solution.
2^{k}+k-1
Yes
Yes
math-word-problem
Combinatorics
Let $k$ be a positive integer. Determine the least integer $n \geqslant k+1$ for which the game below can be played indefinitely: Consider $n$ boxes, labelled $b_{1}, b_{2}, \ldots, b_{n}$. For each index $i$, box $b_{i}$ contains initially exactly $i$ coins. At each step, the following three substeps are performed in order: (1) Choose $k+1$ boxes; (2) Of these $k+1$ boxes, choose $k$ and remove at least half of the coins from each, and add to the remaining box, if labelled $b_{i}$, a number of $i$ coins. (3) If one of the boxes is left empty, the game ends; otherwise, go to the next step.
The required minimum is $n=2^{k}+k-1$. In this case the game can be played indefinitely by choosing the last $k+1$ boxes, $b_{2^{k}-1}, b_{2^{k}}, \ldots, b_{2^{k}+k-1}$, at each step: At step $r$, if box $b_{2^{k}+i-1}$ has exactly $m_{i}$ coins, then $\left\lceil m_{i} / 2\right\rceil$ coins are removed from that box, unless $i \equiv r-1(\bmod k+1)$, in which case $2^{k}+i-1$ coins are added. Thus, after step $r$ has been performed, box $b_{2^{k}+i-1}$ contains exactly $\left\lfloor m_{i} / 2\right\rfloor$ coins, unless $i \equiv r-1(\bmod k+1)$, in which case it contains exactly $m_{i}+2^{k}+i-1$ coins. This game goes on indefinitely, since each time a box is supplied, at least $2^{k}-1$ coins are added, so it will then contain at least $2^{k}$ coins, good enough to survive the $k$ steps to its next supply. We now show that no smaller value of $n$ works. So, let $n \leqslant 2^{k}+k-2$ and suppose, if possible, that a game can be played indefinitely. Notice that a box currently containing exactly $m$ coins survives at most $w=\left\lfloor\log _{2} m\right\rfloor$ withdrawals; this $w$ will be referred to as the weight of that box. The sum of the weigths of all boxes will referred to as the total weight. The argument hinges on the lemma below, proved at the end of the solution. Lemma. Performing a step does not increase the total weight. Moreover, supplying one of the first $2^{k}-2$ boxes strictly decreases the total weight. Since the total weight cannot strictly decrease indefinitely, $n>2^{k}-2$, and from some stage on none of the first $2^{k}-2$ boxes is ever supplied. Recall that each step involves a $(k+1)$-box choice. Since $n \leqslant 2^{k}+k-2$, from that stage on, each step involves a withdrawal from at least one of the first $2^{k}-2$ boxes. This cannot go on indefinitely, so the game must eventually come to an end, contradicting the assumption. Consequently, a game that can be played indefinitely requires $n \geqslant 2^{k}+$ $k-1$. Proof of the Lemma. Since a withdrawal from a box decreases its weight by at least 1 , it is sufficient to show that supplying a box increases its weight by at most $k$; and if the latter is amongst the first $2^{k}-2$ boxes, then its weight increases by at most $k-1$. Let the box to be supplied be $b_{i}$ and let it currently contain exactly $m_{i}$ coins, to proceed by case analysis: If $m_{i}=1$, the weight increases by $\left\lfloor\log _{2}(i+1)\right\rfloor \leqslant\left\lfloor\log _{2}\left(2^{k}+k-1\right)\right\rfloor \leqslant$ $\left\lfloor\log _{2}\left(2^{k+1}-2\right)\right\rfloor \leqslant k$; and if, in addition, $i \leqslant 2^{k}-2$, then the weight increases by $\left\lfloor\log _{2}(i+1)\right\rfloor \leqslant\left\lfloor\log _{2}\left(2^{k}-1\right)\right\rfloor=k-1$. If $m_{i}=2$, then the weight increases by $\left\lfloor\log _{2}(i+2)\right\rfloor-\left\lfloor\log _{2} 2\right\rfloor \leqslant$ $\left\lfloor\log _{2}\left(2^{k}+k\right)\right\rfloor-1 \leqslant k-1$. If $m_{i} \geqslant 3$, then the weight increases by $$ \begin{aligned} \left\lfloor\log _{2}\left(i+m_{i}\right)\right\rfloor-\left\lfloor\log _{2} m_{i}\right\rfloor & \leqslant\left\lfloor\log _{2}\left(i+m_{i}\right)-\log _{2} m_{i}\right\rfloor+1 \\ & \leqslant\left\lfloor\log _{2}\left(1+\frac{2^{k}+k-2}{3}\right)\right\rfloor+1 \leqslant k, \end{aligned} $$ since $1+\frac{1}{3}\left(2^{k}+k-2\right)=\frac{1}{3}\left(2^{k}+k+1\right)<\frac{1}{3}\left(2^{k}+2^{k+1}\right)=2^{k}$. Finally, let $i \leqslant 2^{k}-2$ to consider the subcases $m_{i}=3$ and $m_{i} \geqslant 4$. In the former subcase, the weight increases by $$ \left\lfloor\log _{2}(i+3)\right\rfloor-\left\lfloor\log _{2} 3\right\rfloor \leqslant\left\lfloor\log _{2}\left(2^{k}+1\right)\right\rfloor-1=k-1, $$ and in the latter by $$ \begin{aligned} \left\lfloor\log _{2}\left(i+m_{i}\right)\right\rfloor-\left\lfloor\log _{2} m_{i}\right\rfloor & \leqslant\left\lfloor\log _{2}\left(i+m_{i}\right)-\log _{2} m_{i}\right\rfloor+1 \\ & \leqslant\left\lfloor\log _{2}\left(1+\frac{2^{k}-2}{4}\right)\right\rfloor+1 \leqslant k-1, \end{aligned} $$ since $1+\frac{1}{4}\left(2^{k}-2\right)=\frac{1}{4}\left(2^{k}+2\right)<2^{k-2}+1$. This ends the proof and completes the solution.
{ "resource_path": "Balkan_MO/segmented/en-2020-BMO-type1.jsonl", "problem_match": "## 2020 BMO, Problem 3", "solution_match": "\nSolution." }
21fcc46f-d1ea-5c74-a214-14209ff3879d
604,727
Problem. Consider an $n \times n$ grid consisting of $n^{2}$ unit cells, where $n \geqslant 3$ is a given odd positive integer. First, Dionysus colours each cell either red or blue. It is known that a frog can hop from one cell to another if and only if these cells have the same colour and share at least one vertex. Then, Xanthias views the colouring and next places $k$ frogs on the cells so that each of the $n^{2}$ cells can be reached by a frog in a finite number (possibly zero) of hops. Find the least value of $k$ for which this is always possible regardless of the colouring chosen by Dionysus. Note. Dionysus and Xanthias are characters from the play of Aristophanes 'frogs'. Dionysus is the known god of wine and Xanthias is his witty slave.
. Let $G$ be the graph whose vertices are all $(n+1)^{2}$ vertices of the grid and where two vertices are adjacent if and only if they are adjacent in the grid and moreover the two cells in either side of the corresponding edge have different colours. The connnected components of $G$, excluding the isolated vertices, are precisely the boundaries between pairs of monochromatic regions each of which can be covered by a single frog. Each time we add one of these components in the grid, it creates exactly one new monochromatic region. So the number of frogs required is one more than the number of such components of $G$. It is easy to check that every corner vertex of the grid has degree 0 , every boundary vertex of the grid has degree 0 or 1 and every 'internal' vertex of the grid has degree 0,2 or 4 . It is also easy to see that every component of $G$ which is not an isolated vertex must contain at least four vertices unless it is the boundary of a single corner of the grid, in which case it contains only three vertices. Writing $N$ for the number of components which are not isolated vertices, we see that in total they contain at least $4 N-4$ vertices. (As at most four of them contain 3 vertices and all others contain 4 vertices.) Since we also have at least 4 components which are isolated vertices, then $4 N=(4 N-4)+4 \leqslant(n+1)^{2}$. Thus $N \leqslant \frac{(n+1)^{2}}{4}$ and therefore the minimal number of frogs required is $\frac{(n+1)^{2}}{4}+1$. ![](https://cdn.mathpix.com/cropped/2024_12_10_b5da7837303016ab5616g-6.jpg?height=446&width=448&top_left_y=2013&top_left_x=833) This bound for $n=2 m+1$ is achieved by putting coordinates $(x, y)$ with $x, y \in\{0,1, \ldots, 2 m\}$ in the cells and colouring red all cells both of whose coordinates are even, and blue all other cells. An example for $n=9$ is shown above.
\frac{(n+1)^{2}}{4}+1
Yes
Yes
math-word-problem
Combinatorics
Problem. Consider an $n \times n$ grid consisting of $n^{2}$ unit cells, where $n \geqslant 3$ is a given odd positive integer. First, Dionysus colours each cell either red or blue. It is known that a frog can hop from one cell to another if and only if these cells have the same colour and share at least one vertex. Then, Xanthias views the colouring and next places $k$ frogs on the cells so that each of the $n^{2}$ cells can be reached by a frog in a finite number (possibly zero) of hops. Find the least value of $k$ for which this is always possible regardless of the colouring chosen by Dionysus. Note. Dionysus and Xanthias are characters from the play of Aristophanes 'frogs'. Dionysus is the known god of wine and Xanthias is his witty slave.
. Let $G$ be the graph whose vertices are all $(n+1)^{2}$ vertices of the grid and where two vertices are adjacent if and only if they are adjacent in the grid and moreover the two cells in either side of the corresponding edge have different colours. The connnected components of $G$, excluding the isolated vertices, are precisely the boundaries between pairs of monochromatic regions each of which can be covered by a single frog. Each time we add one of these components in the grid, it creates exactly one new monochromatic region. So the number of frogs required is one more than the number of such components of $G$. It is easy to check that every corner vertex of the grid has degree 0 , every boundary vertex of the grid has degree 0 or 1 and every 'internal' vertex of the grid has degree 0,2 or 4 . It is also easy to see that every component of $G$ which is not an isolated vertex must contain at least four vertices unless it is the boundary of a single corner of the grid, in which case it contains only three vertices. Writing $N$ for the number of components which are not isolated vertices, we see that in total they contain at least $4 N-4$ vertices. (As at most four of them contain 3 vertices and all others contain 4 vertices.) Since we also have at least 4 components which are isolated vertices, then $4 N=(4 N-4)+4 \leqslant(n+1)^{2}$. Thus $N \leqslant \frac{(n+1)^{2}}{4}$ and therefore the minimal number of frogs required is $\frac{(n+1)^{2}}{4}+1$. ![](https://cdn.mathpix.com/cropped/2024_12_10_b5da7837303016ab5616g-6.jpg?height=446&width=448&top_left_y=2013&top_left_x=833) This bound for $n=2 m+1$ is achieved by putting coordinates $(x, y)$ with $x, y \in\{0,1, \ldots, 2 m\}$ in the cells and colouring red all cells both of whose coordinates are even, and blue all other cells. An example for $n=9$ is shown above.
{ "resource_path": "Balkan_MO/segmented/en-2022-BMO-type1.jsonl", "problem_match": "# Problem 4", "solution_match": "\nSolution 1" }
b85b77fe-2996-59e8-8f01-d8b24287296b
604,919
Find the greatest integer $k \leq 2023$ for which the following holds: whenever Alice colours exactly $k$ numbers of the set $\{1,2, \ldots, 2023\}$ in red, Bob can colour some of the remaining uncoloured numbers in blue, such that the sum of the red numbers is the same as the sum of the blue numbers.
Answer: 592. For $k \geq 593$, Alice can color the greatest 593 numbers $1431,1432, \ldots, 2023$ and any other $(k-593)$ numbers so that their sum $s$ would satisfy $$ s \geq \frac{2023 \cdot 2024}{2}-\frac{1430 \cdot 1431}{2}>\frac{1}{2} \cdot\left(\frac{2023 \cdot 2024}{2}\right), $$ thus anyhow Bob chooses his numbers, the sum of his numbers will be less than Alice's numbers' sum. We now show that $k=592$ satisfies the condition. Let $s$ be the sum of Alice's 592 numbers; note that $s<\frac{1}{2} \cdot\left(\frac{2023 \cdot 2024}{2}\right)$. Below is a strategy for Bob to find some of the remaining 1431 numbers so that their sum is $$ s_{0}=\min \left\{s, \frac{2023.2024}{2}-2 s\right\} \leqslant \frac{1}{3} \cdot\left(\frac{2023 \cdot 2024}{2}\right) $$ (Clearly, if Bob finds some numbers whose sum is $\frac{2023.2024}{2}-2 s$, then the sum of remaining numbers will be $s$ ). Case 1. $s_{0} \geq 2024$. Let $s_{0}=2024 a+b$, where $0 \leqslant b \leqslant 2023$. Bob finds two of the remaining numbers with sum $b$ or $2024+b$, then he finds $a$ (or $a-1$ ) pairs among the remaining numbers with sum 2024 . Note that $a \leq 337$ since $s_{0} \leq \frac{1}{3} \cdot\left(\frac{2023 \cdot 2024}{2}\right)$. The $\left\lfloor\frac{b-1}{2}\right\rfloor$ pairs $$ (1, b-1),(2, b-2), \ldots,\left(\left\lfloor\frac{b-1}{2}\right\rfloor, b-\left\lfloor\frac{b-1}{2}\right\rfloor\right), $$ have sum of their components equal to $b$ and the $\left\lfloor\frac{2023+b}{2}\right\rfloor-b$ pairs $$ (2023, b+1),(2022, b+2), \ldots,\left(2024+b-\left\lfloor\frac{2023+b}{2}\right\rfloor,\left\lfloor\frac{2023+b}{2}\right\rfloor\right) $$ have sum of their components equal to $2024+b$. The total number of these pairs is $$ \left\lfloor\frac{2023+b}{2}\right\rfloor-b+\left\lfloor\frac{b-1}{2}\right\rfloor \geq \frac{2022+b}{2}+\frac{b-2}{2}-b=\frac{2020}{2}=1010>592 $$ hence some of these pairs have no red-colored components, so Bob can choose one of these pairs and color those two numbers in blue. Thus 594 numbers are colored so far. Further, the 1011 pairs $$ (1,2023),(2,2022), \ldots,(1011,1013) $$ have sum of the components equal to 2024. Among these, at least $1011-594=417>$ $337 \geq a$ pairs have no components colored, so Bob can choose $a$ (or $a-1$ ) uncolored pairs and color them all blue to achieve a collection of blue numbers with their sum equal to $s_{0}$. Case 2. $s_{0} \leq 2023$. Note that $s \geq 1+2+\ldots+592>2023$, thus we have $s_{0}=$ $\frac{2023 \cdot 2024}{2}-2 s$, i.e. $s=\frac{2023 \cdot 2024}{4}-\frac{s_{0}}{2}$. If $s_{0}>2 \cdot 593$, at least one of the 593 pairs $$ \left(1, s_{0}-1\right),\left(2, s_{0}-2\right), \ldots,\left(593, s_{0}-593\right) $$ have no red-colored components, so Bob can choose these two numbers and immediately achieve the sum of $s_{0}$. And if $s_{0} \leq 2 \cdot 593$, then $s=\frac{2023 \cdot 2024}{4}-\frac{s_{0}}{2} \geq(1432+1433+\ldots+2023)-593=839+(1434+1435+\ldots+2023)$, hence Alice cannot have colored any of the numbers $1,2, \ldots, 838$. Then Bob can easily choose one or two of these numbers having the sum of $s_{0}$.
592
Yes
Yes
math-word-problem
Combinatorics
Find the greatest integer $k \leq 2023$ for which the following holds: whenever Alice colours exactly $k$ numbers of the set $\{1,2, \ldots, 2023\}$ in red, Bob can colour some of the remaining uncoloured numbers in blue, such that the sum of the red numbers is the same as the sum of the blue numbers.
Answer: 592. For $k \geq 593$, Alice can color the greatest 593 numbers $1431,1432, \ldots, 2023$ and any other $(k-593)$ numbers so that their sum $s$ would satisfy $$ s \geq \frac{2023 \cdot 2024}{2}-\frac{1430 \cdot 1431}{2}>\frac{1}{2} \cdot\left(\frac{2023 \cdot 2024}{2}\right), $$ thus anyhow Bob chooses his numbers, the sum of his numbers will be less than Alice's numbers' sum. We now show that $k=592$ satisfies the condition. Let $s$ be the sum of Alice's 592 numbers; note that $s<\frac{1}{2} \cdot\left(\frac{2023 \cdot 2024}{2}\right)$. Below is a strategy for Bob to find some of the remaining 1431 numbers so that their sum is $$ s_{0}=\min \left\{s, \frac{2023.2024}{2}-2 s\right\} \leqslant \frac{1}{3} \cdot\left(\frac{2023 \cdot 2024}{2}\right) $$ (Clearly, if Bob finds some numbers whose sum is $\frac{2023.2024}{2}-2 s$, then the sum of remaining numbers will be $s$ ). Case 1. $s_{0} \geq 2024$. Let $s_{0}=2024 a+b$, where $0 \leqslant b \leqslant 2023$. Bob finds two of the remaining numbers with sum $b$ or $2024+b$, then he finds $a$ (or $a-1$ ) pairs among the remaining numbers with sum 2024 . Note that $a \leq 337$ since $s_{0} \leq \frac{1}{3} \cdot\left(\frac{2023 \cdot 2024}{2}\right)$. The $\left\lfloor\frac{b-1}{2}\right\rfloor$ pairs $$ (1, b-1),(2, b-2), \ldots,\left(\left\lfloor\frac{b-1}{2}\right\rfloor, b-\left\lfloor\frac{b-1}{2}\right\rfloor\right), $$ have sum of their components equal to $b$ and the $\left\lfloor\frac{2023+b}{2}\right\rfloor-b$ pairs $$ (2023, b+1),(2022, b+2), \ldots,\left(2024+b-\left\lfloor\frac{2023+b}{2}\right\rfloor,\left\lfloor\frac{2023+b}{2}\right\rfloor\right) $$ have sum of their components equal to $2024+b$. The total number of these pairs is $$ \left\lfloor\frac{2023+b}{2}\right\rfloor-b+\left\lfloor\frac{b-1}{2}\right\rfloor \geq \frac{2022+b}{2}+\frac{b-2}{2}-b=\frac{2020}{2}=1010>592 $$ hence some of these pairs have no red-colored components, so Bob can choose one of these pairs and color those two numbers in blue. Thus 594 numbers are colored so far. Further, the 1011 pairs $$ (1,2023),(2,2022), \ldots,(1011,1013) $$ have sum of the components equal to 2024. Among these, at least $1011-594=417>$ $337 \geq a$ pairs have no components colored, so Bob can choose $a$ (or $a-1$ ) uncolored pairs and color them all blue to achieve a collection of blue numbers with their sum equal to $s_{0}$. Case 2. $s_{0} \leq 2023$. Note that $s \geq 1+2+\ldots+592>2023$, thus we have $s_{0}=$ $\frac{2023 \cdot 2024}{2}-2 s$, i.e. $s=\frac{2023 \cdot 2024}{4}-\frac{s_{0}}{2}$. If $s_{0}>2 \cdot 593$, at least one of the 593 pairs $$ \left(1, s_{0}-1\right),\left(2, s_{0}-2\right), \ldots,\left(593, s_{0}-593\right) $$ have no red-colored components, so Bob can choose these two numbers and immediately achieve the sum of $s_{0}$. And if $s_{0} \leq 2 \cdot 593$, then $s=\frac{2023 \cdot 2024}{4}-\frac{s_{0}}{2} \geq(1432+1433+\ldots+2023)-593=839+(1434+1435+\ldots+2023)$, hence Alice cannot have colored any of the numbers $1,2, \ldots, 838$. Then Bob can easily choose one or two of these numbers having the sum of $s_{0}$.
{ "resource_path": "Balkan_MO/segmented/en-2023-BMO-type1.jsonl", "problem_match": "\nProblem 4.", "solution_match": "\nSolution." }
3d6962fe-c852-5854-8352-f3b3c572a632
604,984
There are 2016 costumers who entered a shop on a particular day. Every customer entered the shop exactly once. (i.e. the customer entered the shop, stayed there for some time and then left the shop without returning back.) Find the maximal $k$ such that the following holds: There are $k$ customers such that either all of them were in the shop at a specific time instance or no two of them were both in the shop at any time instance.
We show that the maximal $k$ is 45 . First we show that no larger $k$ can be achieved: We break the day at 45 disjoint time intervals and assume that at each time interval there were exactly 45 costumers who stayed in the shop only during that time interval (except in the last interval in which there were only 36 customers). We observe that there are no 46 people with the required property. Now we show that $k=45$ can be achieved: Suppose that customers $C_{1}, C_{2}, \ldots, C_{2016}$ visited the shop in this order. (If two or more customers entered the shop at exactly the same time then we break ties arbitrarily.) We define groups $A_{1}, A_{2}, \ldots$ of customers as follows: Starting with $C_{1}$ and proceeding in order, we place customer $C_{j}$ into the group $A_{i}$ where $i$ is the smallest index such that $A_{i}$ contains no customer $C_{j^{\prime}}$ with $j^{\prime}<j$ and such that $C_{j^{\prime}}$ was inside the shop once $C_{j}$ entered it. Clearly no two customers who are in the same group were inside the shop at the exact same time. So we may assume that every $A_{i}$ has at most 45 customers. Since $44 \cdot 45<2016$, by the pigeonhole principle there must be at least 45 (non-empty) groups. Let $C_{j}$ be a person in group $A_{45}$ and suppose that $C_{j}$ entered the shop at time $t_{j}$. Since we placed $C_{j}$ in group $A_{45}$ this means that for each $i<45$, there is a $j_{i}<j$ such that $C_{j_{i}} \in A_{i}$ and $C_{j_{i}}$ is still inside the shop at time $t_{j}$. Thus we have found a specific time instance, namely $t_{j}$, during which at least 45 customers were all inside the shop. Note: Instead of asking for the maximal $k$, an easier version is the following: Show that there are 45 customers such that either all of them were in the shop at a specific time instance or no two of them were both in the shop at any time instance.
45
Yes
Yes
math-word-problem
Combinatorics
There are 2016 costumers who entered a shop on a particular day. Every customer entered the shop exactly once. (i.e. the customer entered the shop, stayed there for some time and then left the shop without returning back.) Find the maximal $k$ such that the following holds: There are $k$ customers such that either all of them were in the shop at a specific time instance or no two of them were both in the shop at any time instance.
We show that the maximal $k$ is 45 . First we show that no larger $k$ can be achieved: We break the day at 45 disjoint time intervals and assume that at each time interval there were exactly 45 costumers who stayed in the shop only during that time interval (except in the last interval in which there were only 36 customers). We observe that there are no 46 people with the required property. Now we show that $k=45$ can be achieved: Suppose that customers $C_{1}, C_{2}, \ldots, C_{2016}$ visited the shop in this order. (If two or more customers entered the shop at exactly the same time then we break ties arbitrarily.) We define groups $A_{1}, A_{2}, \ldots$ of customers as follows: Starting with $C_{1}$ and proceeding in order, we place customer $C_{j}$ into the group $A_{i}$ where $i$ is the smallest index such that $A_{i}$ contains no customer $C_{j^{\prime}}$ with $j^{\prime}<j$ and such that $C_{j^{\prime}}$ was inside the shop once $C_{j}$ entered it. Clearly no two customers who are in the same group were inside the shop at the exact same time. So we may assume that every $A_{i}$ has at most 45 customers. Since $44 \cdot 45<2016$, by the pigeonhole principle there must be at least 45 (non-empty) groups. Let $C_{j}$ be a person in group $A_{45}$ and suppose that $C_{j}$ entered the shop at time $t_{j}$. Since we placed $C_{j}$ in group $A_{45}$ this means that for each $i<45$, there is a $j_{i}<j$ such that $C_{j_{i}} \in A_{i}$ and $C_{j_{i}}$ is still inside the shop at time $t_{j}$. Thus we have found a specific time instance, namely $t_{j}$, during which at least 45 customers were all inside the shop. Note: Instead of asking for the maximal $k$, an easier version is the following: Show that there are 45 customers such that either all of them were in the shop at a specific time instance or no two of them were both in the shop at any time instance.
{ "resource_path": "Balkan_Shortlist/segmented/en-2016_bmo_shortlist.jsonl", "problem_match": "\n## C2.", "solution_match": "\nSolution." }
ebcb4d04-2cb8-5da6-a385-f39daf4d2621
605,167
What is the least positive integer $k$ such that, in every convex 101 -gon, the sum of any $k$ diagonals is greater than or equal to the sum of the remaining diagonals?
Let $P Q=1$. Consider a convex 101 -gon such that one of its vertices is at $P$ and the remaining 100 vertices are within $\varepsilon$ of $Q$ where $\varepsilon$ is an arbitrarily small positive real. Let $k+l$ equal the total number $\frac{101.98}{2}=4949$ of diagonals. When $k \leq 4851$. the sum of the $k$ shortest diagonals is arbitrarily small. When $k \geq 4851$, the sum of the $k$ shortest diagonals is arbitrarily close to $k-4851=98-l$ and the sum of the remaining diagonals is arbitrarily close to $l$. Therefore, we need to have $l \leq 49$ and $k \geq 4900$. We proceed to show that $k=4900$ works. To this end, colour all $l=49$ remaining diagonals green. To each green diagonal $A B$, apart from, possibly, the last one, we will assign two red diagonals $A C$ and $C B$ so that no green diagonal is ever coloured red and no diagonal is coloured red twice. Suppose that we have already done this for $0 \leq i \leq 48$ green diagonals (thus forming $i$ red-red-green triangles) and let $A B$ be up next. Let $D$ be the set of all diagonals emanating from $A$ or $B$ and distinct from $A B$ : we have $|D|=2 \cdot 97=194$. Every red-red-green triangle formed thus far has at most two sides in $D$. Therefore, the subset $E$ of all as-of-yetuncoloured diagonals in $D$ contains at least 194-2i elements. When $i \leq 47,194-2 i \geq 100$. The total number of endpoints distinct from $A$ and $B$ of diagonals in $D$. however, is 99 . Therefore, two diagonals in $E$ have a common endpoint $C$ and we can assign $A C$ and $C B$ to $A B$. as needed. The case $i=48$ is slightly more tricky: this time, it is possible that no two diagonals in $E$ have a common endpoint other than $A$ and $B$. but, if so, then there are two diagonals in $E$ that intersect in a point interior to both. Otherwise, at least one (say, $a$ ) of the two vertices adjacent to $A$ is cut off from $B$ by the diagonals emanating from $A$ and at least one (say, $b$ ) of the two vertices adjacent to $B$ is cut off from $A$ by the diagonals emanating from $B$ (and $a \neq b$ ). This leaves us with at most 97 suitable endpoints and at least 98 diagonals in $E$. a contradiction. By the triangle inequality, this completes the solution. ## $\mathbb{O}_{1}^{2}$ $R_{1}$ ## Union of Mathematicians of Macedonia Sponsored by ![](https://cdn.mathpix.com/cropped/2024_12_07_5ed02c65c310265e18a7g-48.jpg?height=229&width=519&top_left_y=4473&top_left_x=1530) Homisinan
4900
Yes
Yes
math-word-problem
Geometry
What is the least positive integer $k$ such that, in every convex 101 -gon, the sum of any $k$ diagonals is greater than or equal to the sum of the remaining diagonals?
Let $P Q=1$. Consider a convex 101 -gon such that one of its vertices is at $P$ and the remaining 100 vertices are within $\varepsilon$ of $Q$ where $\varepsilon$ is an arbitrarily small positive real. Let $k+l$ equal the total number $\frac{101.98}{2}=4949$ of diagonals. When $k \leq 4851$. the sum of the $k$ shortest diagonals is arbitrarily small. When $k \geq 4851$, the sum of the $k$ shortest diagonals is arbitrarily close to $k-4851=98-l$ and the sum of the remaining diagonals is arbitrarily close to $l$. Therefore, we need to have $l \leq 49$ and $k \geq 4900$. We proceed to show that $k=4900$ works. To this end, colour all $l=49$ remaining diagonals green. To each green diagonal $A B$, apart from, possibly, the last one, we will assign two red diagonals $A C$ and $C B$ so that no green diagonal is ever coloured red and no diagonal is coloured red twice. Suppose that we have already done this for $0 \leq i \leq 48$ green diagonals (thus forming $i$ red-red-green triangles) and let $A B$ be up next. Let $D$ be the set of all diagonals emanating from $A$ or $B$ and distinct from $A B$ : we have $|D|=2 \cdot 97=194$. Every red-red-green triangle formed thus far has at most two sides in $D$. Therefore, the subset $E$ of all as-of-yetuncoloured diagonals in $D$ contains at least 194-2i elements. When $i \leq 47,194-2 i \geq 100$. The total number of endpoints distinct from $A$ and $B$ of diagonals in $D$. however, is 99 . Therefore, two diagonals in $E$ have a common endpoint $C$ and we can assign $A C$ and $C B$ to $A B$. as needed. The case $i=48$ is slightly more tricky: this time, it is possible that no two diagonals in $E$ have a common endpoint other than $A$ and $B$. but, if so, then there are two diagonals in $E$ that intersect in a point interior to both. Otherwise, at least one (say, $a$ ) of the two vertices adjacent to $A$ is cut off from $B$ by the diagonals emanating from $A$ and at least one (say, $b$ ) of the two vertices adjacent to $B$ is cut off from $A$ by the diagonals emanating from $B$ (and $a \neq b$ ). This leaves us with at most 97 suitable endpoints and at least 98 diagonals in $E$. a contradiction. By the triangle inequality, this completes the solution. ## $\mathbb{O}_{1}^{2}$ $R_{1}$ ## Union of Mathematicians of Macedonia Sponsored by ![](https://cdn.mathpix.com/cropped/2024_12_07_5ed02c65c310265e18a7g-48.jpg?height=229&width=519&top_left_y=4473&top_left_x=1530) Homisinan
{ "resource_path": "Balkan_Shortlist/segmented/en-2017_bmo_shortlist.jsonl", "problem_match": "\nC6", "solution_match": "\n## Solution" }
96677517-ae54-57e1-a5b2-abb6ff75e71f
605,552
Let $P$ be a point inside a triangle $A B C$ and let $a, b, c$ be the side lengths and $p$ the semi-perimeter of the triangle. Find the maximum value of $$ \min \left(\frac{P A}{p-a}, \frac{P B}{p-b}, \frac{P C}{p-c}\right) $$ over all possible choices of triangle $A B C$ and point $P$.
If $A B C$ is an equilateral triangle and $P$ its center, then $\frac{P A}{p-a}=\frac{P B}{p-b}=\frac{P C}{p-c}=\frac{2}{\sqrt{3}}$. We shall prove that $\frac{2}{\sqrt{3}}$ is the required value. Suppose without loss of generality that $\varangle A P B \geqslant 120^{\circ}$. Then $$ A B^{2} \geqslant P A^{2}+P B^{2}+P A \cdot P B \geqslant \frac{3}{4}(P A+P B)^{2} $$ i.e. $P A+P B \leqslant \frac{2}{\sqrt{3}} A B=\frac{2}{\sqrt{3}}((p-a)+(p-b))$, so at least one of the ratios $\frac{P A}{p-a}$ and $\frac{P B}{p-b}$ does not exceed $\frac{2}{\sqrt{3}}$.
\frac{2}{\sqrt{3}}
Yes
Yes
math-word-problem
Geometry
Let $P$ be a point inside a triangle $A B C$ and let $a, b, c$ be the side lengths and $p$ the semi-perimeter of the triangle. Find the maximum value of $$ \min \left(\frac{P A}{p-a}, \frac{P B}{p-b}, \frac{P C}{p-c}\right) $$ over all possible choices of triangle $A B C$ and point $P$.
If $A B C$ is an equilateral triangle and $P$ its center, then $\frac{P A}{p-a}=\frac{P B}{p-b}=\frac{P C}{p-c}=\frac{2}{\sqrt{3}}$. We shall prove that $\frac{2}{\sqrt{3}}$ is the required value. Suppose without loss of generality that $\varangle A P B \geqslant 120^{\circ}$. Then $$ A B^{2} \geqslant P A^{2}+P B^{2}+P A \cdot P B \geqslant \frac{3}{4}(P A+P B)^{2} $$ i.e. $P A+P B \leqslant \frac{2}{\sqrt{3}} A B=\frac{2}{\sqrt{3}}((p-a)+(p-b))$, so at least one of the ratios $\frac{P A}{p-a}$ and $\frac{P B}{p-b}$ does not exceed $\frac{2}{\sqrt{3}}$.
{ "resource_path": "Balkan_Shortlist/segmented/en-2018_bmo_shortlist.jsonl", "problem_match": "\nG3.", "solution_match": "\n## Solution." }
53c882ed-44a8-572a-bc80-fe722def841c
605,739
Let $n(n \geq 1)$ be a positive integer and $U=\{1, \ldots, n\}$. Let $S$ be a nonempty subset of $U$ and let $d(d \neq 1)$ be the smallest common divisor of all elements of the set $S$. Find the smallest positive integer $k$ such that for any subset $T$ of $U$, consisting of $k$ elements, with $S \subset T$, the greatest common divisor of all elements of $T$ is equal to 1 .
We will show that $k_{\min }=1+\left[\frac{n}{d}\right]$ (here [.] denotes the integer part). Obviously, the number of elements of $S$ is not grater than $\left[\frac{n}{d}\right]$, i.e. $|S| \leq\left[\frac{n}{d}\right]$, and $S \neq U$. If $S \subset T$ and the greatest common divisor of elements of $T$ is equal to 1 , then $|T| \geq|S|+1$. 1) Assume that $|S|<\left[\frac{n}{d}\right]$. Let $T$ be the subset of $U$, consisting of all multiples of $d$ in $U$. Thus, $|T|=\left[\frac{n}{d}\right]$ and $S \subset T$. Therefore, the greatest common divisor of all elements of $T$ is $d>1$. Thus, $k \geq 1+\left[\frac{n}{d}\right]$. 2) Assume $|S|=\left[\frac{n}{d}\right]$. Let $T$ be any subset of $U$ with $S \subset T, S \neq T$. Therefore, $|T| \geq 1+\left[\frac{n}{d}\right]$. Let $q$ be the greatest common divisor of all elements of $T$. Assume that $q>1$. Therefore, $q$ is a common divisor of all elements of $S$ as well. Hence, $q \geq d$. It follows that $|T| \leq\left[\frac{n}{q}\right] \leq\left[\frac{n}{d}\right]$, contradiction. Hence, $q=1$. Therefore, the minimal possible value of $k$ is $1+\left[\frac{n}{d}\right]$. [^5] ## COMBINATORICS
1+\left[\frac{n}{d}\right]
Yes
Yes
math-word-problem
Number Theory
Let $n(n \geq 1)$ be a positive integer and $U=\{1, \ldots, n\}$. Let $S$ be a nonempty subset of $U$ and let $d(d \neq 1)$ be the smallest common divisor of all elements of the set $S$. Find the smallest positive integer $k$ such that for any subset $T$ of $U$, consisting of $k$ elements, with $S \subset T$, the greatest common divisor of all elements of $T$ is equal to 1 .
We will show that $k_{\min }=1+\left[\frac{n}{d}\right]$ (here [.] denotes the integer part). Obviously, the number of elements of $S$ is not grater than $\left[\frac{n}{d}\right]$, i.e. $|S| \leq\left[\frac{n}{d}\right]$, and $S \neq U$. If $S \subset T$ and the greatest common divisor of elements of $T$ is equal to 1 , then $|T| \geq|S|+1$. 1) Assume that $|S|<\left[\frac{n}{d}\right]$. Let $T$ be the subset of $U$, consisting of all multiples of $d$ in $U$. Thus, $|T|=\left[\frac{n}{d}\right]$ and $S \subset T$. Therefore, the greatest common divisor of all elements of $T$ is $d>1$. Thus, $k \geq 1+\left[\frac{n}{d}\right]$. 2) Assume $|S|=\left[\frac{n}{d}\right]$. Let $T$ be any subset of $U$ with $S \subset T, S \neq T$. Therefore, $|T| \geq 1+\left[\frac{n}{d}\right]$. Let $q$ be the greatest common divisor of all elements of $T$. Assume that $q>1$. Therefore, $q$ is a common divisor of all elements of $S$ as well. Hence, $q \geq d$. It follows that $|T| \leq\left[\frac{n}{q}\right] \leq\left[\frac{n}{d}\right]$, contradiction. Hence, $q=1$. Therefore, the minimal possible value of $k$ is $1+\left[\frac{n}{d}\right]$. [^5] ## COMBINATORICS
{ "resource_path": "Balkan_Shortlist/segmented/en-2019_bmo_shortlist.jsonl", "problem_match": "\nTN2b. ${ }^{7}$", "solution_match": "\nSolution." }
9c634123-ce97-511d-833f-16a7312272c2
605,977
100 couples are invited to a traditional Moldovan dance. The 200 people stand in a line, and then in a step, two of them (not necessarily adjacent) may swap positions. Find the least $C$ such that whatever the initial order, they can arrive at an ordering where everyone is dancing next to their partner in at most $C$ steps.
With 100 replaced by $N$, the answer is $C=C(N)=N-1$. Throughout, we will say that the members of a couple have the same. $N=2$ : We use this as a base case for induction for both bounds. Up to labelling, there is one trivial initial order, and two non-trivial ones, namely $$ 1,1,2,2 ; \quad 1, \sqrt{2,2,1} ; \quad 1, \sqrt{2,1}, 2 $$ The brackets indicate how to arrive at a suitable final ordering with one step. Obviously one step is necessary in the second and third cases. Upper bound: First we show $C(N) \leq N-1$, by induction. The base case $N=2$ has already been seen. Now suppose the claim is true for $N-1$, and consider an initial arrangement of $N$ couples. Suppose the types of the left-most couples in line are $a$ and $b$. If $a \neq b$, then in the first step, swap the $b$ in place two with the other person with type $a$. If $a=b$, skip this. In both cases, we now have $N-1$ couples distributed among the final $2 N-2$ places, and we know that $N-2$ steps suffices to order them appropriately, by induction. So $N-1$ steps suffices for $N$ couples. Lower bound: We need to exhibit an example of an initial order for which $N-1$ steps are necessary. Consider $$ \mathcal{A}_{N}:=1,2,2,3,3, \ldots, N-1, N-1, N, N, 1 $$ Proceed by induction, with the base case $N=2$ trivial. Suppose there is a sequence of at most $N-2$ steps which works. In any suitable final arrangement, a given type must be in positions (odd, even), whereas they start in positions (even, odd). So each type must be involved in at least one step. However, each step involves at most two types, so by the pigeonhole principle, at least four types are involved in at most one step. Pick one such type $a \neq 1$. The one step involving $a$ must be one of $$ \ldots, ?, a, a, ?, \ldots . $$ Neither of these steps affects the relative order of the $2 N-2$ other people. So by ignoring this step involving the $a$, we have a sequence of at most $N-3$ steps acting on the other $2 N-2$ people which appropriately sorts them. By induction, this is a contradiction. Alternative lower bound I: Consider the graph with vertices given by pairs of positions $\{(1,2),(3,4), \ldots,(2 N-1,2 N)\}$. We add an edge between pairs of (different) vertices if we ever swap two people in places corresponding to those vertices. In particular, at the end, the two people with type $k$ end up in places corresponding to a single vertex. Suppose we start from the ordering (1) and have some number of steps leading to an ordering where everyone is next to their partner. Then, in the induced graph, there is a path between the vertices corresponding to the places $(2 k-3,2 k-2)$ and $(2 k-1,2 k)$ for each $2 \leq k \leq N$, and also between $(1,2)$ and $(2 N-1,2 N)$. In other words, the graph is connected, and so must have at least $N-1$ edges. Alternative lower bound II: Consider a bipartite multigraph with vertex classes $\left(v_{1}, \ldots, v_{n}\right)$ and $\left(w_{1}, \ldots, w_{n}\right)$. Connect $v_{i}$ to $w_{j}$ if a person of type $j$ is in positions ( $2 i-1,2 i$ ) (if both positions are taken by the type $j$ couple, then add two edges). Each step in the dance consists of replacing edges $\left.E=\left\{v_{a} \leftrightarrow w_{c}, v_{b} \leftrightarrow w_{d}\right)\right\}$ with $E^{\prime}=\left\{v_{a} \leftrightarrow w_{d}, v_{b} \leftrightarrow w_{c}\right\}$. However, both before and after the step, the number of components in the graph which include $\left\{v_{a}, v_{b}, w_{c}, w_{d}\right\}$ is either one or two. The structure of other components which do not include these vertices is unaffected by the move. Therefore, the number of connected components increases by at most 1 in each step. Starting from configuration (1), the graph initially consists of a single (cyclic) component, so one requires at least $n-1$ steps to get to the final configuration for which there are $n$ connected components.
N-1
Yes
Yes
math-word-problem
Combinatorics
100 couples are invited to a traditional Moldovan dance. The 200 people stand in a line, and then in a step, two of them (not necessarily adjacent) may swap positions. Find the least $C$ such that whatever the initial order, they can arrive at an ordering where everyone is dancing next to their partner in at most $C$ steps.
With 100 replaced by $N$, the answer is $C=C(N)=N-1$. Throughout, we will say that the members of a couple have the same. $N=2$ : We use this as a base case for induction for both bounds. Up to labelling, there is one trivial initial order, and two non-trivial ones, namely $$ 1,1,2,2 ; \quad 1, \sqrt{2,2,1} ; \quad 1, \sqrt{2,1}, 2 $$ The brackets indicate how to arrive at a suitable final ordering with one step. Obviously one step is necessary in the second and third cases. Upper bound: First we show $C(N) \leq N-1$, by induction. The base case $N=2$ has already been seen. Now suppose the claim is true for $N-1$, and consider an initial arrangement of $N$ couples. Suppose the types of the left-most couples in line are $a$ and $b$. If $a \neq b$, then in the first step, swap the $b$ in place two with the other person with type $a$. If $a=b$, skip this. In both cases, we now have $N-1$ couples distributed among the final $2 N-2$ places, and we know that $N-2$ steps suffices to order them appropriately, by induction. So $N-1$ steps suffices for $N$ couples. Lower bound: We need to exhibit an example of an initial order for which $N-1$ steps are necessary. Consider $$ \mathcal{A}_{N}:=1,2,2,3,3, \ldots, N-1, N-1, N, N, 1 $$ Proceed by induction, with the base case $N=2$ trivial. Suppose there is a sequence of at most $N-2$ steps which works. In any suitable final arrangement, a given type must be in positions (odd, even), whereas they start in positions (even, odd). So each type must be involved in at least one step. However, each step involves at most two types, so by the pigeonhole principle, at least four types are involved in at most one step. Pick one such type $a \neq 1$. The one step involving $a$ must be one of $$ \ldots, ?, a, a, ?, \ldots . $$ Neither of these steps affects the relative order of the $2 N-2$ other people. So by ignoring this step involving the $a$, we have a sequence of at most $N-3$ steps acting on the other $2 N-2$ people which appropriately sorts them. By induction, this is a contradiction. Alternative lower bound I: Consider the graph with vertices given by pairs of positions $\{(1,2),(3,4), \ldots,(2 N-1,2 N)\}$. We add an edge between pairs of (different) vertices if we ever swap two people in places corresponding to those vertices. In particular, at the end, the two people with type $k$ end up in places corresponding to a single vertex. Suppose we start from the ordering (1) and have some number of steps leading to an ordering where everyone is next to their partner. Then, in the induced graph, there is a path between the vertices corresponding to the places $(2 k-3,2 k-2)$ and $(2 k-1,2 k)$ for each $2 \leq k \leq N$, and also between $(1,2)$ and $(2 N-1,2 N)$. In other words, the graph is connected, and so must have at least $N-1$ edges. Alternative lower bound II: Consider a bipartite multigraph with vertex classes $\left(v_{1}, \ldots, v_{n}\right)$ and $\left(w_{1}, \ldots, w_{n}\right)$. Connect $v_{i}$ to $w_{j}$ if a person of type $j$ is in positions ( $2 i-1,2 i$ ) (if both positions are taken by the type $j$ couple, then add two edges). Each step in the dance consists of replacing edges $\left.E=\left\{v_{a} \leftrightarrow w_{c}, v_{b} \leftrightarrow w_{d}\right)\right\}$ with $E^{\prime}=\left\{v_{a} \leftrightarrow w_{d}, v_{b} \leftrightarrow w_{c}\right\}$. However, both before and after the step, the number of components in the graph which include $\left\{v_{a}, v_{b}, w_{c}, w_{d}\right\}$ is either one or two. The structure of other components which do not include these vertices is unaffected by the move. Therefore, the number of connected components increases by at most 1 in each step. Starting from configuration (1), the graph initially consists of a single (cyclic) component, so one requires at least $n-1$ steps to get to the final configuration for which there are $n$ connected components.
{ "resource_path": "Balkan_Shortlist/segmented/en-2019_bmo_shortlist.jsonl", "problem_match": "\nC1.", "solution_match": "\nSolution." }
379abfeb-7d99-5ab7-af81-c8663566089b
605,985
An $5 \times 5$ array must be completed with all numbers $\{1,2, \ldots, 25\}$, one number in each cell. Find the maximal positive integer $k$, such that for any completion of the array there is a $2 \times 2$ square (subarray), whose numbers have a sum not less than $k$.
We will prove that $k_{\max }=45$. We number the columns and the rows and we select all possible $3^{2}=9$ choices of an odd column with an odd row. Collecting all such pairs of an odd column with an odd row, we double count some squares. Indeed, we take some $3^{2}$ squares 5 times, some 12 squares 3 times and there are some 4 squares (namely all the intersections of an even column with an even row) that we don't take in such pairs. It follows that the maximal total sum over all $3^{2}$ choices of an odd column with an odd row is $$ 5 \times(17+18+\cdots+25)+3 \times(5+6+\cdots+16)=1323 $$ So, by an averaging argument, there exists a pair of an odd column with an odd row with sum at most $\frac{1323}{9}=147$. Then all the other squares of the array will have sum at least $$ (1+2+\cdots+25)-147=178 $$ But for these squares there is a tiling with $2 \times 2$ arrays, which are 4 in total. So there is an $2 \times 2$ array, whose numbers have a sum at least $\frac{178}{4}>44$. So, there is a $2 \times 2$ array whose numbers have a sum at least 45 . This argument gives that $$ k_{\max } \geq 45 . $$ We are going now to give an example of an array, in which 45 is the best possible. We fill the rows of the array as follows: | 25 | 5 | 24 | 6 | 23 | | :---: | :---: | :---: | :---: | :---: | | 11 | 4 | 12 | 3 | 13 | | 22 | 7 | 21 | 8 | 20 | | 14 | 2 | 15 | 1 | 16 | | 19 | 9 | 18 | 10 | 17 | We are going now to even rows: In the above array, every $2 \times 2$ subarray has a sum, which is less or equal to 45 . This gives that $$ k_{\max } \leq 45 . $$ A combination of (1) and (2) gives that $k_{\max }=45$. [^6]C3. Anna and Bob play a game on the set of all points of the form $(m, n)$ where $m, n$ are integers with $|m|,|n| \leqslant 2019$. Let us call the lines $x= \pm 2019$ and $y= \pm 2019$ the boundary lines of the game. The points of these lines are called the boundary points. The neighbours of point $(m, n)$ are the points $(m+1, n),(m-1, n),(m, n+1),(m, n-1)$. Anna starts with a token at the origin ( 0,0 ). With Bob playing first, they alternately perform the following steps: At his turn, Bob deletes two points on each boundary line. On her turn Anna makes a sequences of three moves of the token, where a move of the token consists of picking up the token from its current position and placing it in one of its neighbours. To win the game Anna must place her token on a boundary point before it is deleted by Bob. Does Anna have a winning strategy? [Note: At every turn except perhaps her last, Anna must make exactly three moves.]
45
Yes
Yes
math-word-problem
Combinatorics
An $5 \times 5$ array must be completed with all numbers $\{1,2, \ldots, 25\}$, one number in each cell. Find the maximal positive integer $k$, such that for any completion of the array there is a $2 \times 2$ square (subarray), whose numbers have a sum not less than $k$.
We will prove that $k_{\max }=45$. We number the columns and the rows and we select all possible $3^{2}=9$ choices of an odd column with an odd row. Collecting all such pairs of an odd column with an odd row, we double count some squares. Indeed, we take some $3^{2}$ squares 5 times, some 12 squares 3 times and there are some 4 squares (namely all the intersections of an even column with an even row) that we don't take in such pairs. It follows that the maximal total sum over all $3^{2}$ choices of an odd column with an odd row is $$ 5 \times(17+18+\cdots+25)+3 \times(5+6+\cdots+16)=1323 $$ So, by an averaging argument, there exists a pair of an odd column with an odd row with sum at most $\frac{1323}{9}=147$. Then all the other squares of the array will have sum at least $$ (1+2+\cdots+25)-147=178 $$ But for these squares there is a tiling with $2 \times 2$ arrays, which are 4 in total. So there is an $2 \times 2$ array, whose numbers have a sum at least $\frac{178}{4}>44$. So, there is a $2 \times 2$ array whose numbers have a sum at least 45 . This argument gives that $$ k_{\max } \geq 45 . $$ We are going now to give an example of an array, in which 45 is the best possible. We fill the rows of the array as follows: | 25 | 5 | 24 | 6 | 23 | | :---: | :---: | :---: | :---: | :---: | | 11 | 4 | 12 | 3 | 13 | | 22 | 7 | 21 | 8 | 20 | | 14 | 2 | 15 | 1 | 16 | | 19 | 9 | 18 | 10 | 17 | We are going now to even rows: In the above array, every $2 \times 2$ subarray has a sum, which is less or equal to 45 . This gives that $$ k_{\max } \leq 45 . $$ A combination of (1) and (2) gives that $k_{\max }=45$. [^6]C3. Anna and Bob play a game on the set of all points of the form $(m, n)$ where $m, n$ are integers with $|m|,|n| \leqslant 2019$. Let us call the lines $x= \pm 2019$ and $y= \pm 2019$ the boundary lines of the game. The points of these lines are called the boundary points. The neighbours of point $(m, n)$ are the points $(m+1, n),(m-1, n),(m, n+1),(m, n-1)$. Anna starts with a token at the origin ( 0,0 ). With Bob playing first, they alternately perform the following steps: At his turn, Bob deletes two points on each boundary line. On her turn Anna makes a sequences of three moves of the token, where a move of the token consists of picking up the token from its current position and placing it in one of its neighbours. To win the game Anna must place her token on a boundary point before it is deleted by Bob. Does Anna have a winning strategy? [Note: At every turn except perhaps her last, Anna must make exactly three moves.]
{ "resource_path": "Balkan_Shortlist/segmented/en-2019_bmo_shortlist.jsonl", "problem_match": "\nC2b. ${ }^{8}$", "solution_match": "\nSolution." }
9dd429f2-67e5-51d1-b358-a81a695571c6
605,995
Let $n \geqslant 3$ be an integer and let $$ M=\left\{\frac{a_{1}+a_{2}+\cdots+a_{k}}{k}: 1 \leqslant k \leqslant n \text { and } 1 \leqslant a_{1}<\cdots<a_{k} \leqslant n\right\} $$ be the set of the arithmetic means of the elements of all non-empty subsets of $\{1,2, \ldots, n\}$. Find $\min \{|a-b|: a, b \in M$ with $a \neq b\}$. ## Proposed by Romania
We observe that $M$ is composed by rational numbers of the form $a=\frac{x}{k}$, where $1 \leqslant k \leqslant n$. As the arithmetic mean of $1, \ldots, n$ is $\frac{n+1}{2}$, if we look at these rational numbers in their irreducible form, we can say that $1 \leqslant k \leqslant n-1$. A non-zero difference $|a-b|$ with $a, b \in M$ is then of form $$ \left|\frac{x}{k}-\frac{y}{p}\right|=\frac{\left|p_{0} x-k_{0} y\right|}{[k, p]} $$ where $[k, p]$ is the l.c.m. of $k, p$, and $k_{0}=\frac{[k, p]}{k}, p_{0}=\frac{[k, p]}{p}$. Then $|a-b| \geqslant \frac{1}{[k, p]}$, as $\left|p_{0} x-k_{0} y\right|$ is a non-zero integer. As $$ \max \{[k, p] \mid 1 \leqslant k<p \leqslant n-1\}=(n-1)(n-2), $$ we can say that $m=\min _{\substack{a, b \in M \\ a \neq b}}|a-b| \geqslant \frac{1}{(n-1)(n-2)}$. To reach this minimum, we seek $x \in\{3,4, \ldots, 2 n-1\}$ and $y \in\{1,2, \ldots, n\}$ for which $$ \left|\frac{\frac{n(n+1)}{2}-x}{n-2}-\frac{\frac{n(n+1)}{2}-y}{n-1}\right|=\frac{1}{(n-1)(n-2)}, $$ meaning $$ \left|\frac{n(n+1)}{2}-(n-1) x+(n-2) y\right|=1 . $$ If $n=2 k$, we can choose $x=k+3$ and $y=2$ and if $n=2 k+1$ we can choose $x=n=2 k+1$ and $y=k$. Therefore, the required minimum is $\frac{1}{(n-1)(n-2)}$. Comment. For $n \geqslant 5$, the only other possibilities are to take $x=3 k-1, y=2 k-1$ if $n=2 k$ and to take $x=2 k+3, y=k+2$ if $n=2 k+1$. (For $n=3,4$ there are also examples where one of the sets is of size $n$.)
\frac{1}{(n-1)(n-2)}
Yes
Yes
math-word-problem
Combinatorics
Let $n \geqslant 3$ be an integer and let $$ M=\left\{\frac{a_{1}+a_{2}+\cdots+a_{k}}{k}: 1 \leqslant k \leqslant n \text { and } 1 \leqslant a_{1}<\cdots<a_{k} \leqslant n\right\} $$ be the set of the arithmetic means of the elements of all non-empty subsets of $\{1,2, \ldots, n\}$. Find $\min \{|a-b|: a, b \in M$ with $a \neq b\}$. ## Proposed by Romania
We observe that $M$ is composed by rational numbers of the form $a=\frac{x}{k}$, where $1 \leqslant k \leqslant n$. As the arithmetic mean of $1, \ldots, n$ is $\frac{n+1}{2}$, if we look at these rational numbers in their irreducible form, we can say that $1 \leqslant k \leqslant n-1$. A non-zero difference $|a-b|$ with $a, b \in M$ is then of form $$ \left|\frac{x}{k}-\frac{y}{p}\right|=\frac{\left|p_{0} x-k_{0} y\right|}{[k, p]} $$ where $[k, p]$ is the l.c.m. of $k, p$, and $k_{0}=\frac{[k, p]}{k}, p_{0}=\frac{[k, p]}{p}$. Then $|a-b| \geqslant \frac{1}{[k, p]}$, as $\left|p_{0} x-k_{0} y\right|$ is a non-zero integer. As $$ \max \{[k, p] \mid 1 \leqslant k<p \leqslant n-1\}=(n-1)(n-2), $$ we can say that $m=\min _{\substack{a, b \in M \\ a \neq b}}|a-b| \geqslant \frac{1}{(n-1)(n-2)}$. To reach this minimum, we seek $x \in\{3,4, \ldots, 2 n-1\}$ and $y \in\{1,2, \ldots, n\}$ for which $$ \left|\frac{\frac{n(n+1)}{2}-x}{n-2}-\frac{\frac{n(n+1)}{2}-y}{n-1}\right|=\frac{1}{(n-1)(n-2)}, $$ meaning $$ \left|\frac{n(n+1)}{2}-(n-1) x+(n-2) y\right|=1 . $$ If $n=2 k$, we can choose $x=k+3$ and $y=2$ and if $n=2 k+1$ we can choose $x=n=2 k+1$ and $y=k$. Therefore, the required minimum is $\frac{1}{(n-1)(n-2)}$. Comment. For $n \geqslant 5$, the only other possibilities are to take $x=3 k-1, y=2 k-1$ if $n=2 k$ and to take $x=2 k+3, y=k+2$ if $n=2 k+1$. (For $n=3,4$ there are also examples where one of the sets is of size $n$.)
{ "resource_path": "Balkan_Shortlist/segmented/en-2021_bmo_shortlist.jsonl", "problem_match": "\nN1.", "solution_match": "\nSolution." }
439e6d91-4fd5-535e-b6da-14b56118fa7d
604,254
Let $A B C$ be a triangle such that $\frac{|B C|}{|A B|-|B C|}=\frac{|A B|+|B C|}{|A C|}$. Determine the ratio $\angle A: \angle C$.
Answer: $1: 2$. Denote $|B C|=a,|A C|=b,|A B|=c$. The condition $\frac{a}{c-a}=\frac{c+a}{b}$ implies $c^{2}=a^{2}+a b$ and $$ \frac{c}{a+b}=\frac{a}{c} . $$ Let $D$ be a point on $A B$ such that $|B D|=\frac{a}{a+b} \cdot c$ (see Figure 5). Then $$ \frac{|B D|}{|B C|}=\frac{c}{a+b}=\frac{a}{c}=\frac{|B C|}{|B A|} $$ so triangles $B C D$ and $B A C$ are similar, implying $\angle B C D=\angle B A C$. Also, $\frac{|A C|}{|B C|}=\frac{|A D|}{|B D|}$ yields $\frac{|B C|}{|B D|}=\frac{|A C|}{|A D|}$, and hence by the bisector theorem $C D$ is the bisector of $\angle B C A$. So the ratio asked for is $1: 2$. ![](https://cdn.mathpix.com/cropped/2024_04_17_8c3840558e5986866c27g-06.jpg?height=299&width=516&top_left_y=946&top_left_x=305) Figure 5
1: 2
Yes
Yes
math-word-problem
Geometry
Let $A B C$ be a triangle such that $\frac{|B C|}{|A B|-|B C|}=\frac{|A B|+|B C|}{|A C|}$. Determine the ratio $\angle A: \angle C$.
Answer: $1: 2$. Denote $|B C|=a,|A C|=b,|A B|=c$. The condition $\frac{a}{c-a}=\frac{c+a}{b}$ implies $c^{2}=a^{2}+a b$ and $$ \frac{c}{a+b}=\frac{a}{c} . $$ Let $D$ be a point on $A B$ such that $|B D|=\frac{a}{a+b} \cdot c$ (see Figure 5). Then $$ \frac{|B D|}{|B C|}=\frac{c}{a+b}=\frac{a}{c}=\frac{|B C|}{|B A|} $$ so triangles $B C D$ and $B A C$ are similar, implying $\angle B C D=\angle B A C$. Also, $\frac{|A C|}{|B C|}=\frac{|A D|}{|B D|}$ yields $\frac{|B C|}{|B D|}=\frac{|A C|}{|A D|}$, and hence by the bisector theorem $C D$ is the bisector of $\angle B C A$. So the ratio asked for is $1: 2$. ![](https://cdn.mathpix.com/cropped/2024_04_17_8c3840558e5986866c27g-06.jpg?height=299&width=516&top_left_y=946&top_left_x=305) Figure 5
{ "resource_path": "BalticWay/segmented/en-bw00sol.jsonl", "problem_match": "\n5.", "solution_match": "\n5." }
1cc707c3-6f34-5c4b-ac71-6cc09a4eaead
240,339
Fourteen friends met at a party. One of them, Fredek, wanted to go to bed early. He said goodbye to 10 of his friends, forgot about the remaining 3 , and went to bed. After a while he returned to the party, said goodbye to 10 of his friends (not necessarily the same as before), and went to bed. Later Fredek came back a number of times, each time saying goodbye to exactly 10 of his friends, and then went back to bed. As soon as he had said goodbye to each of his friends at least once, he did not come back again. In the morning Fredek realised that he had said goodbye a different number of times to each of his thirteen friends! What is the smallest possible number of times that Fredek returned to the party?
Answer: Fredek returned at least 32 times. Assume Fredek returned $k$ times, i.e. he was saying good-bye $k+1$ times to his friends. There exists a friend of Fredek, call him $X_{13}$, about whom Fredek forgot $k$ times in a row, starting from the very first time - otherwise Fredek would have come back less than $k$ times. Consider the remaining friends of Fredek: $X_{1}, X_{2}, \ldots, X_{12}$. Assume that Fredek forgot $x_{j}$ times about each friend $X_{j}$. Since Fredek forgot a different number of times about each of his friends, so we can assume w.l.o.g. that $x_{j} \geqslant j-1$ for $j=1,2, \ldots, 12$. Since $X_{13}$ was forgotten by Fredek $k$ times, and since Fredek forgot about exactly three of his friends each time, we have $$ \begin{aligned} 3(k+1) & =x_{1}+x_{2}+x_{3}+\ldots+x_{12}+k \geqslant \\ & \geqslant 0+1+2+3+\ldots+11+k= \\ & =66+k . \end{aligned} $$ Therefore $2 k \geqslant 63$, which gives $k \geqslant 32$. It is possible that Fredek returned 32 times, i.e. he was saying good-bye 33 times to his friends. The following table shows this. The $i$-th column displays the three friends Fredek forgot while saying good-bye for the $i$-th time (i.e. before his $i$-th return). For simplicity we write $j$ in place of $X_{j}$. $$ \begin{aligned} & 13 \ldots .131313 \ldots .1313 \ldots .131313131313131311 \end{aligned} $$ ![](https://cdn.mathpix.com/cropped/2024_04_17_8c3840558e5986866c27g-08.jpg?height=43&width=869&top_left_y=1310&top_left_x=211) ![](https://cdn.mathpix.com/cropped/2024_04_17_8c3840558e5986866c27g-08.jpg?height=80&width=871&top_left_y=1354&top_left_x=208)
32
Yes
Yes
math-word-problem
Combinatorics
Fourteen friends met at a party. One of them, Fredek, wanted to go to bed early. He said goodbye to 10 of his friends, forgot about the remaining 3 , and went to bed. After a while he returned to the party, said goodbye to 10 of his friends (not necessarily the same as before), and went to bed. Later Fredek came back a number of times, each time saying goodbye to exactly 10 of his friends, and then went back to bed. As soon as he had said goodbye to each of his friends at least once, he did not come back again. In the morning Fredek realised that he had said goodbye a different number of times to each of his thirteen friends! What is the smallest possible number of times that Fredek returned to the party?
Answer: Fredek returned at least 32 times. Assume Fredek returned $k$ times, i.e. he was saying good-bye $k+1$ times to his friends. There exists a friend of Fredek, call him $X_{13}$, about whom Fredek forgot $k$ times in a row, starting from the very first time - otherwise Fredek would have come back less than $k$ times. Consider the remaining friends of Fredek: $X_{1}, X_{2}, \ldots, X_{12}$. Assume that Fredek forgot $x_{j}$ times about each friend $X_{j}$. Since Fredek forgot a different number of times about each of his friends, so we can assume w.l.o.g. that $x_{j} \geqslant j-1$ for $j=1,2, \ldots, 12$. Since $X_{13}$ was forgotten by Fredek $k$ times, and since Fredek forgot about exactly three of his friends each time, we have $$ \begin{aligned} 3(k+1) & =x_{1}+x_{2}+x_{3}+\ldots+x_{12}+k \geqslant \\ & \geqslant 0+1+2+3+\ldots+11+k= \\ & =66+k . \end{aligned} $$ Therefore $2 k \geqslant 63$, which gives $k \geqslant 32$. It is possible that Fredek returned 32 times, i.e. he was saying good-bye 33 times to his friends. The following table shows this. The $i$-th column displays the three friends Fredek forgot while saying good-bye for the $i$-th time (i.e. before his $i$-th return). For simplicity we write $j$ in place of $X_{j}$. $$ \begin{aligned} & 13 \ldots .131313 \ldots .1313 \ldots .131313131313131311 \end{aligned} $$ ![](https://cdn.mathpix.com/cropped/2024_04_17_8c3840558e5986866c27g-08.jpg?height=43&width=869&top_left_y=1310&top_left_x=211) ![](https://cdn.mathpix.com/cropped/2024_04_17_8c3840558e5986866c27g-08.jpg?height=80&width=871&top_left_y=1354&top_left_x=208)
{ "resource_path": "BalticWay/segmented/en-bw00sol.jsonl", "problem_match": "\n8.", "solution_match": "\n8." }
aa416b98-3d44-59d0-8520-368cd65ee518
604,506
A sequence of positive integers $a_{1}, a_{2}, \ldots$ is such that for each $m$ and $n$ the following holds: if $m$ is a divisor of $n$ and $m<n$, then $a_{m}$ is a divisor of $a_{n}$ and $a_{m}<a_{n}$. Find the least possible value of $a_{2000}$.
Answer: 128. Let $d$ denote the least possible value of $a_{2000}$. We shall prove that $d=128$. Clearly the sequence defined by $a_{1}=1$ and $a_{n}=2^{\alpha_{1}+\alpha_{2}+\cdots+\alpha_{k}}$ for $n=p_{1}^{\alpha_{1}} p_{2}^{\alpha_{2}} \cdots \cdots p_{k}^{\alpha_{k}}$ has the required property. Since $2000=2^{4} \cdot 5^{3}$, we have $a_{2000}=2^{4+3}=128$ and therefore $d \leqslant 128$. Note that in the sequence $1<5<25<125<250<500<1000<2000$ each term is divisible by the previous one. As $a_{1} \geqslant 1$ it follows that $$ a_{2000} \geqslant 2 \cdot a_{1000} \geqslant 2^{2} \cdot a_{500} \geqslant 2^{3} \cdot a_{250} \geqslant \ldots \geqslant 2^{7} \cdot a_{1} \geqslant 2^{7}=128 . $$
128
Yes
Yes
math-word-problem
Number Theory
A sequence of positive integers $a_{1}, a_{2}, \ldots$ is such that for each $m$ and $n$ the following holds: if $m$ is a divisor of $n$ and $m<n$, then $a_{m}$ is a divisor of $a_{n}$ and $a_{m}<a_{n}$. Find the least possible value of $a_{2000}$.
Answer: 128. Let $d$ denote the least possible value of $a_{2000}$. We shall prove that $d=128$. Clearly the sequence defined by $a_{1}=1$ and $a_{n}=2^{\alpha_{1}+\alpha_{2}+\cdots+\alpha_{k}}$ for $n=p_{1}^{\alpha_{1}} p_{2}^{\alpha_{2}} \cdots \cdots p_{k}^{\alpha_{k}}$ has the required property. Since $2000=2^{4} \cdot 5^{3}$, we have $a_{2000}=2^{4+3}=128$ and therefore $d \leqslant 128$. Note that in the sequence $1<5<25<125<250<500<1000<2000$ each term is divisible by the previous one. As $a_{1} \geqslant 1$ it follows that $$ a_{2000} \geqslant 2 \cdot a_{1000} \geqslant 2^{2} \cdot a_{500} \geqslant 2^{3} \cdot a_{250} \geqslant \ldots \geqslant 2^{7} \cdot a_{1} \geqslant 2^{7}=128 . $$
{ "resource_path": "BalticWay/segmented/en-bw00sol.jsonl", "problem_match": "\n11.", "solution_match": "\n11." }
9c42bd35-eb49-50cd-93ab-ec11d9558097
240,391
Find all positive integers $n$ such that $n$ is equal to 100 times the number of positive divisors of $n$.
Answer: 2000 is the only such integer. Let $d(n)$ denote the number of positive divisors of $n$ and $p \triangleright n$ denote the exponent of the prime $p$ in the canonical representation of $n$. Let $\delta(n)=\frac{n}{d(n)}$. Using this notation, the problem reformulates as follows: Find all positive integers $n$ such that $\delta(n)=100$. Lemma: Let $n$ be an integer and $m$ its proper divisor. Then $\delta(m) \leqslant \delta(n)$ and the equality holds if and only if $m$ is odd and $n=2 m$. Proof. Let $n=m p$ for a prime $p$. By the well-known formula $$ d(n)=\prod_{p}(1+p \triangleright n) $$ we have $$ \frac{\delta(n)}{\delta(m)}=\frac{n}{m} \cdot \frac{d(m)}{d(n)}=p \cdot \frac{1+p \triangleright m}{1+p \triangleright n}=p \cdot \frac{p \triangleright n}{1+p \triangleright n} \geqslant 2 \cdot \frac{1}{2}=1, $$ hence $\delta(m) \leqslant \delta(n)$. It is also clear that equality holds if and only if $p=2$ and $p \triangleright n=1$, i.e. $m$ is odd and $n=2 m$. For the general case $n=m s$ where $s>1$ is an arbitrary positive integer, represent $s$ as a product of primes. By elementary induction on the number of factors in the representation we prove $\delta(m) \leqslant \delta(n)$. The equality can hold only if all factors are equal to 2 and the number $m$ as well as any intermediate result of multiplying it by these factors is odd, i.e. the representation of $s$ consists of a single prime 2, which gives $n=2 m$. This proves the lemma. Now assume that $\delta(n)=100$ for some $n$, i.e. $n=100 \cdot d(n)=2^{2} \cdot 5^{2} \cdot d(n)$. In the following, we estimate the exponents of primes in the canonical representation of $n$, using the fact that 100 is a divisor of $n$. (1) Observe that $\delta\left(2^{7} \cdot 5^{2}\right)=\frac{2^{5} \cdot 100}{8 \cdot 3}=\frac{3200}{24}>100$. Hence $2 \triangleright n \leqslant 6$, since otherwise $2^{7} \cdot 5^{2}$ divides $n$ and, by the lemma, $\delta(n)>100$. (2) Observe that $\delta\left(2^{2} \cdot 5^{4}\right)=\frac{5^{2} \cdot 100}{3 \cdot 5}=\frac{2500}{15}>100$. Hence $5 \triangleright n \leqslant 3$, since otherwise $2^{2} \cdot 5^{4}$ divides $n$ and, by the lemma, $\delta(n)>100$. (3) Observe that $\delta\left(2^{2} \cdot 5^{2} \cdot 3^{4}\right)=\frac{3^{4} \cdot 100}{3 \cdot 3 \cdot 5}=\frac{8100}{45}>100$. Hence $3 \triangleright n \leqslant 3$, since otherwise $2^{2} \cdot 5^{2} \cdot 3^{4}$ divides $n$ and, by the lemma, $\delta(n)>100$. (4) Take a prime $q>5$ and an integer $k \geqslant 4$. Then $$ \begin{aligned} \delta\left(2^{2} \cdot 5^{2} \cdot q^{k}\right) & =\frac{2^{2} \cdot 5^{2} \cdot q^{k}}{d\left(2^{2} \cdot 5^{2} \cdot q^{k}\right)}=\frac{2^{2} \cdot 5^{2} \cdot q^{k}}{d\left(2^{2} \cdot 5^{2} \cdot 3^{k}\right)}>\frac{2^{2} \cdot 5^{2} \cdot 3^{k}}{d\left(2^{2} \cdot 5^{2} \cdot 3^{k}\right)}= \\ & =\delta\left(2^{2} \cdot 5^{2} \cdot 3^{k}\right)>100 . \end{aligned} $$ Hence, similarly to the previous cases, we get $q \triangleright n \leqslant 3$. (5) If a prime $q>7$ divides $n$, then $q$ divides $d(n)$. Thus $q$ divides $1+p \triangleright n$ for some prime $p$. But this is impossible because, as the previous cases showed, $p \triangleright n \leqslant 6$ for all $p$. So $n$ is not divisible by primes greater than 7 . (6) If 7 divides $n$, then 7 divides $d(n)$ and hence divides $1+p \triangleright n$ for some prime $p$. By (1)-(4), this implies $p=2$ and $2 \triangleright n=6$. At the same time, if $2 \triangleright n=6$, then 7 divides $d(n)$ and $n$. So 7 divides $n$ if and only if $2 \triangleright n=6$. Since $\delta\left(2^{6} \cdot 5^{2} \cdot 7\right)=\frac{2^{4} \cdot 7 \cdot 100}{7 \cdot 3 \cdot 2}=\frac{11200}{42}>100$, both of these conditions cannot hold simultaneously. So $n$ is not divisible by 7 and $2 \triangleright n \leqslant 5$. (7) If $5 \triangleright n=3$, then 5 divides $d(n)$ and hence divides $1+p \triangleright n$ for some prime $p$. By (1)-(4), this implies $p=2$ and $2 \triangleright n=4$. At the same time, if $2 \triangleright n=4$, then 5 divides $d(n), 5^{3}$ divides $n$ and, by (2), $5 \triangleright n=3$. So $5 \triangleright n=3$ if and only if $2 \triangleright n=4$. Since $\delta\left(2^{4} \cdot 5^{3}\right)=\frac{2^{2} \cdot 5 \cdot 100}{5 \cdot 4}=100$, we find that $n=2^{4} \cdot 5^{3}=2000$ satisfies the required condition. On the other hand, if $2 \triangleright n=4$ and $5 \triangleright n=3$ for some $n \neq 2000$, then $n=2000 s$ for some $s>1$ and, by the lemma, $\delta(n)>100$. (8) The case $5 \triangleright n=2$ has remained. By (7), we have $2 \triangleright n \neq 4$, so $2 \triangleright n \in\{2,3,5\}$. The condition $5 \triangleright n=2$ implies that 3 divides $d(n)$ and $n$, thus $3 \triangleright n \in\{1,2,3\}$. If $2 \triangleright n=3$, then $d(n)$ is divisible by 2 but not by 4 . At the same time $2 \triangleright n=3$ implies $3+1=4$ divides $d(n)$, a contradiction. Thus $2 \triangleright n \in\{2,5\}$, and $3^{2}$ divides $d(n)$ and $n$, i.e. $3 \triangleright n \in\{2,3\}$. Now $3 \triangleright n=2$ would imply that $3^{3}$ divides $d(n)$ and $n$, a contradiction; on the other hand $3 \triangleright n=3$ would imply $3 \triangleright d(n)=2$ and hence $3 \triangleright n=2$, a contradiction.
2000
Yes
Yes
math-word-problem
Number Theory
Find all positive integers $n$ such that $n$ is equal to 100 times the number of positive divisors of $n$.
Answer: 2000 is the only such integer. Let $d(n)$ denote the number of positive divisors of $n$ and $p \triangleright n$ denote the exponent of the prime $p$ in the canonical representation of $n$. Let $\delta(n)=\frac{n}{d(n)}$. Using this notation, the problem reformulates as follows: Find all positive integers $n$ such that $\delta(n)=100$. Lemma: Let $n$ be an integer and $m$ its proper divisor. Then $\delta(m) \leqslant \delta(n)$ and the equality holds if and only if $m$ is odd and $n=2 m$. Proof. Let $n=m p$ for a prime $p$. By the well-known formula $$ d(n)=\prod_{p}(1+p \triangleright n) $$ we have $$ \frac{\delta(n)}{\delta(m)}=\frac{n}{m} \cdot \frac{d(m)}{d(n)}=p \cdot \frac{1+p \triangleright m}{1+p \triangleright n}=p \cdot \frac{p \triangleright n}{1+p \triangleright n} \geqslant 2 \cdot \frac{1}{2}=1, $$ hence $\delta(m) \leqslant \delta(n)$. It is also clear that equality holds if and only if $p=2$ and $p \triangleright n=1$, i.e. $m$ is odd and $n=2 m$. For the general case $n=m s$ where $s>1$ is an arbitrary positive integer, represent $s$ as a product of primes. By elementary induction on the number of factors in the representation we prove $\delta(m) \leqslant \delta(n)$. The equality can hold only if all factors are equal to 2 and the number $m$ as well as any intermediate result of multiplying it by these factors is odd, i.e. the representation of $s$ consists of a single prime 2, which gives $n=2 m$. This proves the lemma. Now assume that $\delta(n)=100$ for some $n$, i.e. $n=100 \cdot d(n)=2^{2} \cdot 5^{2} \cdot d(n)$. In the following, we estimate the exponents of primes in the canonical representation of $n$, using the fact that 100 is a divisor of $n$. (1) Observe that $\delta\left(2^{7} \cdot 5^{2}\right)=\frac{2^{5} \cdot 100}{8 \cdot 3}=\frac{3200}{24}>100$. Hence $2 \triangleright n \leqslant 6$, since otherwise $2^{7} \cdot 5^{2}$ divides $n$ and, by the lemma, $\delta(n)>100$. (2) Observe that $\delta\left(2^{2} \cdot 5^{4}\right)=\frac{5^{2} \cdot 100}{3 \cdot 5}=\frac{2500}{15}>100$. Hence $5 \triangleright n \leqslant 3$, since otherwise $2^{2} \cdot 5^{4}$ divides $n$ and, by the lemma, $\delta(n)>100$. (3) Observe that $\delta\left(2^{2} \cdot 5^{2} \cdot 3^{4}\right)=\frac{3^{4} \cdot 100}{3 \cdot 3 \cdot 5}=\frac{8100}{45}>100$. Hence $3 \triangleright n \leqslant 3$, since otherwise $2^{2} \cdot 5^{2} \cdot 3^{4}$ divides $n$ and, by the lemma, $\delta(n)>100$. (4) Take a prime $q>5$ and an integer $k \geqslant 4$. Then $$ \begin{aligned} \delta\left(2^{2} \cdot 5^{2} \cdot q^{k}\right) & =\frac{2^{2} \cdot 5^{2} \cdot q^{k}}{d\left(2^{2} \cdot 5^{2} \cdot q^{k}\right)}=\frac{2^{2} \cdot 5^{2} \cdot q^{k}}{d\left(2^{2} \cdot 5^{2} \cdot 3^{k}\right)}>\frac{2^{2} \cdot 5^{2} \cdot 3^{k}}{d\left(2^{2} \cdot 5^{2} \cdot 3^{k}\right)}= \\ & =\delta\left(2^{2} \cdot 5^{2} \cdot 3^{k}\right)>100 . \end{aligned} $$ Hence, similarly to the previous cases, we get $q \triangleright n \leqslant 3$. (5) If a prime $q>7$ divides $n$, then $q$ divides $d(n)$. Thus $q$ divides $1+p \triangleright n$ for some prime $p$. But this is impossible because, as the previous cases showed, $p \triangleright n \leqslant 6$ for all $p$. So $n$ is not divisible by primes greater than 7 . (6) If 7 divides $n$, then 7 divides $d(n)$ and hence divides $1+p \triangleright n$ for some prime $p$. By (1)-(4), this implies $p=2$ and $2 \triangleright n=6$. At the same time, if $2 \triangleright n=6$, then 7 divides $d(n)$ and $n$. So 7 divides $n$ if and only if $2 \triangleright n=6$. Since $\delta\left(2^{6} \cdot 5^{2} \cdot 7\right)=\frac{2^{4} \cdot 7 \cdot 100}{7 \cdot 3 \cdot 2}=\frac{11200}{42}>100$, both of these conditions cannot hold simultaneously. So $n$ is not divisible by 7 and $2 \triangleright n \leqslant 5$. (7) If $5 \triangleright n=3$, then 5 divides $d(n)$ and hence divides $1+p \triangleright n$ for some prime $p$. By (1)-(4), this implies $p=2$ and $2 \triangleright n=4$. At the same time, if $2 \triangleright n=4$, then 5 divides $d(n), 5^{3}$ divides $n$ and, by (2), $5 \triangleright n=3$. So $5 \triangleright n=3$ if and only if $2 \triangleright n=4$. Since $\delta\left(2^{4} \cdot 5^{3}\right)=\frac{2^{2} \cdot 5 \cdot 100}{5 \cdot 4}=100$, we find that $n=2^{4} \cdot 5^{3}=2000$ satisfies the required condition. On the other hand, if $2 \triangleright n=4$ and $5 \triangleright n=3$ for some $n \neq 2000$, then $n=2000 s$ for some $s>1$ and, by the lemma, $\delta(n)>100$. (8) The case $5 \triangleright n=2$ has remained. By (7), we have $2 \triangleright n \neq 4$, so $2 \triangleright n \in\{2,3,5\}$. The condition $5 \triangleright n=2$ implies that 3 divides $d(n)$ and $n$, thus $3 \triangleright n \in\{1,2,3\}$. If $2 \triangleright n=3$, then $d(n)$ is divisible by 2 but not by 4 . At the same time $2 \triangleright n=3$ implies $3+1=4$ divides $d(n)$, a contradiction. Thus $2 \triangleright n \in\{2,5\}$, and $3^{2}$ divides $d(n)$ and $n$, i.e. $3 \triangleright n \in\{2,3\}$. Now $3 \triangleright n=2$ would imply that $3^{3}$ divides $d(n)$ and $n$, a contradiction; on the other hand $3 \triangleright n=3$ would imply $3 \triangleright d(n)=2$ and hence $3 \triangleright n=2$, a contradiction.
{ "resource_path": "BalticWay/segmented/en-bw00sol.jsonl", "problem_match": "\n14.", "solution_match": "\n14." }
82bb9477-1cd7-5a98-a5aa-5f31c355e0f0
240,419
A set of 8 problems was prepared for an examination. Each student was given 3 of them. No two students received more than one common problem. What is the largest possible number of students?
Answer: 8 . Denote the problems by $A, B, C, D, E, F, G, H$, then 8 possible problem sets are $A B C, A D E, A F G, B D G, B F H, C D H, C E F, E G H$. Hence, there could be 8 students. Suppose that some problem (e.g., $A$ ) was given to 4 students. Then each of these 4 students should receive 2 different "supplementary" problems, and there should be at least 9 problems - a contradiction. Therefore each problem was given to at most 3 students, and there were at most $8 \cdot 3=24$ "awardings" of problems. As each student was "awarded" 3 problems, there were at most 8 students.
8
Yes
Yes
math-word-problem
Combinatorics
A set of 8 problems was prepared for an examination. Each student was given 3 of them. No two students received more than one common problem. What is the largest possible number of students?
Answer: 8 . Denote the problems by $A, B, C, D, E, F, G, H$, then 8 possible problem sets are $A B C, A D E, A F G, B D G, B F H, C D H, C E F, E G H$. Hence, there could be 8 students. Suppose that some problem (e.g., $A$ ) was given to 4 students. Then each of these 4 students should receive 2 different "supplementary" problems, and there should be at least 9 problems - a contradiction. Therefore each problem was given to at most 3 students, and there were at most $8 \cdot 3=24$ "awardings" of problems. As each student was "awarded" 3 problems, there were at most 8 students.
{ "resource_path": "BalticWay/segmented/en-bw01sol.jsonl", "problem_match": "\n1.", "solution_match": "\n1." }
451ee0af-4e82-564a-808b-85ae07a108ad
240,119
The real-valued function $f$ is defined for all positive integers. For any integers $a>1, b>1$ with $d=\operatorname{gcd}(a, b)$, we have $$ f(a b)=f(d) \cdot\left(f\left(\frac{a}{d}\right)+f\left(\frac{b}{d}\right)\right), $$ Determine all possible values of $f(2001)$.
Answer: 0 and $\frac{1}{2}$. Obviously the constant functions $f(n)=0$ and $f(n)=\frac{1}{2}$ provide solutions. We show that there are no other solutions. Assume $f(2001) \neq 0$. Since $2001=3 \cdot 667$ and $\operatorname{gcd}(3,667)=1$, then $$ f(2001)=f(1) \cdot(f(3)+f(667)), $$ and $f(1) \neq 0$. Since $\operatorname{gcd}(2001,2001)=2001$ then $$ f\left(2001^{2}\right)=f(2001)(2 \cdot f(1)) \neq 0 . $$ Also $\operatorname{gcd}\left(2001,2001^{3}\right)=2001$, so $$ f\left(2001^{4}\right)=f(2001) \cdot\left(f(1)+f\left(2001^{2}\right)\right)=f(1) f(2001)(1+2 f(2001)) $$ On the other hand, $\operatorname{gcd}\left(2001^{2}, 2001^{2}\right)=2001^{2}$ and $$ f\left(2001^{4}\right)=f\left(2001^{2}\right) \cdot(f(1)+f(1))=2 f(1) f\left(2001^{2}\right)=4 f(1)^{2} f(2001) . $$ So $4 f(1)=1+2 f(2001)$ and $f(2001)=2 f(1)-\frac{1}{2}$. Exactly the same argument starting from $f\left(2001^{2}\right) \neq 0$ instead of $f(2001)$ shows that $f\left(2001^{2}\right)=2 f(1)-\frac{1}{2}$. So $$ 2 f(1)-\frac{1}{2}=2 f(1)\left(2 f(1)-\frac{1}{2}\right) \text {. } $$ Since $2 f(1)-\frac{1}{2}=f(2001) \neq 0$, we have $f(1)=\frac{1}{2}$, which implies $f(2001)=2 f(1)-\frac{1}{2}=\frac{1}{2}$.
\frac{1}{2}
Yes
Yes
math-word-problem
Number Theory
The real-valued function $f$ is defined for all positive integers. For any integers $a>1, b>1$ with $d=\operatorname{gcd}(a, b)$, we have $$ f(a b)=f(d) \cdot\left(f\left(\frac{a}{d}\right)+f\left(\frac{b}{d}\right)\right), $$ Determine all possible values of $f(2001)$.
Answer: 0 and $\frac{1}{2}$. Obviously the constant functions $f(n)=0$ and $f(n)=\frac{1}{2}$ provide solutions. We show that there are no other solutions. Assume $f(2001) \neq 0$. Since $2001=3 \cdot 667$ and $\operatorname{gcd}(3,667)=1$, then $$ f(2001)=f(1) \cdot(f(3)+f(667)), $$ and $f(1) \neq 0$. Since $\operatorname{gcd}(2001,2001)=2001$ then $$ f\left(2001^{2}\right)=f(2001)(2 \cdot f(1)) \neq 0 . $$ Also $\operatorname{gcd}\left(2001,2001^{3}\right)=2001$, so $$ f\left(2001^{4}\right)=f(2001) \cdot\left(f(1)+f\left(2001^{2}\right)\right)=f(1) f(2001)(1+2 f(2001)) $$ On the other hand, $\operatorname{gcd}\left(2001^{2}, 2001^{2}\right)=2001^{2}$ and $$ f\left(2001^{4}\right)=f\left(2001^{2}\right) \cdot(f(1)+f(1))=2 f(1) f\left(2001^{2}\right)=4 f(1)^{2} f(2001) . $$ So $4 f(1)=1+2 f(2001)$ and $f(2001)=2 f(1)-\frac{1}{2}$. Exactly the same argument starting from $f\left(2001^{2}\right) \neq 0$ instead of $f(2001)$ shows that $f\left(2001^{2}\right)=2 f(1)-\frac{1}{2}$. So $$ 2 f(1)-\frac{1}{2}=2 f(1)\left(2 f(1)-\frac{1}{2}\right) \text {. } $$ Since $2 f(1)-\frac{1}{2}=f(2001) \neq 0$, we have $f(1)=\frac{1}{2}$, which implies $f(2001)=2 f(1)-\frac{1}{2}=\frac{1}{2}$.
{ "resource_path": "BalticWay/segmented/en-bw01sol.jsonl", "problem_match": "\n11.", "solution_match": "\n11." }
316d3633-64b3-5913-a882-033261197b3b
240,211
Let $f$ be a real-valued function defined on the positive integers satisfying the following condition: For all $n>1$ there exists a prime divisor $p$ of $n$ such that $$ f(n)=f\left(\frac{n}{p}\right)-f(p) $$ Given that $f(2001)=1$, what is the value of $f(2002)$ ?
Answer: 2. For any prime $p$ we have $f(p)=f(1)-f(p)$ and thus $f(p)=\frac{f(1)}{2}$. If $n$ is a product of two primes $p$ and $q$, then $f(n)=f(p)-f(q)$ or $f(n)=f(q)-f(p)$, so $f(n)=0$. By the same reasoning we find that if $n$ is a product of three primes, then there is a prime $p$ such that $$ f(n)=f\left(\frac{n}{p}\right)-f(p)=-f(p)=-\frac{f(1)}{2} . $$ By simple induction we can show that if $n$ is the product of $k$ primes, then $f(n)=(2-k) \cdot \frac{f(1)}{2}$. In particular, $f(2001)=f(3 \cdot 23 \cdot 29)=1$ so $f(1)=-2$. Therefore, $f(2002)=f(2 \cdot 7 \cdot 11 \cdot 13)=-f(1)=2$.
2
Yes
Yes
math-word-problem
Number Theory
Let $f$ be a real-valued function defined on the positive integers satisfying the following condition: For all $n>1$ there exists a prime divisor $p$ of $n$ such that $$ f(n)=f\left(\frac{n}{p}\right)-f(p) $$ Given that $f(2001)=1$, what is the value of $f(2002)$ ?
Answer: 2. For any prime $p$ we have $f(p)=f(1)-f(p)$ and thus $f(p)=\frac{f(1)}{2}$. If $n$ is a product of two primes $p$ and $q$, then $f(n)=f(p)-f(q)$ or $f(n)=f(q)-f(p)$, so $f(n)=0$. By the same reasoning we find that if $n$ is a product of three primes, then there is a prime $p$ such that $$ f(n)=f\left(\frac{n}{p}\right)-f(p)=-f(p)=-\frac{f(1)}{2} . $$ By simple induction we can show that if $n$ is the product of $k$ primes, then $f(n)=(2-k) \cdot \frac{f(1)}{2}$. In particular, $f(2001)=f(3 \cdot 23 \cdot 29)=1$ so $f(1)=-2$. Therefore, $f(2002)=f(2 \cdot 7 \cdot 11 \cdot 13)=-f(1)=2$.
{ "resource_path": "BalticWay/segmented/en-bw01sol.jsonl", "problem_match": "\n16.", "solution_match": "\n16." }
63249da3-fd82-594e-b5b4-726b15645a5c
605,042
What is the smallest positive odd integer having the same number of positive divisors as 360 ?
Answer: 31185 . An integer with the prime factorization $p_{1}^{r_{1}} \cdot p_{2}^{r_{2}} \cdot \ldots \cdot p_{k}^{r_{k}}$ (where $p_{1}, p_{2}, \ldots$, $p_{k}$ are distinct primes) has precisely $\left(r_{1}+1\right) \cdot\left(r_{2}+1\right) \cdot \ldots \cdot\left(r_{k}+1\right)$ distinct positive divisors. Since $360=2^{3} \cdot 3^{2} \cdot 5$, it follows that 360 has $4 \cdot 3 \cdot 2=24$ positive divisors. Since $24=3 \cdot 2 \cdot 2 \cdot 2$, it is easy to check that the smallest odd number with 24 positive divisors is $3^{2} \cdot 5 \cdot 7 \cdot 11=31185$.
31185
Yes
Yes
math-word-problem
Number Theory
What is the smallest positive odd integer having the same number of positive divisors as 360 ?
Answer: 31185 . An integer with the prime factorization $p_{1}^{r_{1}} \cdot p_{2}^{r_{2}} \cdot \ldots \cdot p_{k}^{r_{k}}$ (where $p_{1}, p_{2}, \ldots$, $p_{k}$ are distinct primes) has precisely $\left(r_{1}+1\right) \cdot\left(r_{2}+1\right) \cdot \ldots \cdot\left(r_{k}+1\right)$ distinct positive divisors. Since $360=2^{3} \cdot 3^{2} \cdot 5$, it follows that 360 has $4 \cdot 3 \cdot 2=24$ positive divisors. Since $24=3 \cdot 2 \cdot 2 \cdot 2$, it is easy to check that the smallest odd number with 24 positive divisors is $3^{2} \cdot 5 \cdot 7 \cdot 11=31185$.
{ "resource_path": "BalticWay/segmented/en-bw01sol.jsonl", "problem_match": "\n19.", "solution_match": "\n19." }
cc624072-0d9c-5339-981c-b2708ba14fe4
605,096
From a sequence of integers $(a, b, c, d)$ each of the sequences $$ (c, d, a, b),(b, a, d, c),(a+n c, b+n d, c, d),(a+n b, b, c+n d, d), $$ for arbitrary integer $n$ can be obtained by one step. Is it possible to obtain $(3,4,5,7)$ from $(1,2,3,4)$ through a sequence of such steps? ## Solutions
Answer: no. Under all transformations $(a, b, c, d) \rightarrow\left(a^{\prime}, b^{\prime}, c^{\prime}, d^{\prime}\right)$ allowed in the problem we have $|a d-b c|=\left|a^{\prime} d^{\prime}-b^{\prime} c^{\prime}\right|$, but $|1 \cdot 4-2 \cdot 3|=2 \neq 1=|3 \cdot 7-4 \cdot 5|$. Remark. The transformations allowed in the problem are in fact the elementary transformations of the determinant $$ \left|\begin{array}{ll} a & b \\ c & d \end{array}\right| $$ and the invariant $|a d-b c|$ is the absolute value of the determinant which is preserved under these transformations.
no
Yes
Yes
math-word-problem
Number Theory
From a sequence of integers $(a, b, c, d)$ each of the sequences $$ (c, d, a, b),(b, a, d, c),(a+n c, b+n d, c, d),(a+n b, b, c+n d, d), $$ for arbitrary integer $n$ can be obtained by one step. Is it possible to obtain $(3,4,5,7)$ from $(1,2,3,4)$ through a sequence of such steps? ## Solutions
Answer: no. Under all transformations $(a, b, c, d) \rightarrow\left(a^{\prime}, b^{\prime}, c^{\prime}, d^{\prime}\right)$ allowed in the problem we have $|a d-b c|=\left|a^{\prime} d^{\prime}-b^{\prime} c^{\prime}\right|$, but $|1 \cdot 4-2 \cdot 3|=2 \neq 1=|3 \cdot 7-4 \cdot 5|$. Remark. The transformations allowed in the problem are in fact the elementary transformations of the determinant $$ \left|\begin{array}{ll} a & b \\ c & d \end{array}\right| $$ and the invariant $|a d-b c|$ is the absolute value of the determinant which is preserved under these transformations.
{ "resource_path": "BalticWay/segmented/en-bw01sol.jsonl", "problem_match": "\n20.", "solution_match": "\n20." }
a2242792-7cf1-5504-b5cb-07723d91ae8b
605,107
We draw $n$ convex quadrilaterals in the plane. They divide the plane into regions (one of the regions is infinite). Determine the maximal possible number of these regions.
One quadrilateral produces two regions. Suppose we have drawn $k$ quadrilaterals $Q_{1}, \ldots, Q_{k}$ and produced $a_{k}$ regions. We draw another quadrilateral $Q_{k+1}$ and try to evaluate the number of regions $a_{k+1}$ now produced. Our task is to make $a_{k+1}$ as large as possible. Note that in a maximal configuration, no vertex of any $Q_{i}$ can be located on the edge of another quadrilateral as otherwise we could move this vertex a little bit to produce an extra region. Because of this fact and the convexity of the $Q_{j}$ 's, any one of the four sides of $Q_{k+1}$ meets at most two sides of any $Q_{j}$. So the sides of $Q_{k+1}$ are divided into at most $2 k+1$ segments, each of which potentially grows the number of regions by one (being part of the common boundary of two parts, one of which is counted in $a_{k}$ ). But if a side of $Q_{k+1}$ intersects the boundary of each $Q_{j}, 1 \leqslant j \leqslant k$ twice, then its endpoints (vertices of $Q_{k+1}$ ) are in the region outside of all the $Q_{j}$-s, and the the segments meeting at such a vertex are on the boundary of a single new part (recall that it makes no sense to put vertices on edges of another quadrilaterals). This means that $a_{k+1}-a_{k} \leqslant 4(2 k+1)-4=8 k$. By considering squares inscribed in a circle one easily sees that the situation where $a_{k+1}-a_{k}=8 k$ can be reached. It remains to determine the expression for the maximal $a_{k}$. Since the difference $a_{k+1}-a_{k}$ is linear in $k, a_{k}$ is a quadratic polynomial in $k$, and $a_{0}=2$. So $a_{k}=A k^{2}+B k+2$. We have $8 k=a_{k+1}-a_{k}=A(2 k+1)+B$ for all $k$. This implies $A=4, B=-4$, and $a_{n}=4 n^{2}-4 n+2$.
4 n^{2}-4 n+2
Yes
Yes
math-word-problem
Geometry
We draw $n$ convex quadrilaterals in the plane. They divide the plane into regions (one of the regions is infinite). Determine the maximal possible number of these regions. Answer: The maximal number of regions is $4 n^{2}-4 n+2$.
One quadrilateral produces two regions. Suppose we have drawn $k$ quadrilaterals $Q_{1}, \ldots, Q_{k}$ and produced $a_{k}$ regions. We draw another quadrilateral $Q_{k+1}$ and try to evaluate the number of regions $a_{k+1}$ now produced. Our task is to make $a_{k+1}$ as large as possible. Note that in a maximal configuration, no vertex of any $Q_{i}$ can be located on the edge of another quadrilateral as otherwise we could move this vertex a little bit to produce an extra region. Because of this fact and the convexity of the $Q_{j}$ 's, any one of the four sides of $Q_{k+1}$ meets at most two sides of any $Q_{j}$. So the sides of $Q_{k+1}$ are divided into at most $2 k+1$ segments, each of which potentially grows the number of regions by one (being part of the common boundary of two parts, one of which is counted in $a_{k}$ ). But if a side of $Q_{k+1}$ intersects the boundary of each $Q_{j}, 1 \leqslant j \leqslant k$ twice, then its endpoints (vertices of $Q_{k+1}$ ) are in the region outside of all the $Q_{j}$-s, and the the segments meeting at such a vertex are on the boundary of a single new part (recall that it makes no sense to put vertices on edges of another quadrilaterals). This means that $a_{k+1}-a_{k} \leqslant 4(2 k+1)-4=8 k$. By considering squares inscribed in a circle one easily sees that the situation where $a_{k+1}-a_{k}=8 k$ can be reached. It remains to determine the expression for the maximal $a_{k}$. Since the difference $a_{k+1}-a_{k}$ is linear in $k, a_{k}$ is a quadratic polynomial in $k$, and $a_{0}=2$. So $a_{k}=A k^{2}+B k+2$. We have $8 k=a_{k+1}-a_{k}=A(2 k+1)+B$ for all $k$. This implies $A=4, B=-4$, and $a_{n}=4 n^{2}-4 n+2$.
{ "resource_path": "BalticWay/segmented/en-bw02sol.jsonl", "problem_match": "\n7.", "solution_match": "\nSolution." }
2ebe0de7-73b1-5fb7-bb21-3407b0efef7f
236,576
Let $N$ be a positive integer. Two persons play the following game. The first player writes a list of positive integers not greater than 25 , not necessarily different, such that their sum is at least 200 . The second player wins if he can select some of these numbers so that their sum $S$ satisfies the condition $200-N \leqslant S \leqslant 200+N$. What is the smallest value of $N$ for which the second player has a winning strategy?
If $N=11$, then the second player can simply remove numbers from the list, starting with the smallest number, until the sum of the remaining numbers is less than 212. If the last number removed was not 24 or 25 , then the sum of the remaining numbers is at least $212-23=189$. If the last number removed was 24 or 25 , then only 24 -s and 25 -s remain, and there must be exactly 8 of them since their sum must be less than 212 and not less than $212-24=188$. Hence their sum $S$ satisfies $8 \cdot 24=192 \leqslant S \leqslant 8 \cdot 25=200$. In any case the second player wins. On the other hand, if $N \leqslant 10$, then the first player can write 25 two times and 23 seven times. Then the sum of all numbers is 211 , but if at least one number is removed, then the sum of the remaining ones is at most 188 - so the second player cannot win.
11
Yes
Yes
math-word-problem
Combinatorics
Let $N$ be a positive integer. Two persons play the following game. The first player writes a list of positive integers not greater than 25 , not necessarily different, such that their sum is at least 200 . The second player wins if he can select some of these numbers so that their sum $S$ satisfies the condition $200-N \leqslant S \leqslant 200+N$. What is the smallest value of $N$ for which the second player has a winning strategy? Answer: $N=11$.
If $N=11$, then the second player can simply remove numbers from the list, starting with the smallest number, until the sum of the remaining numbers is less than 212. If the last number removed was not 24 or 25 , then the sum of the remaining numbers is at least $212-23=189$. If the last number removed was 24 or 25 , then only 24 -s and 25 -s remain, and there must be exactly 8 of them since their sum must be less than 212 and not less than $212-24=188$. Hence their sum $S$ satisfies $8 \cdot 24=192 \leqslant S \leqslant 8 \cdot 25=200$. In any case the second player wins. On the other hand, if $N \leqslant 10$, then the first player can write 25 two times and 23 seven times. Then the sum of all numbers is 211 , but if at least one number is removed, then the sum of the remaining ones is at most 188 - so the second player cannot win.
{ "resource_path": "BalticWay/segmented/en-bw02sol.jsonl", "problem_match": "\n10.", "solution_match": "\nSolution." }
40bc2cb2-0cd2-52be-b8b4-d9deb7870e3b
605,278
Find all integers $n>1$ such that any prime divisor of $n^{6}-1$ is a divisor of $\left(n^{3}-1\right)\left(n^{2}-1\right)$.
Clearly $n=2$ is such an integer. We will show that there are no others. Consider the equality $$ n^{6}-1=\left(n^{2}-n+1\right)(n+1)\left(n^{3}-1\right) \text {. } $$ The integer $n^{2}-n+1=n(n-1)+1$ clearly has an odd divisor $p$. Then $p \mid n^{3}+1$. Therefore, $p$ does not divide $n^{3}-1$ and consequently $p \mid n^{2}-1$. This implies that $p$ divides $\left(n^{3}+1\right)+\left(n^{2}-1\right)=n^{2}(n+1)$. As $p$ does not divide $n$, we obtain $p \mid n+1$. Also, $p \mid\left(n^{2}-1\right)-\left(n^{2}-n+1\right)=n-2$. From $p \mid n+1$ and $p \mid n-2$ it follows that $p=3$, so $n^{2}-n+1=3^{r}$ for some positive integer $r$. The discriminant of the quadratic $n^{2}-n+\left(1-3^{r}\right)$ must be a square of an integer, hence $$ 1-4\left(1-3^{r}\right)=3\left(4 \cdot 3^{r-1}-1\right) $$ must be a squareof an integer. Since for $r \geqslant 2$ the number $4 \cdot 3^{r-1}-1$ is not divisible by 3 , this is possible only if $r=1$. So $n^{2}-n-2=0$ and $n=2$.
2
Yes
Yes
math-word-problem
Number Theory
Find all integers $n>1$ such that any prime divisor of $n^{6}-1$ is a divisor of $\left(n^{3}-1\right)\left(n^{2}-1\right)$.
Clearly $n=2$ is such an integer. We will show that there are no others. Consider the equality $$ n^{6}-1=\left(n^{2}-n+1\right)(n+1)\left(n^{3}-1\right) \text {. } $$ The integer $n^{2}-n+1=n(n-1)+1$ clearly has an odd divisor $p$. Then $p \mid n^{3}+1$. Therefore, $p$ does not divide $n^{3}-1$ and consequently $p \mid n^{2}-1$. This implies that $p$ divides $\left(n^{3}+1\right)+\left(n^{2}-1\right)=n^{2}(n+1)$. As $p$ does not divide $n$, we obtain $p \mid n+1$. Also, $p \mid\left(n^{2}-1\right)-\left(n^{2}-n+1\right)=n-2$. From $p \mid n+1$ and $p \mid n-2$ it follows that $p=3$, so $n^{2}-n+1=3^{r}$ for some positive integer $r$. The discriminant of the quadratic $n^{2}-n+\left(1-3^{r}\right)$ must be a square of an integer, hence $$ 1-4\left(1-3^{r}\right)=3\left(4 \cdot 3^{r-1}-1\right) $$ must be a squareof an integer. Since for $r \geqslant 2$ the number $4 \cdot 3^{r-1}-1$ is not divisible by 3 , this is possible only if $r=1$. So $n^{2}-n-2=0$ and $n=2$.
{ "resource_path": "BalticWay/segmented/en-bw02sol.jsonl", "problem_match": "\n18.", "solution_match": "\nSolution." }
c75e15e7-4f9a-5dc1-9816-4ec3c9b864a0
236,678
Let $X$ be a subset of $\{1,2,3, \ldots, 10000\}$ with the following property: If $a, b \in X, a \neq b$, then $a \cdot b \notin X$. What is the maximal number of elements in $X$ ?
If $X=\{100,101,102, \ldots, 9999,10000\}$, then for any two selected $a$ and $b, a \neq b$, $a \cdot b \geq 100 \cdot 101>10000$, so $a \cdot b \notin X$. So $X$ may have 9901 elements. Suppose that $x_{1}<x_{2}<\cdots<x_{k}$ are all elements of $X$ that are less than 100. If there are none of them, no more than 9901 numbers can be in the set $X$. Otherwise, if $x_{1}=1$ no other number can be in the set $X$, so suppose $x_{1}>1$ and consider the pairs $$ \begin{gathered} 200-x_{1},\left(200-x_{1}\right) \cdot x_{1} \\ 200-x_{2},\left(200-x_{2}\right) \cdot x_{2} \\ \vdots \\ 200-x_{k},\left(200-x_{k}\right) \cdot x_{k} \end{gathered} $$ Clearly $x_{1}<x_{2}<\cdots<x_{k}<100<200-x_{k}<200-x_{k-1}<\cdots<200-x_{2}<$ $200-x_{1}<200<\left(200-x_{1}\right) \cdot x_{1}<\left(200-x_{2}\right) \cdot x_{2}<\cdots<\left(200-x_{k}\right) \cdot x_{k}$. So all numbers in these pairs are different and greater than 100. So at most one from each pair is in the set $X$. Therefore, there are at least $k$ numbers greater than 100 and $99-k$ numbers less than 100 that are not in the set $X$, together at least 99 numbers out of 10000 not being in the set $X$.
9901
Yes
Yes
math-word-problem
Combinatorics
Let $X$ be a subset of $\{1,2,3, \ldots, 10000\}$ with the following property: If $a, b \in X, a \neq b$, then $a \cdot b \notin X$. What is the maximal number of elements in $X$ ? Answer: 9901.
If $X=\{100,101,102, \ldots, 9999,10000\}$, then for any two selected $a$ and $b, a \neq b$, $a \cdot b \geq 100 \cdot 101>10000$, so $a \cdot b \notin X$. So $X$ may have 9901 elements. Suppose that $x_{1}<x_{2}<\cdots<x_{k}$ are all elements of $X$ that are less than 100. If there are none of them, no more than 9901 numbers can be in the set $X$. Otherwise, if $x_{1}=1$ no other number can be in the set $X$, so suppose $x_{1}>1$ and consider the pairs $$ \begin{gathered} 200-x_{1},\left(200-x_{1}\right) \cdot x_{1} \\ 200-x_{2},\left(200-x_{2}\right) \cdot x_{2} \\ \vdots \\ 200-x_{k},\left(200-x_{k}\right) \cdot x_{k} \end{gathered} $$ Clearly $x_{1}<x_{2}<\cdots<x_{k}<100<200-x_{k}<200-x_{k-1}<\cdots<200-x_{2}<$ $200-x_{1}<200<\left(200-x_{1}\right) \cdot x_{1}<\left(200-x_{2}\right) \cdot x_{2}<\cdots<\left(200-x_{k}\right) \cdot x_{k}$. So all numbers in these pairs are different and greater than 100. So at most one from each pair is in the set $X$. Therefore, there are at least $k$ numbers greater than 100 and $99-k$ numbers less than 100 that are not in the set $X$, together at least 99 numbers out of 10000 not being in the set $X$.
{ "resource_path": "BalticWay/segmented/en-bw03sol.jsonl", "problem_match": "\n7.", "solution_match": "\nSolution:" }
004868eb-7812-5707-961b-5f420804471d
605,564
A positive integer is written on each of the six faces of a cube. For each vertex of the cube we compute the product of the numbers on the three adjacent faces. The sum of these products is 1001. What is the sum of the six numbers on the faces?
Let the numbers on the faces be $a_{1}, a_{2}, b_{1}, b_{2}, c_{1}, c_{2}$, placed so that $a_{1}$ and $a_{2}$ are on opposite faces etc. Then the sum of the eight products is equal to $$ \left(a_{1}+a_{2}\right)\left(b_{1}+b_{2}\right)\left(c_{1}+c_{2}\right)=1001=7 \cdot 11 \cdot 13 . $$ Hence the sum of the numbers on the faces is $a_{1}+a_{2}+b_{1}+b_{2}+c_{1}+c_{2}=7+11+13=$ 31.
31
Yes
Yes
math-word-problem
Number Theory
A positive integer is written on each of the six faces of a cube. For each vertex of the cube we compute the product of the numbers on the three adjacent faces. The sum of these products is 1001. What is the sum of the six numbers on the faces?
Let the numbers on the faces be $a_{1}, a_{2}, b_{1}, b_{2}, c_{1}, c_{2}$, placed so that $a_{1}$ and $a_{2}$ are on opposite faces etc. Then the sum of the eight products is equal to $$ \left(a_{1}+a_{2}\right)\left(b_{1}+b_{2}\right)\left(c_{1}+c_{2}\right)=1001=7 \cdot 11 \cdot 13 . $$ Hence the sum of the numbers on the faces is $a_{1}+a_{2}+b_{1}+b_{2}+c_{1}+c_{2}=7+11+13=$ 31.
{ "resource_path": "BalticWay/segmented/en-bw04sol.jsonl", "problem_match": "\n6.", "solution_match": "\nSolution:" }
393d016a-7746-5a26-80e4-e14ed2f0da0a
239,374
There are $2 n$ different numbers in a row. By one move we can interchange any two numbers or interchange any three numbers cyclically (choose $a, b, c$ and place a instead of $b, b$ instead of $c$ and $c$ instead of $a$ ). What is the minimal number of moves that is always sufficient to arrange the numbers in increasing order?
If a number $y$ occupies the place where $x$ should be at the end, we draw an arrow $x \rightarrow y$. Clearly at the beginning all numbers are arranged in several cycles: Loops $\bullet \bullet$, binary cycles $\bullet \rightleftarrows \bullet$ and "long" cycles $\bullet_{\nwarrow}^{\nearrow} \succeq \bullet$ (at least three numbers). Our aim is to obtain $2 n$ loops. Clearly each binary cycle can be rearranged into two loops by one move. If there is a long cycle with a fragment $\cdots \rightarrow a \rightarrow b \rightarrow c \rightarrow \cdots$, interchange $a, b, c$ cyclically so that at least two loops, $a \oslash, b \oslash$, appear. By each of these moves, the number of loops increase by 2 , so at most $n$ moves are needed. On the other hand, by checking all possible ways the two or three numbers can be distributed among disjoint cycles, it is easy to see that each of the allowed moves increases the number of disjoint cycles by at most two. Hence if the initial situation is one single loop, at least $n$ moves are needed.
n
Yes
Yes
math-word-problem
Combinatorics
There are $2 n$ different numbers in a row. By one move we can interchange any two numbers or interchange any three numbers cyclically (choose $a, b, c$ and place a instead of $b, b$ instead of $c$ and $c$ instead of $a$ ). What is the minimal number of moves that is always sufficient to arrange the numbers in increasing order?
If a number $y$ occupies the place where $x$ should be at the end, we draw an arrow $x \rightarrow y$. Clearly at the beginning all numbers are arranged in several cycles: Loops $\bullet \bullet$, binary cycles $\bullet \rightleftarrows \bullet$ and "long" cycles $\bullet_{\nwarrow}^{\nearrow} \succeq \bullet$ (at least three numbers). Our aim is to obtain $2 n$ loops. Clearly each binary cycle can be rearranged into two loops by one move. If there is a long cycle with a fragment $\cdots \rightarrow a \rightarrow b \rightarrow c \rightarrow \cdots$, interchange $a, b, c$ cyclically so that at least two loops, $a \oslash, b \oslash$, appear. By each of these moves, the number of loops increase by 2 , so at most $n$ moves are needed. On the other hand, by checking all possible ways the two or three numbers can be distributed among disjoint cycles, it is easy to see that each of the allowed moves increases the number of disjoint cycles by at most two. Hence if the initial situation is one single loop, at least $n$ moves are needed.
{ "resource_path": "BalticWay/segmented/en-bw04sol.jsonl", "problem_match": "\n12.", "solution_match": "\nSolution:" }
36b8c06d-4777-5175-b4c3-30940413efd3
239,426
The 25 member states of the European Union set up a committee with the following rules: (1) the committee should meet daily; (2) at each meeting, at least one member state should be represented; (3) at any two different meetings, a different set of member states should be represented; and (4) at the $n$ 'th meeting, for every $k<n$, the set of states represented should include at least one state that was represented at the k'th meeting. For how many days can the committee have its meetings?
If one member is always represented, rules 2 and 4 will be fulfilled. There are $2^{24}$ different subsets of the remaining 24 members, so there can be at least $2^{24}$ meetings. Rule 3 forbids complementary sets at two different meetings, so the maximal number of meetings cannot exceed $\frac{1}{2} \cdot 2^{25}=2^{24}$. So the maximal number of meetings for the committee is exactly $2^{24}=16777216$.
16777216
Yes
Yes
math-word-problem
Combinatorics
The 25 member states of the European Union set up a committee with the following rules: (1) the committee should meet daily; (2) at each meeting, at least one member state should be represented; (3) at any two different meetings, a different set of member states should be represented; and (4) at the $n$ 'th meeting, for every $k<n$, the set of states represented should include at least one state that was represented at the k'th meeting. For how many days can the committee have its meetings? Answer: At most $2^{24}=16777216$ days.
If one member is always represented, rules 2 and 4 will be fulfilled. There are $2^{24}$ different subsets of the remaining 24 members, so there can be at least $2^{24}$ meetings. Rule 3 forbids complementary sets at two different meetings, so the maximal number of meetings cannot exceed $\frac{1}{2} \cdot 2^{25}=2^{24}$. So the maximal number of meetings for the committee is exactly $2^{24}=16777216$.
{ "resource_path": "BalticWay/segmented/en-bw04sol.jsonl", "problem_match": "\n13.", "solution_match": "\nSolution:" }
1c62fa40-bc90-53e4-96c5-ca2e056e8bf6
239,433
Consider a grid of $25 \times 25$ unit squares. Draw with a red pen contours of squares of any size on the grid. What is the minimal number of squares we must draw in order to colour all the lines of the grid?
Consider a diagonal of the square grid. For any grid vertex $A$ on this diagonal denote by $C$ the farthest endpoint of this diagonal. Let the square with the diagonal $A C$ be red. Thus, we have defined the set of 48 red squares (24 for each diagonal). It is clear that if we draw all these squares, all the lines in the grid will turn red. In order to show that 48 is the minimum, consider all grid segments of length 1 that have exactly one endpoint on the border of the grid. Every horizontal and every vertical line that cuts the grid into two parts determines two such segments. So we have $4 \cdot 24=96$ segments. It is evident that every red square can contain at most two of these segments.
48
Yes
Yes
math-word-problem
Geometry
Consider a grid of $25 \times 25$ unit squares. Draw with a red pen contours of squares of any size on the grid. What is the minimal number of squares we must draw in order to colour all the lines of the grid? Answer: 48 squares.
Consider a diagonal of the square grid. For any grid vertex $A$ on this diagonal denote by $C$ the farthest endpoint of this diagonal. Let the square with the diagonal $A C$ be red. Thus, we have defined the set of 48 red squares (24 for each diagonal). It is clear that if we draw all these squares, all the lines in the grid will turn red. In order to show that 48 is the minimum, consider all grid segments of length 1 that have exactly one endpoint on the border of the grid. Every horizontal and every vertical line that cuts the grid into two parts determines two such segments. So we have $4 \cdot 24=96$ segments. It is evident that every red square can contain at most two of these segments.
{ "resource_path": "BalticWay/segmented/en-bw05sol.jsonl", "problem_match": "\n8.", "solution_match": "\nSolution:" }
bbd2575c-baa3-5864-8987-d7cf8c0a3957
239,218
Let $m=30030=2 \cdot 3 \cdot 5 \cdot 7 \cdot 11 \cdot 13$ and let $M$ be the set of its positive divisors which have exactly two prime factors. Determine the minimal integer $n$ with the following property: for any choice of numbers from $M$, there exist three numbers $a, b, c$ among them satisfying $a \cdot b \cdot c=m$.
Taking the 10 divisors without the prime 13 shows that $n \geq 11$. Consider the following partition of the 15 divisors into five groups of three each with the property that the product of the numbers in every group equals $m$. $$ \begin{array}{ll} \{2 \cdot 3,5 \cdot 13,7 \cdot 11\}, & \{2 \cdot 5,3 \cdot 7,11 \cdot 13\}, \\ \{2 \cdot 11,3 \cdot 5,7 \cdot 13\}, & \{2 \cdot 13,3 \cdot 11,5 \cdot 7\} . \end{array} $$ If $n=11$, there is a group from which we take all three numbers, that is, their product equals $m$.
11
Yes
Yes
math-word-problem
Number Theory
Let $m=30030=2 \cdot 3 \cdot 5 \cdot 7 \cdot 11 \cdot 13$ and let $M$ be the set of its positive divisors which have exactly two prime factors. Determine the minimal integer $n$ with the following property: for any choice of numbers from $M$, there exist three numbers $a, b, c$ among them satisfying $a \cdot b \cdot c=m$. Answer: $n=11$.
Taking the 10 divisors without the prime 13 shows that $n \geq 11$. Consider the following partition of the 15 divisors into five groups of three each with the property that the product of the numbers in every group equals $m$. $$ \begin{array}{ll} \{2 \cdot 3,5 \cdot 13,7 \cdot 11\}, & \{2 \cdot 5,3 \cdot 7,11 \cdot 13\}, \\ \{2 \cdot 11,3 \cdot 5,7 \cdot 13\}, & \{2 \cdot 13,3 \cdot 11,5 \cdot 7\} . \end{array} $$ If $n=11$, there is a group from which we take all three numbers, that is, their product equals $m$.
{ "resource_path": "BalticWay/segmented/en-bw05sol.jsonl", "problem_match": "\n10.", "solution_match": "\nSolution:" }
7ce008f6-01d8-51bc-92fb-8ef08fd2de65
239,238
What is the smallest number of circles of radius $\sqrt{2}$ that are needed to cover a rectangle (a) of size $6 \times 3$ ? (b) of size $5 \times 3$ ?
(a) Consider the four corners and the two midpoints of the sides of length 6 . The distance between any two of these six points is 3 or more, so one circle cannot cover two of these points, and at least six circles are needed. On the other hand one circle will cover a $2 \times 2$ square, and it is easy to see that six such squares can cover the rectangle. (b) Consider the four corners and the centre of the rectangle. The minimum distance between any two of these points is the distance between the centre and one of the corners, which is $\sqrt{34} / 2$. This is greater than the diameter of the circle $(\sqrt{34 / 4}>\sqrt{32 / 4})$, so one circle cannot cover two of these points, and at least five circles are needed. ![](https://cdn.mathpix.com/cropped/2024_04_17_bd0ab80c8c81a55b87c5g-07.jpg?height=225&width=300&top_left_y=430&top_left_x=1478) Partition the rectangle into three rectangles of size $5 / 3 \times 2$ and two rectangles of size $5 / 2 \times 1$ as shown on the right. It is easy to check that each has a diagonal of length less than $2 \sqrt{2}$, so five circles can cover the five small rectangles and hence the $5 \times 3$ rectangle.
6
Yes
Yes
math-word-problem
Geometry
What is the smallest number of circles of radius $\sqrt{2}$ that are needed to cover a rectangle (a) of size $6 \times 3$ ? (b) of size $5 \times 3$ ? Answer: (a) Six circles, (b) five circles.
(a) Consider the four corners and the two midpoints of the sides of length 6 . The distance between any two of these six points is 3 or more, so one circle cannot cover two of these points, and at least six circles are needed. On the other hand one circle will cover a $2 \times 2$ square, and it is easy to see that six such squares can cover the rectangle. (b) Consider the four corners and the centre of the rectangle. The minimum distance between any two of these points is the distance between the centre and one of the corners, which is $\sqrt{34} / 2$. This is greater than the diameter of the circle $(\sqrt{34 / 4}>\sqrt{32 / 4})$, so one circle cannot cover two of these points, and at least five circles are needed. ![](https://cdn.mathpix.com/cropped/2024_04_17_bd0ab80c8c81a55b87c5g-07.jpg?height=225&width=300&top_left_y=430&top_left_x=1478) Partition the rectangle into three rectangles of size $5 / 3 \times 2$ and two rectangles of size $5 / 2 \times 1$ as shown on the right. It is easy to check that each has a diagonal of length less than $2 \sqrt{2}$, so five circles can cover the five small rectangles and hence the $5 \times 3$ rectangle.
{ "resource_path": "BalticWay/segmented/en-bw05sol.jsonl", "problem_match": "\n13.", "solution_match": "\nSolution:" }
5e700d5c-a077-5b06-9edd-9175275dec9b
606,275
For a sequence $a_{1}, a_{2}, a_{3}, \ldots$ of real numbers it is known that $$ a_{n}=a_{n-1}+a_{n+2} \quad \text { for } n=2,3,4, \ldots $$ What is the largest number of its consecutive elements that can all be positive?
The initial segment of the sequence could be $1 ; 2 ; 3 ; 1 ; 1 ;-2 ; 0$. Clearly it is enough to consider only initial segments. For each sequence the first 6 elements are $a_{1} ; a_{2}$; $a_{3} ; a_{2}-a_{1} ; a_{3}-a_{2} ; a_{2}-a_{1}-a_{3}$. As we see, $a_{1}+a_{5}+a_{6}=a_{1}+\left(a_{3}-a_{2}\right)+\left(a_{2}-a_{1}-a_{3}\right)=$ 0 . So all the elements $a_{1}, a_{5}, a_{6}$ can not be positive simultaneously.
5
Yes
Yes
math-word-problem
Algebra
For a sequence $a_{1}, a_{2}, a_{3}, \ldots$ of real numbers it is known that $$ a_{n}=a_{n-1}+a_{n+2} \quad \text { for } n=2,3,4, \ldots $$ What is the largest number of its consecutive elements that can all be positive? Answer: 5.
The initial segment of the sequence could be $1 ; 2 ; 3 ; 1 ; 1 ;-2 ; 0$. Clearly it is enough to consider only initial segments. For each sequence the first 6 elements are $a_{1} ; a_{2}$; $a_{3} ; a_{2}-a_{1} ; a_{3}-a_{2} ; a_{2}-a_{1}-a_{3}$. As we see, $a_{1}+a_{5}+a_{6}=a_{1}+\left(a_{3}-a_{2}\right)+\left(a_{2}-a_{1}-a_{3}\right)=$ 0 . So all the elements $a_{1}, a_{5}, a_{6}$ can not be positive simultaneously.
{ "resource_path": "BalticWay/segmented/en-bw06sol.jsonl", "problem_match": "\n1.", "solution_match": "\nSolution:" }
117a677d-7faa-5d97-a8cf-b3be3ab405b6
241,678
Let $a, b, c, d, e, f$ be non-negative real numbers satisfying $a+b+c+d+e+f=6$. Find the maximal possible value of $$ a b c+b c d+c d e+d e f+e f a+f a b $$ and determine all 6-tuples $(a, b, c, d, e, f)$ for which this maximal value is achieved.
If we set $a=b=c=2, d=e=f=0$, then the given expression is equal to 8 . We will show that this is the maximal value. Applying the inequality between arithmetic and geometric mean we obtain $$ \begin{aligned} 8 & =\left(\frac{(a+d)+(b+e)+(c+f)}{3}\right)^{3} \geq(a+d)(b+e)(c+f) \\ & =(a b c+b c d+c d e+d e f+e f a+f a b)+(a c e+b d f), \end{aligned} $$ so we see that $a b c+b c d+c d e+d e f+e f a+f a b \leq 8$ and the maximal value 8 is achieved when $a+d=b+e=c+f$ (and then the common value is 2 because $a+b+c+d+$ $e+f=6)$ and $a c e=b d f=0$, which can be written as $(a, b, c, d, e, f)=(a, b, c, 2-a, 2-$ $b, 2-c)$ with $a c(2-b)=b(2-a)(2-c)=0$. From this it follows that $(a, b, c)$ must have one of the forms $(0,0, t),(0, t, 2),(t, 2,2),(2,2, t),(2, t, 0)$ or $(t, 0,0)$. Therefore the maximum is achieved for the 6 -tuples $(a, b, c, d, e, f)=(0,0, t, 2,2,2-t)$, where $0 \leq t \leq 2$, and its cyclic permutations.
8
Yes
Yes
math-word-problem
Inequalities
Let $a, b, c, d, e, f$ be non-negative real numbers satisfying $a+b+c+d+e+f=6$. Find the maximal possible value of $$ a b c+b c d+c d e+d e f+e f a+f a b $$ and determine all 6-tuples $(a, b, c, d, e, f)$ for which this maximal value is achieved. Answer: 8 .
If we set $a=b=c=2, d=e=f=0$, then the given expression is equal to 8 . We will show that this is the maximal value. Applying the inequality between arithmetic and geometric mean we obtain $$ \begin{aligned} 8 & =\left(\frac{(a+d)+(b+e)+(c+f)}{3}\right)^{3} \geq(a+d)(b+e)(c+f) \\ & =(a b c+b c d+c d e+d e f+e f a+f a b)+(a c e+b d f), \end{aligned} $$ so we see that $a b c+b c d+c d e+d e f+e f a+f a b \leq 8$ and the maximal value 8 is achieved when $a+d=b+e=c+f$ (and then the common value is 2 because $a+b+c+d+$ $e+f=6)$ and $a c e=b d f=0$, which can be written as $(a, b, c, d, e, f)=(a, b, c, 2-a, 2-$ $b, 2-c)$ with $a c(2-b)=b(2-a)(2-c)=0$. From this it follows that $(a, b, c)$ must have one of the forms $(0,0, t),(0, t, 2),(t, 2,2),(2,2, t),(2, t, 0)$ or $(t, 0,0)$. Therefore the maximum is achieved for the 6 -tuples $(a, b, c, d, e, f)=(0,0, t, 2,2,2-t)$, where $0 \leq t \leq 2$, and its cyclic permutations.
{ "resource_path": "BalticWay/segmented/en-bw06sol.jsonl", "problem_match": "\n4.", "solution_match": "\nSolution:" }
72e7c7a9-5535-5435-b072-abed884d6249
606,338
Determine the maximal size of a set of positive integers with the following properties: (1) The integers consist of digits from the set $\{1,2,3,4,5,6\}$. (2) No digit occurs more than once in the same integer. (3) The digits in each integer are in increasing order. (4) Any two integers have at least one digit in common (possibly at different positions). (5) There is no digit which appears in all the integers.
Associate with any $a_{i}$ the set $M_{i}$ of its digits. By (??), (??) and (??) the numbers are uniquely determined by their associated subsets of $\{1,2, \ldots, 6\}$. By (??) the sets are intersecting. Partition the 64 subsets of $\{1,2, \ldots, 6\}$ into 32 pairs of complementary sets $(X,\{1,2, \ldots, 6\}-X)$. Obviously, at most one of the two sets in such a pair can be a $M_{i}$, since the two sets are non-intersecting. Hence, $n \leq 32$. Consider the 22 subsets with at least four elements and the 10 subsets with three elements containing 1 . Hence, $n=32$. 7. A photographer took some pictures at a party with 10 people. Each of the 45 possible pairs of people appears together on exactly one photo, and each photo depicts two or three people. What is the smallest possible number of photos taken? Answer: 19.
32
Yes
Yes
math-word-problem
Combinatorics
Determine the maximal size of a set of positive integers with the following properties: (1) The integers consist of digits from the set $\{1,2,3,4,5,6\}$. (2) No digit occurs more than once in the same integer. (3) The digits in each integer are in increasing order. (4) Any two integers have at least one digit in common (possibly at different positions). (5) There is no digit which appears in all the integers. Answer: 32.
Associate with any $a_{i}$ the set $M_{i}$ of its digits. By (??), (??) and (??) the numbers are uniquely determined by their associated subsets of $\{1,2, \ldots, 6\}$. By (??) the sets are intersecting. Partition the 64 subsets of $\{1,2, \ldots, 6\}$ into 32 pairs of complementary sets $(X,\{1,2, \ldots, 6\}-X)$. Obviously, at most one of the two sets in such a pair can be a $M_{i}$, since the two sets are non-intersecting. Hence, $n \leq 32$. Consider the 22 subsets with at least four elements and the 10 subsets with three elements containing 1 . Hence, $n=32$. 7. A photographer took some pictures at a party with 10 people. Each of the 45 possible pairs of people appears together on exactly one photo, and each photo depicts two or three people. What is the smallest possible number of photos taken? Answer: 19.
{ "resource_path": "BalticWay/segmented/en-bw06sol.jsonl", "problem_match": "\n6.", "solution_match": "\nSolution:" }
ee5c261b-ecc1-590e-b8fa-77c522f10d19
241,731
The altitudes of a triangle are 12,15 and 20. What is the area of the triangle?
Denote the sides of the triangle by $a, b$ and $c$ and its altitudes by $h_{a}, h_{b}$ and $h_{c}$. Then we know that $h_{a}=12, h_{b}=15$ and $h_{c}=20$. By the well known relation $a: b=h_{b}: h_{a}$ it follows $b=\frac{h_{a}}{h_{b}} a=\frac{12}{15} a=\frac{4}{5} a$. Analogously, $c=\frac{h_{a}}{h_{c}} a=\frac{12}{20} a=\frac{3}{5} a$. Thus half of the triangle's circumference is $s=\frac{1}{2}(a+b+c)=\frac{1}{2}\left(a+\frac{4}{5} a+\frac{3}{5} a\right)=\frac{6}{5} a$. For the area $\Delta$ of the triangle we have $\Delta=\frac{1}{2} a h_{a}=\frac{1}{2} a 12=6 a$, and also by the well known Heron formula $\Delta=\sqrt{s(s-a)(s-b)(s-c)}=\sqrt{\frac{6}{5} a \cdot \frac{1}{5} a \cdot \frac{2}{5} a \cdot \frac{3}{5} a}=\sqrt{\frac{6^{2}}{5^{4}} a^{4}}=\frac{6}{25} a^{2}$. Hence, $6 a=\frac{6}{25} a^{2}$, and we get $a=25(b=20, c=15)$ and consequently $\Delta=150$.
150
Yes
Yes
math-word-problem
Geometry
The altitudes of a triangle are 12,15 and 20. What is the area of the triangle? Answer: 150.
Denote the sides of the triangle by $a, b$ and $c$ and its altitudes by $h_{a}, h_{b}$ and $h_{c}$. Then we know that $h_{a}=12, h_{b}=15$ and $h_{c}=20$. By the well known relation $a: b=h_{b}: h_{a}$ it follows $b=\frac{h_{a}}{h_{b}} a=\frac{12}{15} a=\frac{4}{5} a$. Analogously, $c=\frac{h_{a}}{h_{c}} a=\frac{12}{20} a=\frac{3}{5} a$. Thus half of the triangle's circumference is $s=\frac{1}{2}(a+b+c)=\frac{1}{2}\left(a+\frac{4}{5} a+\frac{3}{5} a\right)=\frac{6}{5} a$. For the area $\Delta$ of the triangle we have $\Delta=\frac{1}{2} a h_{a}=\frac{1}{2} a 12=6 a$, and also by the well known Heron formula $\Delta=\sqrt{s(s-a)(s-b)(s-c)}=\sqrt{\frac{6}{5} a \cdot \frac{1}{5} a \cdot \frac{2}{5} a \cdot \frac{3}{5} a}=\sqrt{\frac{6^{2}}{5^{4}} a^{4}}=\frac{6}{25} a^{2}$. Hence, $6 a=\frac{6}{25} a^{2}$, and we get $a=25(b=20, c=15)$ and consequently $\Delta=150$.
{ "resource_path": "BalticWay/segmented/en-bw06sol.jsonl", "problem_match": "\n11.", "solution_match": "\nSolution:" }
67c7a472-dfa5-5c5b-ba9f-fd065e3b0768
606,364
Determine all positive integers $n$ such that $3^{n}+1$ is divisible by $n^{2}$.
First observe that if $n^{2} \mid 3^{n}+1$, then $n$ must be odd, because if $n$ is even, then $3^{n}$ is a square of an odd integer, hence $3^{n}+1 \equiv 1+1=2(\bmod 4)$, so $3^{n}+1$ cannot be divisible by $n^{2}$ which is a multiple of 4 . Assume that for some $n>1$ we have $n^{2} \mid 3^{n}+1$. Let $p$ be the smallest prime divisor of $n$. We have shown that $p>2$. It is also clear that $p \neq 3$, since $3^{n}+1$ is never divisible by 3. Therefore $p \geq 5$. We have $p \mid 3^{n}+1$, so also $p \mid 3^{2 n}-1$. Let $k$ be the smallest positive integer such that $p \mid 3^{k}-1$. Then we have $k \mid 2 n$, but also $k \mid p-1$ by Fermat's theorem. The numbers $3^{1}-1,3^{2}-1$ do not have prime divisors other than 2 , so $p \geq 5$ implies $k \geq 3$. This means that $\operatorname{gcd}(2 n, p-1) \geq k \geq 3$, and therefore $\operatorname{gcd}(n, p-1)>1$, which contradicts the fact that $p$ is the smallest prime divisor of $n$. This completes the proof.
1
Yes
Yes
math-word-problem
Number Theory
Determine all positive integers $n$ such that $3^{n}+1$ is divisible by $n^{2}$. Answer: Only $n=1$ satisfies the given condition.
First observe that if $n^{2} \mid 3^{n}+1$, then $n$ must be odd, because if $n$ is even, then $3^{n}$ is a square of an odd integer, hence $3^{n}+1 \equiv 1+1=2(\bmod 4)$, so $3^{n}+1$ cannot be divisible by $n^{2}$ which is a multiple of 4 . Assume that for some $n>1$ we have $n^{2} \mid 3^{n}+1$. Let $p$ be the smallest prime divisor of $n$. We have shown that $p>2$. It is also clear that $p \neq 3$, since $3^{n}+1$ is never divisible by 3. Therefore $p \geq 5$. We have $p \mid 3^{n}+1$, so also $p \mid 3^{2 n}-1$. Let $k$ be the smallest positive integer such that $p \mid 3^{k}-1$. Then we have $k \mid 2 n$, but also $k \mid p-1$ by Fermat's theorem. The numbers $3^{1}-1,3^{2}-1$ do not have prime divisors other than 2 , so $p \geq 5$ implies $k \geq 3$. This means that $\operatorname{gcd}(2 n, p-1) \geq k \geq 3$, and therefore $\operatorname{gcd}(n, p-1)>1$, which contradicts the fact that $p$ is the smallest prime divisor of $n$. This completes the proof.
{ "resource_path": "BalticWay/segmented/en-bw06sol.jsonl", "problem_match": "\n17.", "solution_match": "\nSolution:" }
3f843d0a-c8fa-551a-9790-4675c0c5bc11
241,835
How many pairs $(m, n)$ of positive integers with $m<n$ fulfill the equation $$ \frac{3}{2008}=\frac{1}{m}+\frac{1}{n} ? $$ ##
Let $d$ be the greatest common divisor of $m$ and $n$, and let $m=d x$ and $n=d y$. Then the equation is equivalent to $$ 3 d x y=2008(x+y) \text {. } $$ The numbers $x$ and $y$ are relatively prime and have no common divisors with $x+y$ and hence they are both divisors of 2008. Notice that $2008=8 \cdot 251$ and 251 is a prime. Then $x$ and $y$ fulfil: 1) They are both divisors of 2008 . 2) Only one of them can be even. 3) The number 251 can only divide none or one of them. 4) $x<y$. That gives the following possibilities of $(x, y)$ : $$ (1,2),(1,4),(1,8),(1,251),(1,2 \cdot 251),(1,4 \cdot 251),(1,8 \cdot 251),(2,251),(4,251),(8,251) \text {. } $$ The number 3 does not divide 2008 and hence 3 divides $x+y$. That shortens the list down to $$ (1,2),(1,8),(1,251),(1,4 \cdot 251),(4,251) \text {. } $$ For every pair $(x, y)$ in the list determine the number $d=\frac{2008}{x y} \cdot \frac{x+y}{3}$. It is seen that $x y$ divides 2008 for all $(x, y)$ in the list and hence $d$ is an integer. Hence exactly 5 solutions exist to the equation.
5
Yes
Yes
math-word-problem
Number Theory
How many pairs $(m, n)$ of positive integers with $m<n$ fulfill the equation $$ \frac{3}{2008}=\frac{1}{m}+\frac{1}{n} ? $$ ## Answer: 5.
Let $d$ be the greatest common divisor of $m$ and $n$, and let $m=d x$ and $n=d y$. Then the equation is equivalent to $$ 3 d x y=2008(x+y) \text {. } $$ The numbers $x$ and $y$ are relatively prime and have no common divisors with $x+y$ and hence they are both divisors of 2008. Notice that $2008=8 \cdot 251$ and 251 is a prime. Then $x$ and $y$ fulfil: 1) They are both divisors of 2008 . 2) Only one of them can be even. 3) The number 251 can only divide none or one of them. 4) $x<y$. That gives the following possibilities of $(x, y)$ : $$ (1,2),(1,4),(1,8),(1,251),(1,2 \cdot 251),(1,4 \cdot 251),(1,8 \cdot 251),(2,251),(4,251),(8,251) \text {. } $$ The number 3 does not divide 2008 and hence 3 divides $x+y$. That shortens the list down to $$ (1,2),(1,8),(1,251),(1,4 \cdot 251),(4,251) \text {. } $$ For every pair $(x, y)$ in the list determine the number $d=\frac{2008}{x y} \cdot \frac{x+y}{3}$. It is seen that $x y$ divides 2008 for all $(x, y)$ in the list and hence $d$ is an integer. Hence exactly 5 solutions exist to the equation.
{ "resource_path": "BalticWay/segmented/en-bw08sol.jsonl", "problem_match": "\nProblem 7.", "solution_match": "\nSolution:" }
6fc7b8aa-b4c9-5755-9bcc-b711e6333f0e
606,407
Consider a set $A$ of positive integers such that the least element of $A$ equals 1001 and the product of all elements of $A$ is a perfect square. What is the least possible value of the greatest element of $A$ ?
We first prove that max $A$ has to be at least 1040 . As $1001=13 \cdot 77$ and $13 \nmid 77$, the set $A$ must contain a multiple of 13 that is greater than $13 \cdot 77$. Consider the following cases: - $13 \cdot 78 \in$. But $13 \cdot 78=13^{2} \cdot 6$, hence $A$ must also contain some greater multiple of 13 . - $13 \cdot 79 \in A$. As 79 is a prime, $A$ must contain another multiple of 79 , which is greater than 1040 as $14 \cdot 79>1040$ and $12 \cdot 79<1001$. - $13 \cdot k \in A$ for $k \geq 80$. As $13 \cdot k \geq 13 \cdot 80=1040$, we are done. Now take $A=\{1001,1008,1012,1035,1040\}$. The prime factorizations are $1001=7 \cdot 11 \cdot 13,1008=7 \cdot 2^{4} \cdot 3^{2}$, $1012=2^{2} \cdot 11 \cdot 23,1035=5 \cdot 3^{2} \cdot 23,1040=2^{4} \cdot 5 \cdot 13$. The sum of exponents of each prime occurring in these representations is even. Thus the product of elements of $A$ is a perfect square.
1040
Yes
Yes
math-word-problem
Number Theory
Consider a set $A$ of positive integers such that the least element of $A$ equals 1001 and the product of all elements of $A$ is a perfect square. What is the least possible value of the greatest element of $A$ ? Answer: 1040.
We first prove that max $A$ has to be at least 1040 . As $1001=13 \cdot 77$ and $13 \nmid 77$, the set $A$ must contain a multiple of 13 that is greater than $13 \cdot 77$. Consider the following cases: - $13 \cdot 78 \in$. But $13 \cdot 78=13^{2} \cdot 6$, hence $A$ must also contain some greater multiple of 13 . - $13 \cdot 79 \in A$. As 79 is a prime, $A$ must contain another multiple of 79 , which is greater than 1040 as $14 \cdot 79>1040$ and $12 \cdot 79<1001$. - $13 \cdot k \in A$ for $k \geq 80$. As $13 \cdot k \geq 13 \cdot 80=1040$, we are done. Now take $A=\{1001,1008,1012,1035,1040\}$. The prime factorizations are $1001=7 \cdot 11 \cdot 13,1008=7 \cdot 2^{4} \cdot 3^{2}$, $1012=2^{2} \cdot 11 \cdot 23,1035=5 \cdot 3^{2} \cdot 23,1040=2^{4} \cdot 5 \cdot 13$. The sum of exponents of each prime occurring in these representations is even. Thus the product of elements of $A$ is a perfect square.
{ "resource_path": "BalticWay/segmented/en-bw08sol.jsonl", "problem_match": "\nProblem 8.", "solution_match": "\nSolution:" }
f7c76a43-af45-5aac-aed1-952094f549c7
606,411
For a positive integer $n$, let $S(n)$ denote the sum of its digits. Find the largest possible value of the expression $\frac{S(n)}{S(16 n)}$. ##
It is obvious that $S(a b) \leq S(a) S(b)$ for all positive integers $a$ and $b$. From here we get $$ S(n)=S(n \cdot 10000)=S(16 n \cdot 625) \leq S(16 n) \cdot 13 \text {; } $$ so we get $\frac{S(n)}{S(16 n)} \leq 13$. For $n=625$ we have an equality. So the largest value is 13 .
13
Yes
Yes
math-word-problem
Number Theory
For a positive integer $n$, let $S(n)$ denote the sum of its digits. Find the largest possible value of the expression $\frac{S(n)}{S(16 n)}$. ## Answer: 13
It is obvious that $S(a b) \leq S(a) S(b)$ for all positive integers $a$ and $b$. From here we get $$ S(n)=S(n \cdot 10000)=S(16 n \cdot 625) \leq S(16 n) \cdot 13 \text {; } $$ so we get $\frac{S(n)}{S(16 n)} \leq 13$. For $n=625$ we have an equality. So the largest value is 13 .
{ "resource_path": "BalticWay/segmented/en-bw08sol.jsonl", "problem_match": "\nProblem 10.", "solution_match": "\nSolution:" }
ef81138a-b2fd-54a8-9323-3d668c95b0c3
606,415
For an upcoming international mathematics contest, the participating countries were asked to choose from nine combinatorics problems. Given how hard it usually is to agree, nobody was surprised that the following happened: - Every country voted for exactly three problems. - Any two countries voted for different sets of problems. - Given any three countries, there was a problem none of them voted for. Find the maximal possible number of participating countries. ##
Certainly, the 56 three-element subsets of the set $\{1,2, \ldots, 8\}$ would do. Now we prove that 56 is the maximum. Assume we have a maximal configuration. Let $Y$ be the family of the three-element subsets, which were chosen by the participating countries and $N$ be the family of the three-element subsets, which were not chosen by the participating countries. Then $|Y|+|N|=\left(\begin{array}{l}9 \\ 3\end{array}\right)=84$. Consider an $x \in Y$. There are $\left(\begin{array}{l}6 \\ 3\end{array}\right)=20$ three-element subsets disjoint to $x$, which can be partitioned into 10 pairs of complementary subsets. At least one of the two sets of those pairs of complementary sets have to belong to $N$, otherwise these two together with $x$ have the whole sets as union, i.e., three countries would have voted for all problems. Therefore, to any $x \in Y$ there are associated at least 10 sets of $N$. On the other hand, a set $y \in N$ can be associated not more than to 20 sets, since there are exactly 20 disjoint sets to $y$. Together we have $10 \cdot|Y| \leq 20 \cdot|N|$ and $$ |Y|=\frac{2}{3}|Y|+\frac{1}{3}|Y| \leq \frac{2}{3}|Y|+\frac{2}{3}|N|=\frac{2}{3}(|Y|+|N|)=\frac{2}{3} \cdot 84=56 . $$ Remark: The set of the 84 three-element subsets can be partitioned into 28 triples of pairwise disjoint sets. From any of those triples at most two can be chosen. The partition is not obvious, but possible.
56
Yes
Yes
math-word-problem
Combinatorics
For an upcoming international mathematics contest, the participating countries were asked to choose from nine combinatorics problems. Given how hard it usually is to agree, nobody was surprised that the following happened: - Every country voted for exactly three problems. - Any two countries voted for different sets of problems. - Given any three countries, there was a problem none of them voted for. Find the maximal possible number of participating countries. ## Answer: 56
Certainly, the 56 three-element subsets of the set $\{1,2, \ldots, 8\}$ would do. Now we prove that 56 is the maximum. Assume we have a maximal configuration. Let $Y$ be the family of the three-element subsets, which were chosen by the participating countries and $N$ be the family of the three-element subsets, which were not chosen by the participating countries. Then $|Y|+|N|=\left(\begin{array}{l}9 \\ 3\end{array}\right)=84$. Consider an $x \in Y$. There are $\left(\begin{array}{l}6 \\ 3\end{array}\right)=20$ three-element subsets disjoint to $x$, which can be partitioned into 10 pairs of complementary subsets. At least one of the two sets of those pairs of complementary sets have to belong to $N$, otherwise these two together with $x$ have the whole sets as union, i.e., three countries would have voted for all problems. Therefore, to any $x \in Y$ there are associated at least 10 sets of $N$. On the other hand, a set $y \in N$ can be associated not more than to 20 sets, since there are exactly 20 disjoint sets to $y$. Together we have $10 \cdot|Y| \leq 20 \cdot|N|$ and $$ |Y|=\frac{2}{3}|Y|+\frac{1}{3}|Y| \leq \frac{2}{3}|Y|+\frac{2}{3}|N|=\frac{2}{3}(|Y|+|N|)=\frac{2}{3} \cdot 84=56 . $$ Remark: The set of the 84 three-element subsets can be partitioned into 28 triples of pairwise disjoint sets. From any of those triples at most two can be chosen. The partition is not obvious, but possible.
{ "resource_path": "BalticWay/segmented/en-bw08sol.jsonl", "problem_match": "\nProblem 13.", "solution_match": "\nSolution:" }
325ab2d6-b5d5-5a5a-b57f-e84aa5563bea
606,421
Some $1 \times 2$ dominoes, each covering two adjacent unit squares, are placed on a board of size $n \times n$ so that no two of them touch (not even at a corner). Given that the total area covered by the dominoes is 2008 , find the least possible value of $n$.
Following the pattern from the figure, we have space for $$ 6+18+30+\ldots+150=\frac{156 \cdot 13}{2}=1014 $$ dominoes, giving the area $2028>2008$. ![](https://cdn.mathpix.com/cropped/2024_04_17_64f81c74a8132dd111d8g-07.jpg?height=559&width=569&top_left_y=2059&top_left_x=755) The square $76 \times 76$ is not enough. If it was, consider the "circumferences" of the 1004 dominoes of size $2 \times 3$, see figure; they should fit inside $77 \times 77$ square without overlapping. But $6 \cdot 1004=6024>5929=77 \cdot 77$. ![](https://cdn.mathpix.com/cropped/2024_04_17_64f81c74a8132dd111d8g-08.jpg?height=185&width=263&top_left_y=393&top_left_x=905)
77
Yes
Yes
math-word-problem
Combinatorics
Some $1 \times 2$ dominoes, each covering two adjacent unit squares, are placed on a board of size $n \times n$ so that no two of them touch (not even at a corner). Given that the total area covered by the dominoes is 2008 , find the least possible value of $n$. Answer: 77
Following the pattern from the figure, we have space for $$ 6+18+30+\ldots+150=\frac{156 \cdot 13}{2}=1014 $$ dominoes, giving the area $2028>2008$. ![](https://cdn.mathpix.com/cropped/2024_04_17_64f81c74a8132dd111d8g-07.jpg?height=559&width=569&top_left_y=2059&top_left_x=755) The square $76 \times 76$ is not enough. If it was, consider the "circumferences" of the 1004 dominoes of size $2 \times 3$, see figure; they should fit inside $77 \times 77$ square without overlapping. But $6 \cdot 1004=6024>5929=77 \cdot 77$. ![](https://cdn.mathpix.com/cropped/2024_04_17_64f81c74a8132dd111d8g-08.jpg?height=185&width=263&top_left_y=393&top_left_x=905)
{ "resource_path": "BalticWay/segmented/en-bw08sol.jsonl", "problem_match": "\nProblem 15.", "solution_match": "\nSolution:" }
fd274b18-09b4-59d8-be1a-7ca8b2d680c8
606,426
Let $n$ be an integer with $n \geq 3$. Consider all dissections of a convex $n$-gon into triangles by $n-3$ non-intersecting diagonals, and all colourings of the triangles with black and white so that triangles with a common side are always of a different colour. Find the least possible number of black triangles.
. The answer is $\left\lfloor\frac{n-1}{3}\right\rfloor$. Let $f(n)$ denote the minimum number of black triangles in an $n$-gon. It is clear that $f(3)=0$ and that $f(n)$ is at least 1 for $n=4,5,6$. It is easy to see that for $n=4,5,6$ there is a coloring with only one black triangle, so $f(n)=1$ for $n=4,5,6$. First we prove by induction that $f(n) \leq\left\lfloor\frac{n-1}{3}\right\rfloor$. The case for $n=3,4,5$ has already been established. Given an $(n+3)$-gon, draw a diagonal that splits it into an $n$-gon and a 5 -gon. Color the $n$-gon with at most $\left\lfloor\frac{n-1}{3}\right\rfloor$ black triangles. We can then color the 5 -gon compatibly with only one black triangle so $f(n+3) \leq\left\lfloor\frac{n-1}{3}\right\rfloor+1=\left\lfloor\frac{n+3-1}{3}\right\rfloor$. Now we prove by induction that $f(n) \geq\left\lfloor\frac{n-1}{3}\right\rfloor$. The case for $n=3,4,5$ has already been established. Given an $(n+3)$-gon, we color it with $f(n+3)$ black triangles and pick one of the black triangles. It separates theree polygons from the $(n+3)$-gon, say an $(a+1)$-gon, $(b+1)$-gon and a $(c+1)$-gon such that $n+3=a+b+c$. We write $r_{m}$ for the remainder of the integer $m$ when divided by 3 . Then $$ \begin{aligned} f(n+3) & \geq f(a+1)+f(b+1)+f(c+1)+1 \\ & \geq\left\lfloor\frac{a}{3}\right\rfloor+\left\lfloor\frac{b}{3}\right\rfloor+\left\lfloor\frac{c}{3}\right\rfloor+1 \\ & =\frac{a-r_{a}}{3}+\frac{b-r_{b}}{3}+\frac{c-r_{c}}{3}+1 \\ & =\frac{n+3-1-r_{n}}{3}+\frac{4+r_{n}-\left(r_{a}+r_{b}+r_{c}\right)}{3} \\ & =\left\lfloor\frac{n+3-1}{3}\right\rfloor+\frac{4+r_{n}-\left(r_{a}+r_{b}+r_{c}\right)}{3} . \end{aligned} $$ Since $0 \leq r_{n}, r_{a}, r_{b}, r_{c} \leq 2$, we have that $4+r_{n}-\left(r_{a}+r_{b}+r_{c}\right) \geq 4+0-6=-2$. But since this number is divisible by 3 , it is in fact $\geq 0$. This completes the induction.
\left\lfloor\frac{n-1}{3}\right\rfloor
Yes
Yes
math-word-problem
Combinatorics
Let $n$ be an integer with $n \geq 3$. Consider all dissections of a convex $n$-gon into triangles by $n-3$ non-intersecting diagonals, and all colourings of the triangles with black and white so that triangles with a common side are always of a different colour. Find the least possible number of black triangles.
. The answer is $\left\lfloor\frac{n-1}{3}\right\rfloor$. Let $f(n)$ denote the minimum number of black triangles in an $n$-gon. It is clear that $f(3)=0$ and that $f(n)$ is at least 1 for $n=4,5,6$. It is easy to see that for $n=4,5,6$ there is a coloring with only one black triangle, so $f(n)=1$ for $n=4,5,6$. First we prove by induction that $f(n) \leq\left\lfloor\frac{n-1}{3}\right\rfloor$. The case for $n=3,4,5$ has already been established. Given an $(n+3)$-gon, draw a diagonal that splits it into an $n$-gon and a 5 -gon. Color the $n$-gon with at most $\left\lfloor\frac{n-1}{3}\right\rfloor$ black triangles. We can then color the 5 -gon compatibly with only one black triangle so $f(n+3) \leq\left\lfloor\frac{n-1}{3}\right\rfloor+1=\left\lfloor\frac{n+3-1}{3}\right\rfloor$. Now we prove by induction that $f(n) \geq\left\lfloor\frac{n-1}{3}\right\rfloor$. The case for $n=3,4,5$ has already been established. Given an $(n+3)$-gon, we color it with $f(n+3)$ black triangles and pick one of the black triangles. It separates theree polygons from the $(n+3)$-gon, say an $(a+1)$-gon, $(b+1)$-gon and a $(c+1)$-gon such that $n+3=a+b+c$. We write $r_{m}$ for the remainder of the integer $m$ when divided by 3 . Then $$ \begin{aligned} f(n+3) & \geq f(a+1)+f(b+1)+f(c+1)+1 \\ & \geq\left\lfloor\frac{a}{3}\right\rfloor+\left\lfloor\frac{b}{3}\right\rfloor+\left\lfloor\frac{c}{3}\right\rfloor+1 \\ & =\frac{a-r_{a}}{3}+\frac{b-r_{b}}{3}+\frac{c-r_{c}}{3}+1 \\ & =\frac{n+3-1-r_{n}}{3}+\frac{4+r_{n}-\left(r_{a}+r_{b}+r_{c}\right)}{3} \\ & =\left\lfloor\frac{n+3-1}{3}\right\rfloor+\frac{4+r_{n}-\left(r_{a}+r_{b}+r_{c}\right)}{3} . \end{aligned} $$ Since $0 \leq r_{n}, r_{a}, r_{b}, r_{c} \leq 2$, we have that $4+r_{n}-\left(r_{a}+r_{b}+r_{c}\right) \geq 4+0-6=-2$. But since this number is divisible by 3 , it is in fact $\geq 0$. This completes the induction.
{ "resource_path": "BalticWay/segmented/en-bw10sol.jsonl", "problem_match": "\nProblem 10.", "solution_match": "\nSolution 1" }
38cfcea2-75e0-5f56-82e0-06756a599cea
606,444
For a positive integer $k$, let $d(k)$ denote the number of divisors of $k$ (e.g. $d(12)=6$ ) and let $s(k)$ denote the digit sum of $k$ (e.g. $s(12)=3$ ). A positive integer $n$ is said to be amusing if there exists a positive integer $k$ such that $d(k)=s(k)=n$. What is the smallest amusing odd integer greater than 1 ?
The answer is 9 . For every $k$ we have $s(k) \equiv k(\bmod 9)$. Calculating remainders modulo 9 we have the following table | $m$ | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | | $m^{2}$ | 0 | 1 | 4 | 0 | 7 | 7 | 0 | 4 | 1 | | $m^{6}$ | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 1 | 1 | If $d(k)=3$, then $k=p^{2}$ with $p$ a prime, but $p^{2} \equiv 3(\bmod 9)$ is impossible. This shows that 3 is not an amusing number. If $d(k)=5$, then $k=p^{4}$ with $p$ a prime, but $p^{4} \equiv 5(\bmod 9)$ is impossible. This shows that 5 is not an amusing number. If $d(k)=7$, then $k=p^{6}$ with $p$ a prime, but $p^{6} \equiv 7(\bmod 9)$ is impossible. This shows that 7 is not an amusing number. To see that 9 is amusing, note that $d(36)=s(36)=9$.
9
Yes
Yes
math-word-problem
Number Theory
For a positive integer $k$, let $d(k)$ denote the number of divisors of $k$ (e.g. $d(12)=6$ ) and let $s(k)$ denote the digit sum of $k$ (e.g. $s(12)=3$ ). A positive integer $n$ is said to be amusing if there exists a positive integer $k$ such that $d(k)=s(k)=n$. What is the smallest amusing odd integer greater than 1 ?
The answer is 9 . For every $k$ we have $s(k) \equiv k(\bmod 9)$. Calculating remainders modulo 9 we have the following table | $m$ | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | | $m^{2}$ | 0 | 1 | 4 | 0 | 7 | 7 | 0 | 4 | 1 | | $m^{6}$ | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 1 | 1 | If $d(k)=3$, then $k=p^{2}$ with $p$ a prime, but $p^{2} \equiv 3(\bmod 9)$ is impossible. This shows that 3 is not an amusing number. If $d(k)=5$, then $k=p^{4}$ with $p$ a prime, but $p^{4} \equiv 5(\bmod 9)$ is impossible. This shows that 5 is not an amusing number. If $d(k)=7$, then $k=p^{6}$ with $p$ a prime, but $p^{6} \equiv 7(\bmod 9)$ is impossible. This shows that 7 is not an amusing number. To see that 9 is amusing, note that $d(36)=s(36)=9$.
{ "resource_path": "BalticWay/segmented/en-bw10sol.jsonl", "problem_match": "\nProblem 16.", "solution_match": "\nSolution." }
1f5fda50-a757-5be2-bb60-7d5a4ae20e3f
604,208
For which $k$ do there exist $k$ pairwise distinct primes $p_{1}, p_{2}, \ldots, p_{k}$ such that $$ p_{1}^{2}+p_{2}^{2}+\cdots+p_{k}^{2}=2010 ? $$
We show that it is possible only if $k=7$. The 15 smallest prime squares are: $$ 4,9,25,49,121,169,289,361,529,841,961,1369,1681,1849,2209 $$ Since $2209>2010$ we see that $k \leq 14$. Now we note that $p^{2} \equiv 1 \bmod 8$ if $p$ is an odd prime. We also have that $2010 \equiv 2 \bmod 8$. If all the primes are odd, then writing the original equation modulo 8 we get $$ k \cdot 1 \equiv 2 \bmod 8 $$ so either $k=2$ or $k=10$. $k=2:$ As $2010 \equiv 0 \bmod 3$ and $x^{2} \equiv 0$ or $x^{2} \equiv 1 \bmod 3$ we conclude that $p_{1} \equiv p_{2} \equiv 0$ mod 3. But that is impossible. $k=10$ : The sum of first 10 odd prime squares is already greater than $2010(961+841+$ $529+\cdots>2010)$ so this is impossible. Now we consider the case when one of the primes is 2 . Then the original equation modulo 8 takes the form $$ 4+(k-1) \cdot 1 \equiv 2 \quad \bmod 8 $$ so $k \equiv 7 \bmod 8$ and therefore $k=7$. For $k=7$ there are 4 possible solutions: $$ \begin{aligned} 4+9+49+169+289+529+961 & =2010 \\ 4+9+25+121+361+529+961 & =2010 \\ 4+9+25+49+121+841+961 & =2010 \\ 4+9+49+121+169+289+1369 & =2010 \end{aligned} $$ Finding them should not be too hard. We are already asuming that 4 is included. Considerations modulo 3 show that 9 must also be included. The square 1681 together with the 6 smallest prime squares gives a sum already greater than 2010 , so only prime squares up to $37^{2}=1369$ can be considered. If 25 is included, then for the remaining 4 prime squares considerations modulo 10 one can see that 3 out of 4 prime squares from $\{121,361,841,961\}$ have to be used and two of four cases are successful. If 25 is not included, then for the remaining 5 places again from considerations modulo 10 one can see, that 4 of them will be from the set $\{49,169,289,529,1369\}$ and two out of five cases are successful.
7
Yes
Yes
math-word-problem
Number Theory
For which $k$ do there exist $k$ pairwise distinct primes $p_{1}, p_{2}, \ldots, p_{k}$ such that $$ p_{1}^{2}+p_{2}^{2}+\cdots+p_{k}^{2}=2010 ? $$
We show that it is possible only if $k=7$. The 15 smallest prime squares are: $$ 4,9,25,49,121,169,289,361,529,841,961,1369,1681,1849,2209 $$ Since $2209>2010$ we see that $k \leq 14$. Now we note that $p^{2} \equiv 1 \bmod 8$ if $p$ is an odd prime. We also have that $2010 \equiv 2 \bmod 8$. If all the primes are odd, then writing the original equation modulo 8 we get $$ k \cdot 1 \equiv 2 \bmod 8 $$ so either $k=2$ or $k=10$. $k=2:$ As $2010 \equiv 0 \bmod 3$ and $x^{2} \equiv 0$ or $x^{2} \equiv 1 \bmod 3$ we conclude that $p_{1} \equiv p_{2} \equiv 0$ mod 3. But that is impossible. $k=10$ : The sum of first 10 odd prime squares is already greater than $2010(961+841+$ $529+\cdots>2010)$ so this is impossible. Now we consider the case when one of the primes is 2 . Then the original equation modulo 8 takes the form $$ 4+(k-1) \cdot 1 \equiv 2 \quad \bmod 8 $$ so $k \equiv 7 \bmod 8$ and therefore $k=7$. For $k=7$ there are 4 possible solutions: $$ \begin{aligned} 4+9+49+169+289+529+961 & =2010 \\ 4+9+25+121+361+529+961 & =2010 \\ 4+9+25+49+121+841+961 & =2010 \\ 4+9+49+121+169+289+1369 & =2010 \end{aligned} $$ Finding them should not be too hard. We are already asuming that 4 is included. Considerations modulo 3 show that 9 must also be included. The square 1681 together with the 6 smallest prime squares gives a sum already greater than 2010 , so only prime squares up to $37^{2}=1369$ can be considered. If 25 is included, then for the remaining 4 prime squares considerations modulo 10 one can see that 3 out of 4 prime squares from $\{121,361,841,961\}$ have to be used and two of four cases are successful. If 25 is not included, then for the remaining 5 places again from considerations modulo 10 one can see, that 4 of them will be from the set $\{49,169,289,529,1369\}$ and two out of five cases are successful.
{ "resource_path": "BalticWay/segmented/en-bw10sol.jsonl", "problem_match": "\nProblem 19.", "solution_match": "\nSolution." }
71b35423-3ea3-5bb2-a092-ed32e1995197
604,246
The numbers from 1 to 360 are partitioned into 9 subsets of consecutive integers and the sums of the numbers in each subset are arranged in the cells of a $3 \times 3$ square. Is it possible that the square turns out to be a magic square? Remark: A magic square is a square in which the sums of the numbers in each row, in each column and in both diagonals are all equal.
. If the numbers $a_{1}, a_{2}, \ldots, a_{9}$ form a $3 \times 3$ magic square, then the numbers $a_{1}+d, a_{2}+d, \ldots, a_{9}+d$ form a $3 \times 3$ magic square, too. Hence it is sufficient to divide all the numbers into parts with equal numbers of elements: i.e. from $40 k+1$ to $40(k+1), k=0,1, \ldots, 8$. Then we need to arrange the least numbers of these parts (i.e. the numbers $1,41,81, \ldots, 321$ ) in the form of a magic square (we omit here an example, it is similar to the magic square with numbers 1 , $2, \ldots, 9)$. After that all other numbers $1+s, 41+s, \ldots, 321+s$ will also form a magic square $(s=1, \ldots, 39)$, and so do the whole sums.
Yes
Yes
Yes
math-word-problem
Combinatorics
The numbers from 1 to 360 are partitioned into 9 subsets of consecutive integers and the sums of the numbers in each subset are arranged in the cells of a $3 \times 3$ square. Is it possible that the square turns out to be a magic square? Remark: A magic square is a square in which the sums of the numbers in each row, in each column and in both diagonals are all equal. Answer: Yes.
. If the numbers $a_{1}, a_{2}, \ldots, a_{9}$ form a $3 \times 3$ magic square, then the numbers $a_{1}+d, a_{2}+d, \ldots, a_{9}+d$ form a $3 \times 3$ magic square, too. Hence it is sufficient to divide all the numbers into parts with equal numbers of elements: i.e. from $40 k+1$ to $40(k+1), k=0,1, \ldots, 8$. Then we need to arrange the least numbers of these parts (i.e. the numbers $1,41,81, \ldots, 321$ ) in the form of a magic square (we omit here an example, it is similar to the magic square with numbers 1 , $2, \ldots, 9)$. After that all other numbers $1+s, 41+s, \ldots, 321+s$ will also form a magic square $(s=1, \ldots, 39)$, and so do the whole sums.
{ "resource_path": "BalticWay/segmented/en-bw12sol.jsonl", "problem_match": "# Problem 1", "solution_match": "\nSolution 1" }
375fdfb2-2ae1-52e9-b7b8-22fbb8112914
604,327
Let $n$ be a positive integer. Assume that $n$ numbers are to be chosen from the table $$ \begin{array}{cccc} 0 & 1 & \cdots & n-1 \\ n & n+1 & \cdots & 2 n-1 \\ \vdots & \vdots & \ddots & \vdots \\ (n-1) n & (n-1) n+1 & \cdots & n^{2}-1 \end{array} $$ with no two of them from the same row or the same column. Find the maximal value of the product of these $n$ numbers.
The product is $R(\sigma)=\prod_{i=0}^{n-1}(n i+\sigma(i))$, for some permutation $\sigma:\{0,1, \ldots, n-1\} \rightarrow\{0,1, \ldots, n-1\}$. Let $\sigma$ be such that $R(\sigma)$ is maximal. We may assume that all the multipliers $n i+\sigma(i)$ are positive, because otherwise the product is zero, that is the smallest possible. Assume further that $\sigma(a)>\sigma(b)$ for some $a>b$. Let a permutation $\tau$ be defined by $$ \tau(i)= \begin{cases}\sigma(b), & i=a \\ \sigma(a), & i=b \\ \sigma(i), & \text { otherwise }\end{cases} $$ We have $$ \frac{R(\tau)}{R(\sigma)}=\frac{(n a+\tau(a))(n b+\tau(b))}{(n a+\sigma(a))(n b+\sigma(b))}=\frac{(n a+\sigma(b))(n b+\sigma(a))}{(n a+\sigma(a))(n b+\sigma(b))}>1 $$ as $(n a+\sigma(b))(n b+\sigma(a))-(n a+\sigma(a))(n b+\sigma(b))=n(a \sigma(a)+b \sigma(b)-a \sigma(b)-b \sigma(a))=n(a-b)(\sigma(a)-\sigma(b))>0$. This is a contradiction with the maximality of $R(\sigma)$, hence, $\sigma$ has to satisfy $\sigma(a)<\sigma(b)$ for all $a>b$. Thus, $\sigma(i)=n-1-i$ for all $i$, and $$ R(\sigma)=\prod_{i=0}^{n-1}(n i+n-1-i)=\prod_{i=0}^{n-1}(i+1)(n-1)=(n-1)^{n} n! $$
(n-1)^{n} n!
Yes
Yes
math-word-problem
Combinatorics
Let $n$ be a positive integer. Assume that $n$ numbers are to be chosen from the table $$ \begin{array}{cccc} 0 & 1 & \cdots & n-1 \\ n & n+1 & \cdots & 2 n-1 \\ \vdots & \vdots & \ddots & \vdots \\ (n-1) n & (n-1) n+1 & \cdots & n^{2}-1 \end{array} $$ with no two of them from the same row or the same column. Find the maximal value of the product of these $n$ numbers.
The product is $R(\sigma)=\prod_{i=0}^{n-1}(n i+\sigma(i))$, for some permutation $\sigma:\{0,1, \ldots, n-1\} \rightarrow\{0,1, \ldots, n-1\}$. Let $\sigma$ be such that $R(\sigma)$ is maximal. We may assume that all the multipliers $n i+\sigma(i)$ are positive, because otherwise the product is zero, that is the smallest possible. Assume further that $\sigma(a)>\sigma(b)$ for some $a>b$. Let a permutation $\tau$ be defined by $$ \tau(i)= \begin{cases}\sigma(b), & i=a \\ \sigma(a), & i=b \\ \sigma(i), & \text { otherwise }\end{cases} $$ We have $$ \frac{R(\tau)}{R(\sigma)}=\frac{(n a+\tau(a))(n b+\tau(b))}{(n a+\sigma(a))(n b+\sigma(b))}=\frac{(n a+\sigma(b))(n b+\sigma(a))}{(n a+\sigma(a))(n b+\sigma(b))}>1 $$ as $(n a+\sigma(b))(n b+\sigma(a))-(n a+\sigma(a))(n b+\sigma(b))=n(a \sigma(a)+b \sigma(b)-a \sigma(b)-b \sigma(a))=n(a-b)(\sigma(a)-\sigma(b))>0$. This is a contradiction with the maximality of $R(\sigma)$, hence, $\sigma$ has to satisfy $\sigma(a)<\sigma(b)$ for all $a>b$. Thus, $\sigma(i)=n-1-i$ for all $i$, and $$ R(\sigma)=\prod_{i=0}^{n-1}(n i+n-1-i)=\prod_{i=0}^{n-1}(i+1)(n-1)=(n-1)^{n} n! $$
{ "resource_path": "BalticWay/segmented/en-bw13sol.jsonl", "problem_match": "# Problem 1", "solution_match": "# Solution\n" }
83bc578b-f28b-59a2-8bb6-f57fcc066832
604,765
Let $k$ and $n$ be positive integers and let $x_{1}, x_{2}, \ldots, x_{k}, y_{1}, y_{2}, \ldots, y_{n}$ be distinct integers. A polynomial $P$ with integer coefficients satisfies $$ P\left(x_{1}\right)=P\left(x_{2}\right)=\ldots=P\left(x_{k}\right)=54 $$ and $$ P\left(y_{1}\right)=P\left(y_{2}\right)=\ldots=P\left(y_{n}\right)=2013 . $$ Determine the maximal value of $k n$.
Letting $Q(x)=P(x)-54$, we see that $Q$ has $k$ zeroes at $x_{1}, \ldots, x_{k}$, while $Q\left(y_{i}\right)=1959$ for $i=1, \ldots, n$. We notice that $1959=3 \cdot 653$, and an easy check shows that 653 is a prime number. As $$ Q(x)=\prod_{j=1}^{k}\left(x-x_{j}\right) S(x) $$ and $S(x)$ is a polynomial with integer coefficients, we have $$ Q\left(y_{i}\right)=\prod_{j=1}^{k}\left(y_{i}-x_{j}\right) S\left(x_{j}\right)=1959 . $$ Now all numbers $a_{i}=y_{i}-x_{1}$ have to be in the set $\{ \pm 1, \pm 3, \pm 653, \pm 1959\}$. Clearly, $n$ can be at most 4 , and if $n=4$, then two of the $a_{i}$ 's are $\pm 1$, one has absolute value 3 and the fourth one has absolute value 653 . Assuming $a_{1}=1, a_{2}=-1, x_{1}$ has to be the average of $y_{1}$ and $y_{2}$. Let $\left|y_{3}-x_{1}\right|=3$. If $k \geq 2$, then $x_{2} \neq x_{1}$, and the set of numbers $b_{i}=y_{i}-x_{2}$ has the same properties as the $a_{i}$ 's. Then $x_{2}$ is the average of, say $y_{2}$ and $y_{3}$ or $y_{3}$ and $y_{1}$. In either case $\left|y_{4}-x_{2}\right| \neq 653$. So if $k \geq 2$, then $n \leq 3$. In a quite similar fashion one shows that $k \geq 3$ implies $n \leq 2$. The polynomial $P(x)=653 x^{2}\left(x^{2}-4\right)+2013$ shows the $n k=6$ indeed is possible.
6
Yes
Yes
math-word-problem
Algebra
Let $k$ and $n$ be positive integers and let $x_{1}, x_{2}, \ldots, x_{k}, y_{1}, y_{2}, \ldots, y_{n}$ be distinct integers. A polynomial $P$ with integer coefficients satisfies $$ P\left(x_{1}\right)=P\left(x_{2}\right)=\ldots=P\left(x_{k}\right)=54 $$ and $$ P\left(y_{1}\right)=P\left(y_{2}\right)=\ldots=P\left(y_{n}\right)=2013 . $$ Determine the maximal value of $k n$.
Letting $Q(x)=P(x)-54$, we see that $Q$ has $k$ zeroes at $x_{1}, \ldots, x_{k}$, while $Q\left(y_{i}\right)=1959$ for $i=1, \ldots, n$. We notice that $1959=3 \cdot 653$, and an easy check shows that 653 is a prime number. As $$ Q(x)=\prod_{j=1}^{k}\left(x-x_{j}\right) S(x) $$ and $S(x)$ is a polynomial with integer coefficients, we have $$ Q\left(y_{i}\right)=\prod_{j=1}^{k}\left(y_{i}-x_{j}\right) S\left(x_{j}\right)=1959 . $$ Now all numbers $a_{i}=y_{i}-x_{1}$ have to be in the set $\{ \pm 1, \pm 3, \pm 653, \pm 1959\}$. Clearly, $n$ can be at most 4 , and if $n=4$, then two of the $a_{i}$ 's are $\pm 1$, one has absolute value 3 and the fourth one has absolute value 653 . Assuming $a_{1}=1, a_{2}=-1, x_{1}$ has to be the average of $y_{1}$ and $y_{2}$. Let $\left|y_{3}-x_{1}\right|=3$. If $k \geq 2$, then $x_{2} \neq x_{1}$, and the set of numbers $b_{i}=y_{i}-x_{2}$ has the same properties as the $a_{i}$ 's. Then $x_{2}$ is the average of, say $y_{2}$ and $y_{3}$ or $y_{3}$ and $y_{1}$. In either case $\left|y_{4}-x_{2}\right| \neq 653$. So if $k \geq 2$, then $n \leq 3$. In a quite similar fashion one shows that $k \geq 3$ implies $n \leq 2$. The polynomial $P(x)=653 x^{2}\left(x^{2}-4\right)+2013$ shows the $n k=6$ indeed is possible.
{ "resource_path": "BalticWay/segmented/en-bw13sol.jsonl", "problem_match": "# Problem 2", "solution_match": "# Solution\n" }
06bfe7ef-2c3d-5835-93c6-3f67a788fab3
604,776
All faces of a tetrahedron are right-angled triangles. It is known that three of its edges have the same length $s$. Find the volume of the tetrahedron.
![](https://cdn.mathpix.com/cropped/2024_11_22_4ffd808d57e3e21b28deg-11.jpg?height=607&width=475&top_left_y=2021&top_left_x=793) The three equal edges clearly cannot bound a face by themselves, for then this triangle would be equilateral and not right-angled. Nor can they be incident to the same vertex, for then the opposite face would again be equilateral. Hence we may name the tetrahedron $A B C D$ in such a way that $A B=B C=C D=s$. The angles $\angle A B C$ and $\angle B C D$ must then be right, and $A C=B D=s \sqrt{2}$. Suppose that $\angle A D C$ is right. Then by the Pythagorean theorem applied to $A C D$, we find $A D=s$. The reverse of the Pythagorean theorem applied to $A B D$, we see that $\angle D A B$ is right too. The quadrilateral $A B C D$ then has four right angles, and so must be a square. From this contradiction, we conclude that $\angle A D C$ is not right. Since we already know that $A C>C D, \angle C A D$ cannot be right either, and the right angle of $A C D$ must be $\angle A C D$. The Pythagorean theorem gives $A D=s \sqrt{3}$. From the reverse of the Pythagorean theorem, we may now conclude that $\angle A B D$ is right. Consequently, $A B$ is perpendicular to $B C D$, and the volume of the tetrahedron may be simply calculated as $$ \frac{A B \cdot B C \cdot C D}{6}=\frac{s^{3}}{6} $$
\frac{s^3}{6}
Yes
Yes
math-word-problem
Geometry
All faces of a tetrahedron are right-angled triangles. It is known that three of its edges have the same length $s$. Find the volume of the tetrahedron.
![](https://cdn.mathpix.com/cropped/2024_11_22_4ffd808d57e3e21b28deg-11.jpg?height=607&width=475&top_left_y=2021&top_left_x=793) The three equal edges clearly cannot bound a face by themselves, for then this triangle would be equilateral and not right-angled. Nor can they be incident to the same vertex, for then the opposite face would again be equilateral. Hence we may name the tetrahedron $A B C D$ in such a way that $A B=B C=C D=s$. The angles $\angle A B C$ and $\angle B C D$ must then be right, and $A C=B D=s \sqrt{2}$. Suppose that $\angle A D C$ is right. Then by the Pythagorean theorem applied to $A C D$, we find $A D=s$. The reverse of the Pythagorean theorem applied to $A B D$, we see that $\angle D A B$ is right too. The quadrilateral $A B C D$ then has four right angles, and so must be a square. From this contradiction, we conclude that $\angle A D C$ is not right. Since we already know that $A C>C D, \angle C A D$ cannot be right either, and the right angle of $A C D$ must be $\angle A C D$. The Pythagorean theorem gives $A D=s \sqrt{3}$. From the reverse of the Pythagorean theorem, we may now conclude that $\angle A B D$ is right. Consequently, $A B$ is perpendicular to $B C D$, and the volume of the tetrahedron may be simply calculated as $$ \frac{A B \cdot B C \cdot C D}{6}=\frac{s^{3}}{6} $$
{ "resource_path": "BalticWay/segmented/en-bw13sol.jsonl", "problem_match": "# Problem 13", "solution_match": "# Solution\n" }
33c488dd-bac5-5f21-9b5c-6e2b5834e3b4
50,620
Given positive real numbers $a, b, c, d$ that satisfy equalities $$ a^{2}+d^{2}-a d=b^{2}+c^{2}+b c \quad \text { and } \quad a^{2}+b^{2}=c^{2}+d^{2} $$ find all possible values of the expression $\frac{a b+c d}{a d+b c}$.
. Let $A_{1} B C_{1}$ be a triangle with $A_{1} B=b, B C_{1}=c$ and $\angle A_{1} B C_{1}=120^{\circ}$, and let $C_{2} D A_{2}$ be another triangle with $C_{2} D=d, D A_{2}=a$ and $\angle C_{2} D A_{2}=60^{\circ}$. By the law of cosines and the assumption $a^{2}+d^{2}-a d=b^{2}+c^{2}+b c$, we have $A_{1} C_{1}=A_{2} C_{2}$. Thus, the two triangles can be put together to form a quadrilateral $A B C D$ with $A B=b$, $B C=c, C D=d, D A=a$ and $\angle A B C=120^{\circ}, \angle C D A=60^{\circ}$. Then $\angle D A B+\angle B C D=$ $360^{\circ}-(\angle A B C+\angle C D A)=180^{\circ}$. Suppose that $\angle D A B>90^{\circ}$. Then $\angle B C D<90^{\circ}$, whence $a^{2}+b^{2}<B D^{2}<c^{2}+d^{2}$, contradicting the assumption $a^{2}+b^{2}=c^{2}+d^{2}$. By symmetry, $\angle D A B<90^{\circ}$ also leads to a contradiction. Hence, $\angle D A B=\angle B C D=90^{\circ}$. Now, let us calculate the area of $A B C D$ in two ways: on one hand, it equals $\frac{1}{2} a d \sin 60^{\circ}+\frac{1}{2} b c \sin 120^{\circ}$ or $\frac{\sqrt{3}}{4}(a d+b c)$. On the other hand, it equals $\frac{1}{2} a b+\frac{1}{2} c d$ or $\frac{1}{2}(a b+c d)$. Consequently, $$ \frac{a b+c d}{a d+b c}=\frac{\frac{\sqrt{3}}{4}}{\frac{1}{2}}=\frac{\sqrt{3}}{2} $$
\frac{\sqrt{3}}{2}
Yes
Yes
math-word-problem
Algebra
Given positive real numbers $a, b, c, d$ that satisfy equalities $$ a^{2}+d^{2}-a d=b^{2}+c^{2}+b c \quad \text { and } \quad a^{2}+b^{2}=c^{2}+d^{2} $$ find all possible values of the expression $\frac{a b+c d}{a d+b c}$. Answer: $\frac{\sqrt{3}}{2}$.
. Let $A_{1} B C_{1}$ be a triangle with $A_{1} B=b, B C_{1}=c$ and $\angle A_{1} B C_{1}=120^{\circ}$, and let $C_{2} D A_{2}$ be another triangle with $C_{2} D=d, D A_{2}=a$ and $\angle C_{2} D A_{2}=60^{\circ}$. By the law of cosines and the assumption $a^{2}+d^{2}-a d=b^{2}+c^{2}+b c$, we have $A_{1} C_{1}=A_{2} C_{2}$. Thus, the two triangles can be put together to form a quadrilateral $A B C D$ with $A B=b$, $B C=c, C D=d, D A=a$ and $\angle A B C=120^{\circ}, \angle C D A=60^{\circ}$. Then $\angle D A B+\angle B C D=$ $360^{\circ}-(\angle A B C+\angle C D A)=180^{\circ}$. Suppose that $\angle D A B>90^{\circ}$. Then $\angle B C D<90^{\circ}$, whence $a^{2}+b^{2}<B D^{2}<c^{2}+d^{2}$, contradicting the assumption $a^{2}+b^{2}=c^{2}+d^{2}$. By symmetry, $\angle D A B<90^{\circ}$ also leads to a contradiction. Hence, $\angle D A B=\angle B C D=90^{\circ}$. Now, let us calculate the area of $A B C D$ in two ways: on one hand, it equals $\frac{1}{2} a d \sin 60^{\circ}+\frac{1}{2} b c \sin 120^{\circ}$ or $\frac{\sqrt{3}}{4}(a d+b c)$. On the other hand, it equals $\frac{1}{2} a b+\frac{1}{2} c d$ or $\frac{1}{2}(a b+c d)$. Consequently, $$ \frac{a b+c d}{a d+b c}=\frac{\frac{\sqrt{3}}{4}}{\frac{1}{2}}=\frac{\sqrt{3}}{2} $$
{ "resource_path": "BalticWay/segmented/en-bw14sol.jsonl", "problem_match": "# Problem 5", "solution_match": "\nSolution 1" }
118a1234-e30b-5b48-88aa-a38264a08f39
605,179
In how many ways can we paint 16 seats in a row, each red or green, in such a way that the number of consecutive seats painted in the same colour is always odd?
Let $g_{k}, r_{k}$ be the numbers of possible odd paintings of $k$ seats such that the first seat is painted green or red, respectively. Obviously, $g_{k}=r_{k}$ for any $k$. Note that $g_{k}=r_{k-1}+g_{k-2}=g_{k-1}+g_{k-2}$, since $r_{k-1}$ is the number of odd paintings with first seat green and second seat red and $g_{k-2}$ is the number of odd paintings with first and second seats green. Moreover, $g_{1}=g_{2}=1$, so $g_{k}$ is the $k$ th element of the Fibonacci sequence. Hence, the number of ways to paint $n$ seats in a row is $g_{n}+r_{n}=2 f_{n}$. Inserting $n=16$ we obtain $2 f_{16}=2 \cdot 987=1974$.
1974
Yes
Yes
math-word-problem
Combinatorics
In how many ways can we paint 16 seats in a row, each red or green, in such a way that the number of consecutive seats painted in the same colour is always odd? Answer: 1974.
Let $g_{k}, r_{k}$ be the numbers of possible odd paintings of $k$ seats such that the first seat is painted green or red, respectively. Obviously, $g_{k}=r_{k}$ for any $k$. Note that $g_{k}=r_{k-1}+g_{k-2}=g_{k-1}+g_{k-2}$, since $r_{k-1}$ is the number of odd paintings with first seat green and second seat red and $g_{k-2}$ is the number of odd paintings with first and second seats green. Moreover, $g_{1}=g_{2}=1$, so $g_{k}$ is the $k$ th element of the Fibonacci sequence. Hence, the number of ways to paint $n$ seats in a row is $g_{n}+r_{n}=2 f_{n}$. Inserting $n=16$ we obtain $2 f_{16}=2 \cdot 987=1974$.
{ "resource_path": "BalticWay/segmented/en-bw14sol.jsonl", "problem_match": "# Problem 6", "solution_match": "\nSolution." }
938855e4-76d6-5f40-963d-44a6601a6457
238,116
Let $p_{1}, p_{2}, \ldots, p_{30}$ be a permutation of the numbers $1,2, \ldots, 30$. For how many permutations does the equality $\sum_{k=1}^{30}\left|p_{k}-k\right|=450$ hold?
Let us define pairs $\left(a_{i}, b_{i}\right)$ such that $\left\{a_{i}, b_{i}\right\}=\left\{p_{i}, i\right\}$ and $a_{i} \geqslant b_{i}$. Then for every $i=1, \ldots, 30$ we have $\left|p_{i}-i\right|=a_{i}-b_{i}$ and $$ \sum_{i=1}^{30}\left|p_{i}-i\right|=\sum_{i=1}^{30}\left(a_{i}-b_{i}\right)=\sum_{i=1}^{30} a_{i}-\sum_{i=1}^{30} b_{i} $$ It is clear that the sum $\sum_{i=1}^{30} a_{i}-\sum_{i=1}^{30} b_{i}$ is maximal when $$ \left\{a_{1}, a_{2}, \ldots, a_{30}\right\}=\{16,17, \ldots, 30\} \quad \text { and } \quad\left\{b_{1}, b_{2}, \ldots, b_{30}\right\}=\{1,2, \ldots, 15\} $$ where exactly two $a_{i}$ 's and two $b_{j}$ 's are equal, and the maximal value equals $$ 2(16+\cdots+30-1-\cdots-15)=450 . $$ The number of such permutations is $(15 !)^{2}$.
(15 !)^{2}
Yes
Yes
math-word-problem
Combinatorics
Let $p_{1}, p_{2}, \ldots, p_{30}$ be a permutation of the numbers $1,2, \ldots, 30$. For how many permutations does the equality $\sum_{k=1}^{30}\left|p_{k}-k\right|=450$ hold? Answer: $(15 !)^{2}$.
Let us define pairs $\left(a_{i}, b_{i}\right)$ such that $\left\{a_{i}, b_{i}\right\}=\left\{p_{i}, i\right\}$ and $a_{i} \geqslant b_{i}$. Then for every $i=1, \ldots, 30$ we have $\left|p_{i}-i\right|=a_{i}-b_{i}$ and $$ \sum_{i=1}^{30}\left|p_{i}-i\right|=\sum_{i=1}^{30}\left(a_{i}-b_{i}\right)=\sum_{i=1}^{30} a_{i}-\sum_{i=1}^{30} b_{i} $$ It is clear that the sum $\sum_{i=1}^{30} a_{i}-\sum_{i=1}^{30} b_{i}$ is maximal when $$ \left\{a_{1}, a_{2}, \ldots, a_{30}\right\}=\{16,17, \ldots, 30\} \quad \text { and } \quad\left\{b_{1}, b_{2}, \ldots, b_{30}\right\}=\{1,2, \ldots, 15\} $$ where exactly two $a_{i}$ 's and two $b_{j}$ 's are equal, and the maximal value equals $$ 2(16+\cdots+30-1-\cdots-15)=450 . $$ The number of such permutations is $(15 !)^{2}$.
{ "resource_path": "BalticWay/segmented/en-bw14sol.jsonl", "problem_match": "# Problem 7", "solution_match": "\nSolution." }
d4566698-de95-5d96-80f8-2f80a8ec31d2
238,125
What is the least possible number of cells that can be marked on an $n \times n$ board such that for each $m>\frac{n}{2}$ both diagonals of any $m \times m$ sub-board contain a marked cell? ##
For any $n$ it is possible to set $n$ marks on the board and get the desired property, if they are simply put on every cell in row number $\left\lceil\frac{n}{2}\right\rceil$. We now show that $n$ is also the minimum amount of marks needed. If $n$ is odd, then there are $2 n$ series of diagonal cells of length $>\frac{n}{2}$ and both end cells on the edge of the board, and, since every mark on the board can at most lie on two of these diagonals, it is necessary to set at least $n$ marks to have a mark on every one of them. If $n$ is even, then there are $2 n-2$ series of diagonal cells of length $>\frac{n}{2}$ and both end cells on the edge of the board. We call one of these diagonals even if every coordinate $(x, y)$ on it satisfies $2 \mid x-y$ and odd else. It can be easily seen that this is well defined. Now, by symmetry, the number of odd and even diagonals is the same, so there are exactly $n-1$ of each of them. Any mark set on the board can at most sit on two diagonals and these two have to be of the same kind. Thus, we will need at least $\frac{n}{2}$ marks for the even diagonals, since there are $n-1$ of them and $2 \nmid n-1$, and, similarly, we need at least $\frac{n}{2}$ marks for the the odd diagonals. So we need at least $\frac{n}{2}+\frac{n}{2}=n$ marks to get the desired property.
n
Yes
Yes
math-word-problem
Combinatorics
What is the least possible number of cells that can be marked on an $n \times n$ board such that for each $m>\frac{n}{2}$ both diagonals of any $m \times m$ sub-board contain a marked cell? ## Answer: $n$.
For any $n$ it is possible to set $n$ marks on the board and get the desired property, if they are simply put on every cell in row number $\left\lceil\frac{n}{2}\right\rceil$. We now show that $n$ is also the minimum amount of marks needed. If $n$ is odd, then there are $2 n$ series of diagonal cells of length $>\frac{n}{2}$ and both end cells on the edge of the board, and, since every mark on the board can at most lie on two of these diagonals, it is necessary to set at least $n$ marks to have a mark on every one of them. If $n$ is even, then there are $2 n-2$ series of diagonal cells of length $>\frac{n}{2}$ and both end cells on the edge of the board. We call one of these diagonals even if every coordinate $(x, y)$ on it satisfies $2 \mid x-y$ and odd else. It can be easily seen that this is well defined. Now, by symmetry, the number of odd and even diagonals is the same, so there are exactly $n-1$ of each of them. Any mark set on the board can at most sit on two diagonals and these two have to be of the same kind. Thus, we will need at least $\frac{n}{2}$ marks for the even diagonals, since there are $n-1$ of them and $2 \nmid n-1$, and, similarly, we need at least $\frac{n}{2}$ marks for the the odd diagonals. So we need at least $\frac{n}{2}+\frac{n}{2}=n$ marks to get the desired property.
{ "resource_path": "BalticWay/segmented/en-bw14sol.jsonl", "problem_match": "# Problem 9", "solution_match": "\nSolution." }
7fead599-ca02-5641-b09b-604d3b76247a
238,142
Determine whether $712 !+1$ is a prime number.
We will show that 719 is a prime factor of given number (evidently, $719<$ $712 !+1$ ). All congruences are considered modulo 719 . By Wilson's theorem, $718 ! \equiv-1$. Furthermore, $$ 713 \cdot 714 \cdot 715 \cdot 716 \cdot 717 \cdot 718 \equiv(-6)(-5)(-4)(-3)(-2)(-1) \equiv 720 \equiv 1 . $$ Hence $712 ! \equiv-1$, which means that $712 !+1$ is divisible by 719 . We remark that 719 is the smallest prime greater then 712 , so 719 is the smallest prime divisor of $712 !+1$.
719
Yes
Yes
math-word-problem
Number Theory
Determine whether $712 !+1$ is a prime number. Answer: It is composite.
We will show that 719 is a prime factor of given number (evidently, $719<$ $712 !+1$ ). All congruences are considered modulo 719 . By Wilson's theorem, $718 ! \equiv-1$. Furthermore, $$ 713 \cdot 714 \cdot 715 \cdot 716 \cdot 717 \cdot 718 \equiv(-6)(-5)(-4)(-3)(-2)(-1) \equiv 720 \equiv 1 . $$ Hence $712 ! \equiv-1$, which means that $712 !+1$ is divisible by 719 . We remark that 719 is the smallest prime greater then 712 , so 719 is the smallest prime divisor of $712 !+1$.
{ "resource_path": "BalticWay/segmented/en-bw14sol.jsonl", "problem_match": "# Problem 16", "solution_match": "\nSolution." }
c336ffb4-a34d-5571-844f-f7a18cbd4db0
238,234
Let $p$ be a prime number, and let $n$ be a positive integer. Find the number of quadruples $\left(a_{1}, a_{2}, a_{3}, a_{4}\right)$ with $a_{i} \in\left\{0,1, \ldots, p^{n}-1\right\}$ for $i=1,2,3,4$ such that $$ p^{n} \mid\left(a_{1} a_{2}+a_{3} a_{4}+1\right) . $$
We have $p^{n}-p^{n-1}$ choices for $a_{1}$ such that $p \nmid a_{1}$. In this case for any of the $p^{n} \cdot p^{n}$ choices of $a_{3}$ and $a_{4}$, there is a unique choice of $a_{2}$, namely, $$ a_{2} \equiv a_{1}^{-1}\left(-1-a_{3} a_{4}\right) \quad \bmod p^{n} $$ This gives $p^{2 n}\left(p^{n}-p^{n-1}\right)=p^{3 n-1}(p-1)$ of quadruples. If $p \mid a_{1}$ then we obviously have $p \nmid a_{3}$, since otherwise the condition $$ p^{n} \mid\left(a_{1} a_{2}+a_{3} a_{4}+1\right) $$ is violated. Now, if $p \mid a_{1}, p \nmid a_{3}$, for any choice of $a_{2}$ there is a unique choice of $a_{4}$, namely, $$ a_{4} \equiv a_{3}^{-1}\left(-1-a_{1} a_{2}\right) \quad \bmod p^{n} $$ Thus, for these $p^{n-1}$ choices of $a_{1}$ and $p^{n}-p^{n-1}$ choices of $a_{3}$, we have for each of the $p^{n}$ choices of $a_{2}$ a unique $a_{4}$. So in this case there are $p^{n-1}\left(p^{n}-p^{n-1}\right) p^{n}=p^{3 n-2}(p-1)$ of quadruples. Thus, the total number of quadruples is $$ p^{3 n-1}(p-1)+p^{3 n-2}(p-1)=p^{3 n}-p^{3 n-2} \text {. } $$
p^{3 n}-p^{3 n-2}
Yes
Yes
math-word-problem
Number Theory
Let $p$ be a prime number, and let $n$ be a positive integer. Find the number of quadruples $\left(a_{1}, a_{2}, a_{3}, a_{4}\right)$ with $a_{i} \in\left\{0,1, \ldots, p^{n}-1\right\}$ for $i=1,2,3,4$ such that $$ p^{n} \mid\left(a_{1} a_{2}+a_{3} a_{4}+1\right) . $$ Answer: $p^{3 n}-p^{3 n-2}$.
We have $p^{n}-p^{n-1}$ choices for $a_{1}$ such that $p \nmid a_{1}$. In this case for any of the $p^{n} \cdot p^{n}$ choices of $a_{3}$ and $a_{4}$, there is a unique choice of $a_{2}$, namely, $$ a_{2} \equiv a_{1}^{-1}\left(-1-a_{3} a_{4}\right) \quad \bmod p^{n} $$ This gives $p^{2 n}\left(p^{n}-p^{n-1}\right)=p^{3 n-1}(p-1)$ of quadruples. If $p \mid a_{1}$ then we obviously have $p \nmid a_{3}$, since otherwise the condition $$ p^{n} \mid\left(a_{1} a_{2}+a_{3} a_{4}+1\right) $$ is violated. Now, if $p \mid a_{1}, p \nmid a_{3}$, for any choice of $a_{2}$ there is a unique choice of $a_{4}$, namely, $$ a_{4} \equiv a_{3}^{-1}\left(-1-a_{1} a_{2}\right) \quad \bmod p^{n} $$ Thus, for these $p^{n-1}$ choices of $a_{1}$ and $p^{n}-p^{n-1}$ choices of $a_{3}$, we have for each of the $p^{n}$ choices of $a_{2}$ a unique $a_{4}$. So in this case there are $p^{n-1}\left(p^{n}-p^{n-1}\right) p^{n}=p^{3 n-2}(p-1)$ of quadruples. Thus, the total number of quadruples is $$ p^{3 n-1}(p-1)+p^{3 n-2}(p-1)=p^{3 n}-p^{3 n-2} \text {. } $$
{ "resource_path": "BalticWay/segmented/en-bw14sol.jsonl", "problem_match": "# Problem 18", "solution_match": "\nSolution." }
61fe5aea-308a-5922-9da9-796aa39d46ce
238,254
With inspiration drawn from the rectilinear network of streets in New York, the Manhattan distance between two points $(a, b)$ and $(c, d)$ in the plane is defined to be $$ |a-c|+|b-d| \text {. } $$ Suppose only two distinct Manhattan distances occur between all pairs of distinct points of some point set. What is the maximal number of points in such a set?
Answer: nine. Let $$ \left\{\left(x_{1}, y_{1}\right), \ldots,\left(x_{m}, y_{m}\right)\right\}, \quad \text { where } \quad x_{1} \leq \cdots \leq x_{m} $$ be the set, and suppose $m \geq 10$. A special case of the Erdős-Szekeres Theorem asserts that a real sequence of length $n^{2}+1$ contains a monotonic subsequence of length $n+1$. (Proof: Given a sequence $a_{1} \ldots, a_{n^{2}+1}$, let $p_{i}$ denote the length of the longest increasing subsequence ending with $a_{i}$, and $q_{i}$ the length of the longest decreasing subsequence ending with $a_{i}$. If $i<j$ and $a_{i} \leq a_{j}$, then $p_{i}<p_{j}$. If $a_{i} \geq a_{j}$, then $q_{i}<q_{j}$. Hence all $n^{2}+1$ pairs $\left(p_{i}, q_{i}\right)$ are distinct. If all of them were to satisfy $1 \leq p_{i}, q_{i} \leq n$, it would violate the Pigeon-Hole Principle.) Applied to the sequence $y_{1}, \ldots, y_{m}$, this will produce a subsequence $$ y_{i} \leq y_{j} \leq y_{k} \leq y_{l} \quad \text { or } \quad y_{i} \geq y_{j} \geq y_{k} \geq y_{l} $$ One of the shortest paths from $\left(x_{i}, y_{i}\right)$ to $\left(x_{l}, y_{l}\right)$ will pass through first $\left(x_{j}, y_{j}\right)$ and then $\left(x_{k}, y_{k}\right)$. At least three distinct Manhattan distances will occur. Conversely, among the nine points $$ (0,0), \quad( \pm 1, \pm 1), \quad( \pm 2,0), \quad(0, \pm 2), $$ only the Manhattan distances 2 and 4 occur.
9
Yes
Yes
math-word-problem
Combinatorics
With inspiration drawn from the rectilinear network of streets in New York, the Manhattan distance between two points $(a, b)$ and $(c, d)$ in the plane is defined to be $$ |a-c|+|b-d| \text {. } $$ Suppose only two distinct Manhattan distances occur between all pairs of distinct points of some point set. What is the maximal number of points in such a set?
Answer: nine. Let $$ \left\{\left(x_{1}, y_{1}\right), \ldots,\left(x_{m}, y_{m}\right)\right\}, \quad \text { where } \quad x_{1} \leq \cdots \leq x_{m} $$ be the set, and suppose $m \geq 10$. A special case of the Erdős-Szekeres Theorem asserts that a real sequence of length $n^{2}+1$ contains a monotonic subsequence of length $n+1$. (Proof: Given a sequence $a_{1} \ldots, a_{n^{2}+1}$, let $p_{i}$ denote the length of the longest increasing subsequence ending with $a_{i}$, and $q_{i}$ the length of the longest decreasing subsequence ending with $a_{i}$. If $i<j$ and $a_{i} \leq a_{j}$, then $p_{i}<p_{j}$. If $a_{i} \geq a_{j}$, then $q_{i}<q_{j}$. Hence all $n^{2}+1$ pairs $\left(p_{i}, q_{i}\right)$ are distinct. If all of them were to satisfy $1 \leq p_{i}, q_{i} \leq n$, it would violate the Pigeon-Hole Principle.) Applied to the sequence $y_{1}, \ldots, y_{m}$, this will produce a subsequence $$ y_{i} \leq y_{j} \leq y_{k} \leq y_{l} \quad \text { or } \quad y_{i} \geq y_{j} \geq y_{k} \geq y_{l} $$ One of the shortest paths from $\left(x_{i}, y_{i}\right)$ to $\left(x_{l}, y_{l}\right)$ will pass through first $\left(x_{j}, y_{j}\right)$ and then $\left(x_{k}, y_{k}\right)$. At least three distinct Manhattan distances will occur. Conversely, among the nine points $$ (0,0), \quad( \pm 1, \pm 1), \quad( \pm 2,0), \quad(0, \pm 2), $$ only the Manhattan distances 2 and 4 occur.
{ "resource_path": "BalticWay/segmented/en-bw15sol.jsonl", "problem_match": "# Problem 8.", "solution_match": "\nSolution." }
53e9d5dc-d1d3-5a83-8f3a-7dd50d45704b
605,574
Denote by $P(n)$ the greatest prime divisor of $n$. Find all integers $n \geq 2$ for which $$ P(n)+\lfloor\sqrt{n}\rfloor=P(n+1)+\lfloor\sqrt{n+1}\rfloor . $$ (Note: $\lfloor x\rfloor$ denotes the greatest integer less than or equal to $x$.)
Answer: The equality holds only for $n=3$. It is easy to see that $P(n) \neq P(n+1)$. Therefore we need also that $\lfloor\sqrt{n}\rfloor \neq\lfloor\sqrt{n+1}\rfloor$ in order for equality to hold. This is only possible if $n+1$ is a perfect square. In this case, $$ \lfloor\sqrt{n}\rfloor+1=\lfloor\sqrt{n+1}\rfloor $$ and hence $P(n)=P(n+1)+1$. As both $P(n)$ and $P(n+1)$ are primes, it must be that $P(n)=3$ and $P(n+1)=2$. It follows that $n=3^{a}$ and $n+1=2^{b}$, and we are required to solve the equation $3^{a}=2^{b}-1$. Calculating modulo 3 , we find that $b$ is even. Put $b=2 c$ : $$ 3^{a}=\left(2^{c}-1\right)\left(2^{c}+1\right) . $$ As both factors cannot be divisible by 3 (their difference is 2 ), $2^{c}-1=1$. From this we get $c=1$, which leads to $n=3$.
3
Yes
Yes
math-word-problem
Number Theory
Denote by $P(n)$ the greatest prime divisor of $n$. Find all integers $n \geq 2$ for which $$ P(n)+\lfloor\sqrt{n}\rfloor=P(n+1)+\lfloor\sqrt{n+1}\rfloor . $$ (Note: $\lfloor x\rfloor$ denotes the greatest integer less than or equal to $x$.)
Answer: The equality holds only for $n=3$. It is easy to see that $P(n) \neq P(n+1)$. Therefore we need also that $\lfloor\sqrt{n}\rfloor \neq\lfloor\sqrt{n+1}\rfloor$ in order for equality to hold. This is only possible if $n+1$ is a perfect square. In this case, $$ \lfloor\sqrt{n}\rfloor+1=\lfloor\sqrt{n+1}\rfloor $$ and hence $P(n)=P(n+1)+1$. As both $P(n)$ and $P(n+1)$ are primes, it must be that $P(n)=3$ and $P(n+1)=2$. It follows that $n=3^{a}$ and $n+1=2^{b}$, and we are required to solve the equation $3^{a}=2^{b}-1$. Calculating modulo 3 , we find that $b$ is even. Put $b=2 c$ : $$ 3^{a}=\left(2^{c}-1\right)\left(2^{c}+1\right) . $$ As both factors cannot be divisible by 3 (their difference is 2 ), $2^{c}-1=1$. From this we get $c=1$, which leads to $n=3$.
{ "resource_path": "BalticWay/segmented/en-bw15sol.jsonl", "problem_match": "# Problem 16.", "solution_match": "\nSolution." }
cbbd6363-4697-50b9-b2c9-f8d86ad36aa8
605,721
Does there exist a finite set of real numbers such that their sum equals 2 , the sum of their squares equals 3 , the sum of their cubes equals 4 and the sum of their ninth powers equals 10 ?
Answer: no. Assume that such a set of numbers $\left\{a_{1}, \ldots, a_{n}\right\}$ exists. Summing up the inequalities $$ 2 a_{i}^{3} \leq a_{i}^{2}+a_{i}^{4} $$ for all $i$ we obtain the inequality $8 \leq 8$. Therefore all the inequalities are in fact equalities. This is possible for the cases $a_{i}=0$ or $a_{i}=1$ only, but the elements of a set are all different. (Remark: Even if the $a_{i}$ 's are allowed to be equal it is clear that only 0's or only l's do not satisfy the problem conditions.)
no
Yes
Yes
math-word-problem
Algebra
Does there exist a finite set of real numbers such that their sum equals 2 , the sum of their squares equals 3 , the sum of their cubes equals 4 and the sum of their ninth powers equals 10 ?
Answer: no. Assume that such a set of numbers $\left\{a_{1}, \ldots, a_{n}\right\}$ exists. Summing up the inequalities $$ 2 a_{i}^{3} \leq a_{i}^{2}+a_{i}^{4} $$ for all $i$ we obtain the inequality $8 \leq 8$. Therefore all the inequalities are in fact equalities. This is possible for the cases $a_{i}=0$ or $a_{i}=1$ only, but the elements of a set are all different. (Remark: Even if the $a_{i}$ 's are allowed to be equal it is clear that only 0's or only l's do not satisfy the problem conditions.)
{ "resource_path": "BalticWay/segmented/en-bw17sol.jsonl", "problem_match": "\nProblem 2.", "solution_match": "# Solution\n" }
d1472918-42bc-5ff7-bea1-b681f199aabf
606,099
Positive integers $x_{1}, \ldots, x_{m}$ (not necessarily distinct) are written on a blackboard. It is known that each of the numbers $F_{1}, \ldots, F_{2018}$ can be represented as a sum of one or more of the numbers on the blackboard. What is the smallest possible value of $m$ ? (Here $F_{1}, \ldots, F_{2018}$ are the first 2018 Fibonacci numbers: $F_{1}=F_{2}=1, F_{k+1}=F_{k}+F_{k-1}$ for $k>1$.)
Answer: the minimal value for $m$ is 1009 . Construction: Define $x_{i}=F_{2 i-1}$. This works since $F_{2 k}=F_{1}+F_{3}+\ldots+F_{2 k-1}$, for all $k$, which can easily be proved by induction. Minimality: Again by induction we get that $F_{k+2}=1+F_{1}+F_{2}+\ldots+F_{k}$, for all $k$, which means that $$ F_{k+2}>F_{1}+F_{2}+\ldots+F_{k} . $$ Consider the numbers that have been used for the representing the first $k$ Fibonacci numbers. Then the sum of these $x_{i}$ 's is less than $F_{k+2}$ due to $(*)$. Thus, at least one additional number is required to deal with $F_{k+2}$. This establishes the lower bound $m \leq 1009$.
1009
Yes
Yes
math-word-problem
Number Theory
Positive integers $x_{1}, \ldots, x_{m}$ (not necessarily distinct) are written on a blackboard. It is known that each of the numbers $F_{1}, \ldots, F_{2018}$ can be represented as a sum of one or more of the numbers on the blackboard. What is the smallest possible value of $m$ ? (Here $F_{1}, \ldots, F_{2018}$ are the first 2018 Fibonacci numbers: $F_{1}=F_{2}=1, F_{k+1}=F_{k}+F_{k-1}$ for $k>1$.)
Answer: the minimal value for $m$ is 1009 . Construction: Define $x_{i}=F_{2 i-1}$. This works since $F_{2 k}=F_{1}+F_{3}+\ldots+F_{2 k-1}$, for all $k$, which can easily be proved by induction. Minimality: Again by induction we get that $F_{k+2}=1+F_{1}+F_{2}+\ldots+F_{k}$, for all $k$, which means that $$ F_{k+2}>F_{1}+F_{2}+\ldots+F_{k} . $$ Consider the numbers that have been used for the representing the first $k$ Fibonacci numbers. Then the sum of these $x_{i}$ 's is less than $F_{k+2}$ due to $(*)$. Thus, at least one additional number is required to deal with $F_{k+2}$. This establishes the lower bound $m \leq 1009$.
{ "resource_path": "BalticWay/segmented/en-bw17sol.jsonl", "problem_match": "\nProblem 3.", "solution_match": "# Solution\n" }
58058a68-a054-53aa-abbd-608b0681441b
606,108
A chess knight has injured his leg and is limping. He alternates between a normal move and a short move where he moves to any diagonally neighbouring cell. ![](https://cdn.mathpix.com/cropped/2024_04_17_6a5543a8a260575a56cdg-05.jpg?height=315&width=317&top_left_y=385&top_left_x=732) Normal move ![](https://cdn.mathpix.com/cropped/2024_04_17_6a5543a8a260575a56cdg-05.jpg?height=199&width=195&top_left_y=503&top_left_x=1136) Short move The limping knight moves on a $5 \times 6$ cell chessboard starting with a normal move. What is the largest number of moves he can make if he is starting from a cell of his own choice and is not allowed to visit any cell (including the initial cell) more than once?
Answer: 25 moves. Let us enumerate the rows of the chessboard with numbers 1 to 5 . We will consider only the short moves. Each short move connects two cells from rows of different parity and no two short moves has a common cell. Therefore there can be at most 12 short moves as there are just 12 cells in the rows of even parity (second and fourth). It means that the maximal number of moves is 12 short +13 normal $=25$ moves. The figure shows that 25 moves indeed can be made. | 19 | 5 | 7 | 9 | 11 | | | :---: | :---: | :---: | :---: | :---: | :---: | | 4 | 18 | 20 | 6 | 8 | 10 | | | 2 | | 21 | 26 | 12 | | 17 | 3 | 24 | 15 | 13 | 22 | | 2 | 16 | 14 | 25 | 23 | |
25
Yes
Yes
math-word-problem
Combinatorics
A chess knight has injured his leg and is limping. He alternates between a normal move and a short move where he moves to any diagonally neighbouring cell. ![](https://cdn.mathpix.com/cropped/2024_04_17_6a5543a8a260575a56cdg-05.jpg?height=315&width=317&top_left_y=385&top_left_x=732) Normal move ![](https://cdn.mathpix.com/cropped/2024_04_17_6a5543a8a260575a56cdg-05.jpg?height=199&width=195&top_left_y=503&top_left_x=1136) Short move The limping knight moves on a $5 \times 6$ cell chessboard starting with a normal move. What is the largest number of moves he can make if he is starting from a cell of his own choice and is not allowed to visit any cell (including the initial cell) more than once?
Answer: 25 moves. Let us enumerate the rows of the chessboard with numbers 1 to 5 . We will consider only the short moves. Each short move connects two cells from rows of different parity and no two short moves has a common cell. Therefore there can be at most 12 short moves as there are just 12 cells in the rows of even parity (second and fourth). It means that the maximal number of moves is 12 short +13 normal $=25$ moves. The figure shows that 25 moves indeed can be made. | 19 | 5 | 7 | 9 | 11 | | | :---: | :---: | :---: | :---: | :---: | :---: | | 4 | 18 | 20 | 6 | 8 | 10 | | | 2 | | 21 | 26 | 12 | | 17 | 3 | 24 | 15 | 13 | 22 | | 2 | 16 | 14 | 25 | 23 | |
{ "resource_path": "BalticWay/segmented/en-bw17sol.jsonl", "problem_match": "\nProblem 8.", "solution_match": "# Solution\n" }
b675c705-ff7c-5a4f-be5a-dd7e91c64745
606,168
Let $n \geq 3$ be an integer. What is the largest possible number of interior angles greater than $180^{\circ}$ in an $n$-gon in the plane, given that the $n$-gon does not intersect itself and all its sides have the same length?
Answer: 0 if $n=3,4$ and $n-3$ for $n \geq 5$. If $n=3,4$ then any such $n$-gon is a triangle, resp. a rhombus, therefore the answer is 0 . If $n=5$ then consider a triangle with side lengths 2,2,1. Now move the vertex between sides of length 2 towards the opposite side by 0.0000001 units. Consider the triangle as a closed physical chain of links of length 1 that are aluminium tubes and through them is a closed rubber string. So deform the chain on a level surface so that links of the chain move towards the inside of the triangle, by fixing the vertices of the triangle to the surface. Geometrically, the links which are on sides of length 2 are now distinct chords of a large circle, attached to each other by their endpoints. If $n>5$ then first consider a triangle of integer sides lengths, with sides of as equal lengths as possible, so that the sum of side lengths is $n$. Imagine a closed aluminium chain on a rubber string, as in the previous case. Now move two of the vertices of the triangle towards the third one be 0.00000001 units each. Again consider the chain on a level surface and deform it so that its links move towards the interior of the triangle. Geometrically each side of a triangle is deformed into consecutive equal-length chords of a large circle with centre far away from the original triangle. For $n \geq 5$ this gives an example of $n-3$ interior angles of more than $180^{\circ}$. To see that $n-2$ or more such angles is not possible, note than the sum of interior angles of any $n$-gon (that does not cut itself) is equal to $(n-2) 180^{\circ}$, but already the sum of the 'large' angles would be greater than that if there were at least $n-2$ of 'large' angles of size greater than $180^{\circ}$.
n-3
Yes
Yes
math-word-problem
Geometry
Let $n \geq 3$ be an integer. What is the largest possible number of interior angles greater than $180^{\circ}$ in an $n$-gon in the plane, given that the $n$-gon does not intersect itself and all its sides have the same length?
Answer: 0 if $n=3,4$ and $n-3$ for $n \geq 5$. If $n=3,4$ then any such $n$-gon is a triangle, resp. a rhombus, therefore the answer is 0 . If $n=5$ then consider a triangle with side lengths 2,2,1. Now move the vertex between sides of length 2 towards the opposite side by 0.0000001 units. Consider the triangle as a closed physical chain of links of length 1 that are aluminium tubes and through them is a closed rubber string. So deform the chain on a level surface so that links of the chain move towards the inside of the triangle, by fixing the vertices of the triangle to the surface. Geometrically, the links which are on sides of length 2 are now distinct chords of a large circle, attached to each other by their endpoints. If $n>5$ then first consider a triangle of integer sides lengths, with sides of as equal lengths as possible, so that the sum of side lengths is $n$. Imagine a closed aluminium chain on a rubber string, as in the previous case. Now move two of the vertices of the triangle towards the third one be 0.00000001 units each. Again consider the chain on a level surface and deform it so that its links move towards the interior of the triangle. Geometrically each side of a triangle is deformed into consecutive equal-length chords of a large circle with centre far away from the original triangle. For $n \geq 5$ this gives an example of $n-3$ interior angles of more than $180^{\circ}$. To see that $n-2$ or more such angles is not possible, note than the sum of interior angles of any $n$-gon (that does not cut itself) is equal to $(n-2) 180^{\circ}$, but already the sum of the 'large' angles would be greater than that if there were at least $n-2$ of 'large' angles of size greater than $180^{\circ}$.
{ "resource_path": "BalticWay/segmented/en-bw17sol.jsonl", "problem_match": "\nProblem 15.", "solution_match": "# Solution\n" }
a457e9d2-bd3b-5687-a807-3ecc8e187c3b
606,247
A finite collection of positive real numbers (not necessarily distinct) is balanced if each number is less than the sum of the others. Find all $m \geq 3$ such that every balanced finite collection of $m$ numbers can be split into three parts with the property that the sum of the numbers in each part is less than the sum of the numbers in the two other parts.
Answer: The partition is always possible precisely when $m \neq 4$. For $m=3$ it is trivially possible, and for $m=4$ the four equal numbers $g, g, g, g$ provide a counter-example. Henceforth, we assume $m \geq 5$. Among all possible partitions $A \sqcup B \sqcup C=\{1, \ldots, m\}$ such that $$ S_{A} \leq S_{B} \leq S_{C}, $$ select one for which the difference $S_{C}-S_{A}$ is minimal. If there are several such, select one so as to maximise the number of elements in $C$. We will show that $S_{C}<S_{A}+S_{B}$, which is clearly sufficient. If $C$ consists of a single element, this number is by assumption less than the sum of the remaining ones, hence $S_{C}<S_{A}+S_{B}$ holds true. Suppose now $C$ contains at least two elements, and let $g_{c}$ be a minimal number indexed by a $c \in C$. We have the inequality $$ S_{C}-S_{A} \leq g_{c} \leq \frac{1}{2} S_{C} $$ The first is by the minimality of $S_{C}-S_{A}$, the second by the minimality of $g_{c}$. These two inequalities together yield $$ S_{A}+S_{B} \geq 2 S_{A} \geq 2\left(S_{C}-g_{c}\right) \geq S_{C} $$ If either of these inequalities is strict, we are finished. Hence suppose all inequalities are in fact equalities, so that $$ S_{A}=S_{B}=\frac{1}{2} S_{C}=g_{c} $$ It follows that $C=\{c, d\}$, where $g_{d}=g_{c}$. If $A$ contained more than one element, we could increase the number of elements in $C$ by creating instead a partition $$ \{1, \ldots, m\}=\{c\} \sqcup B \sqcup(A \cup\{d\}), $$ resulting in the same sums. A similar procedure applies to $B$. Consequently, $A$ and $B$ must be singleton sets, whence $$ m=|A|+|B|+|C|=4 \text {. } $$
m \neq 4
Yes
Yes
math-word-problem
Combinatorics
A finite collection of positive real numbers (not necessarily distinct) is balanced if each number is less than the sum of the others. Find all $m \geq 3$ such that every balanced finite collection of $m$ numbers can be split into three parts with the property that the sum of the numbers in each part is less than the sum of the numbers in the two other parts.
Answer: The partition is always possible precisely when $m \neq 4$. For $m=3$ it is trivially possible, and for $m=4$ the four equal numbers $g, g, g, g$ provide a counter-example. Henceforth, we assume $m \geq 5$. Among all possible partitions $A \sqcup B \sqcup C=\{1, \ldots, m\}$ such that $$ S_{A} \leq S_{B} \leq S_{C}, $$ select one for which the difference $S_{C}-S_{A}$ is minimal. If there are several such, select one so as to maximise the number of elements in $C$. We will show that $S_{C}<S_{A}+S_{B}$, which is clearly sufficient. If $C$ consists of a single element, this number is by assumption less than the sum of the remaining ones, hence $S_{C}<S_{A}+S_{B}$ holds true. Suppose now $C$ contains at least two elements, and let $g_{c}$ be a minimal number indexed by a $c \in C$. We have the inequality $$ S_{C}-S_{A} \leq g_{c} \leq \frac{1}{2} S_{C} $$ The first is by the minimality of $S_{C}-S_{A}$, the second by the minimality of $g_{c}$. These two inequalities together yield $$ S_{A}+S_{B} \geq 2 S_{A} \geq 2\left(S_{C}-g_{c}\right) \geq S_{C} $$ If either of these inequalities is strict, we are finished. Hence suppose all inequalities are in fact equalities, so that $$ S_{A}=S_{B}=\frac{1}{2} S_{C}=g_{c} $$ It follows that $C=\{c, d\}$, where $g_{d}=g_{c}$. If $A$ contained more than one element, we could increase the number of elements in $C$ by creating instead a partition $$ \{1, \ldots, m\}=\{c\} \sqcup B \sqcup(A \cup\{d\}), $$ resulting in the same sums. A similar procedure applies to $B$. Consequently, $A$ and $B$ must be singleton sets, whence $$ m=|A|+|B|+|C|=4 \text {. } $$
{ "resource_path": "BalticWay/segmented/en-bw18sol.jsonl", "problem_match": "\n1.", "solution_match": "# Solution." }
1192a62f-aabe-5940-a00c-2156495e813f
606,299
On a $16 \times 16$ torus as shown all 512 edges are colored red or blue. A coloring is good if every vertex is an endpoint of an even number of red edges. A move consists of switching the color of each of the 4 edges of an arbitrary cell. What is the largest number of good colorings such that none of them can be converted to another by a sequence of moves?
![](https://cdn.mathpix.com/cropped/2024_04_17_32678f32969e2f04174ag-05.jpg?height=383&width=462&top_left_y=1416&top_left_x=1408) Answer: 4. Representatives of the equivalence classes are: all blue, all blue with one longitudinal red ring, all blue with one transversal red ring, all blue with one longitudinal and one transversal red ring. First, show that these four classes are non equivalent. Consider any ring transversal or longitudinal and count the number of red edges going out from vertices of this ring in the same halftorus. This number can not be changed mod 2. Now we show that each configuration can be transformed to one of these four classes. We suggest two independent reasoning. Scanning of the square. Cut the torus up in a square $16 \times 16$. In order to restore the initial torus we will identify the opposite sides of the square, but we will do it in the end of solution. Now we will work with the square. It is clear that during all recolorings each vertex of torus has even red degree. The same is true for the degrees of the inner vertices of the $16 \times 16$ square when we deal with it instead of the torus. Scan all cells of this square one by one from left to right and from bottom to top. For convenience we may think that in each moment the scanned area is colored grey. First we take bottom left corner cell ( $a 1$ in chess notations) and color it grey. Then we consider the next cell ( $b 1$ in chess notations) color it grey and if the edge between the cells $a 1$ and $b 1$ is red, change the colors of the cell $b 1$ edges. We obtain a grey area with no red edges in its interior. After that when we scan each new cell we append this cell to the grey figure and if it is necessary change the colors of edges of the new cell to make the color of all new edges in the grey area blue. The latter is always possible because the new cell have either one common edge with the grey figure (as in the case " $a 1-b 1$ " above) or two common edges. For example let grey figure consist of the first row of the square and $a 2$ cell. When we append the cell $b 2$ to the grey figure two edges of its lower left corner vertex already belong to the grey figure, they are blue. Therefore the other two edges $a 2-b 2$ and $b 1-b 2$ have the same color and we can make them both blue (if they are not) by recoloring the edges of cell $b 2$. So by doing that with all cells of the square we obtain $16 \times 16$ square with blue edges inside it. Now its time to recall that the sides of the square should be identified, and the red degree of each vertex of torus is even. It follows that the whole (identified) vertical sides of the square are either red or blue, and the same for horizontal sides. Deformations of red loops (sketch). To see that any configuration can be made into one of the above four configurations it is most clear to cut the torus up in a square with opposite edges identified. Since the red degree of each vertex is even we can always find a loop consisting of red edges only. Now, suppose that one can make a (simple) red loop that does not cross the boundary of the square. We can change the color of this loop by changing one by one the colors of unit squares inside it. In the remaining configuration every vertex is still an endpoint of an even number of red edges and we can repeat the operation. So by doing that to every red loop we are left with a configuration where one can not make red loops that do not intersect the boundary. Second, any red loop left that passes through more than one boundary vertex can be deformed into a loop containing only one boundary vertex. Finally, any two loops crossing the same side of the square can be removed by changing colors of all unit squares between these loops. Thus, we are left with only the four possibilities mentioned.
4
Yes
Yes
math-word-problem
Combinatorics
On a $16 \times 16$ torus as shown all 512 edges are colored red or blue. A coloring is good if every vertex is an endpoint of an even number of red edges. A move consists of switching the color of each of the 4 edges of an arbitrary cell. What is the largest number of good colorings such that none of them can be converted to another by a sequence of moves?
![](https://cdn.mathpix.com/cropped/2024_04_17_32678f32969e2f04174ag-05.jpg?height=383&width=462&top_left_y=1416&top_left_x=1408) Answer: 4. Representatives of the equivalence classes are: all blue, all blue with one longitudinal red ring, all blue with one transversal red ring, all blue with one longitudinal and one transversal red ring. First, show that these four classes are non equivalent. Consider any ring transversal or longitudinal and count the number of red edges going out from vertices of this ring in the same halftorus. This number can not be changed mod 2. Now we show that each configuration can be transformed to one of these four classes. We suggest two independent reasoning. Scanning of the square. Cut the torus up in a square $16 \times 16$. In order to restore the initial torus we will identify the opposite sides of the square, but we will do it in the end of solution. Now we will work with the square. It is clear that during all recolorings each vertex of torus has even red degree. The same is true for the degrees of the inner vertices of the $16 \times 16$ square when we deal with it instead of the torus. Scan all cells of this square one by one from left to right and from bottom to top. For convenience we may think that in each moment the scanned area is colored grey. First we take bottom left corner cell ( $a 1$ in chess notations) and color it grey. Then we consider the next cell ( $b 1$ in chess notations) color it grey and if the edge between the cells $a 1$ and $b 1$ is red, change the colors of the cell $b 1$ edges. We obtain a grey area with no red edges in its interior. After that when we scan each new cell we append this cell to the grey figure and if it is necessary change the colors of edges of the new cell to make the color of all new edges in the grey area blue. The latter is always possible because the new cell have either one common edge with the grey figure (as in the case " $a 1-b 1$ " above) or two common edges. For example let grey figure consist of the first row of the square and $a 2$ cell. When we append the cell $b 2$ to the grey figure two edges of its lower left corner vertex already belong to the grey figure, they are blue. Therefore the other two edges $a 2-b 2$ and $b 1-b 2$ have the same color and we can make them both blue (if they are not) by recoloring the edges of cell $b 2$. So by doing that with all cells of the square we obtain $16 \times 16$ square with blue edges inside it. Now its time to recall that the sides of the square should be identified, and the red degree of each vertex of torus is even. It follows that the whole (identified) vertical sides of the square are either red or blue, and the same for horizontal sides. Deformations of red loops (sketch). To see that any configuration can be made into one of the above four configurations it is most clear to cut the torus up in a square with opposite edges identified. Since the red degree of each vertex is even we can always find a loop consisting of red edges only. Now, suppose that one can make a (simple) red loop that does not cross the boundary of the square. We can change the color of this loop by changing one by one the colors of unit squares inside it. In the remaining configuration every vertex is still an endpoint of an even number of red edges and we can repeat the operation. So by doing that to every red loop we are left with a configuration where one can not make red loops that do not intersect the boundary. Second, any red loop left that passes through more than one boundary vertex can be deformed into a loop containing only one boundary vertex. Finally, any two loops crossing the same side of the square can be removed by changing colors of all unit squares between these loops. Thus, we are left with only the four possibilities mentioned.
{ "resource_path": "BalticWay/segmented/en-bw18sol.jsonl", "problem_match": "\n7.", "solution_match": "# Solution." }
837430bc-48e3-564e-9294-440198de2db7
606,321
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, the second player removes four cards with consecutive integers. What is the smallest value of $n$ for which the second player can ensure that he completes both his moves?
Answer: $n=14$. At first, let's show that for $n=13$ the first player can ensure that after his second move no 4 consecutive numbers are left. In the first move he can erase number 4 and in the second move he can ensure that numbers 8,9 and 10 are erased. No interval of length 4 is left. If $n=14$ the second player can use the following strategy. Let the first player erase number $k$ in his first move, because of symmetry assume that that $k \leq 7$. If $k \geq 5$ then the second player can erase $k+1$ and $k+2$ and there are two intervals left of length at least 4: 1.. $(k-1)$ and $(k+3) . .14$, but the first player can destroy at most one of them. But if $k \leq 4$, then the second player can erase numbers 9 and 10 in his first move and again there are two intervals left of length at least 4: $(k+1) . .8$ and 11..14. ## 3 Geometry
14
Yes
Yes
math-word-problem
Combinatorics
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, the second player removes four cards with consecutive integers. What is the smallest value of $n$ for which the second player can ensure that he completes both his moves?
Answer: $n=14$. At first, let's show that for $n=13$ the first player can ensure that after his second move no 4 consecutive numbers are left. In the first move he can erase number 4 and in the second move he can ensure that numbers 8,9 and 10 are erased. No interval of length 4 is left. If $n=14$ the second player can use the following strategy. Let the first player erase number $k$ in his first move, because of symmetry assume that that $k \leq 7$. If $k \geq 5$ then the second player can erase $k+1$ and $k+2$ and there are two intervals left of length at least 4: 1.. $(k-1)$ and $(k+3) . .14$, but the first player can destroy at most one of them. But if $k \leq 4$, then the second player can erase numbers 9 and 10 in his first move and again there are two intervals left of length at least 4: $(k+1) . .8$ and 11..14. ## 3 Geometry
{ "resource_path": "BalticWay/segmented/en-bw18sol.jsonl", "problem_match": "\n10.", "solution_match": "\nSolution." }
4e88492a-5026-5143-a28f-0d8d5fd22d67
238,364
Let $n>2$ be a given positive integer. There are $n$ guests at Georg's bachelor party and each guest is friends with at least one other guest. Georg organizes a party game among the guests. Each guest receives a jug of water such that there are no two guests with the same amount of water in their jugs. All guests now proceed simultaneously as follows. Every guest takes one cup for each of his friends at the party and distributes all the water from his jug evenly in the cups. He then passes a cup to each of his friends. Each guest having received a cup of water from each of his friends pours the water he has received into his jug. What is the smallest possible number of guests that do not have the same amount of water as they started with?
Answer: 2 . If there are guests $1,2, \ldots, n$ and guest $i$ is friends with guest $i-1$ and $i+1$ modulo $n$ (e.g. guest 1 and guest $n$ are friends). Then if guest $i$ has $i$ amount of water in their jug at the start of the game, then only guest 1 and $n$ end up with a different amount of water than they started with. To show that there always will be at least two guests with a different amount of water at the end of the game than they started with, let $x_{i}$ and $d_{i}$ be the amount of water and number of friends, respectively, that guest $i$ has. Define $z_{v}=x_{v} / d_{v}$ and assume without loss of generality that the friendship graph of the party is connected. Since every friend has at least one friend, there must exist two guests $a$ and $b$ at the party with the same number of friends by the pigeonhole principle. They must satisfy $z_{a} \neq z_{b}$. Thus, the sets $$ S=\left\{c \mid z_{c}=\min _{d} z_{d}\right\} \text { and } T=\left\{c \mid z_{c}=\max _{d} z_{d}\right\} $$ are non-empty and disjoint. Since we assumed the friendship graph to be connected, there exists a guest $c \in S$ that has a friend $d$ not in $S$. Let $F$ be the friends of $c$ at the party. Then the amount of water in $c$ 's cup at the end of the game is $$ \sum_{f \in F} z_{f} \geqslant z_{d}+\left(d_{c}-1\right) z_{c}>d_{c} \cdot z_{c}=x_{c} $$ Thus, $c$ ends up with a different amount of water at the end of the game. Similarly, there is a guest in $T$ that ends up with a different amount of water at the end of the game than what they started with.
2
Yes
Yes
math-word-problem
Combinatorics
Let $n>2$ be a given positive integer. There are $n$ guests at Georg's bachelor party and each guest is friends with at least one other guest. Georg organizes a party game among the guests. Each guest receives a jug of water such that there are no two guests with the same amount of water in their jugs. All guests now proceed simultaneously as follows. Every guest takes one cup for each of his friends at the party and distributes all the water from his jug evenly in the cups. He then passes a cup to each of his friends. Each guest having received a cup of water from each of his friends pours the water he has received into his jug. What is the smallest possible number of guests that do not have the same amount of water as they started with?
Answer: 2 . If there are guests $1,2, \ldots, n$ and guest $i$ is friends with guest $i-1$ and $i+1$ modulo $n$ (e.g. guest 1 and guest $n$ are friends). Then if guest $i$ has $i$ amount of water in their jug at the start of the game, then only guest 1 and $n$ end up with a different amount of water than they started with. To show that there always will be at least two guests with a different amount of water at the end of the game than they started with, let $x_{i}$ and $d_{i}$ be the amount of water and number of friends, respectively, that guest $i$ has. Define $z_{v}=x_{v} / d_{v}$ and assume without loss of generality that the friendship graph of the party is connected. Since every friend has at least one friend, there must exist two guests $a$ and $b$ at the party with the same number of friends by the pigeonhole principle. They must satisfy $z_{a} \neq z_{b}$. Thus, the sets $$ S=\left\{c \mid z_{c}=\min _{d} z_{d}\right\} \text { and } T=\left\{c \mid z_{c}=\max _{d} z_{d}\right\} $$ are non-empty and disjoint. Since we assumed the friendship graph to be connected, there exists a guest $c \in S$ that has a friend $d$ not in $S$. Let $F$ be the friends of $c$ at the party. Then the amount of water in $c$ 's cup at the end of the game is $$ \sum_{f \in F} z_{f} \geqslant z_{d}+\left(d_{c}-1\right) z_{c}>d_{c} \cdot z_{c}=x_{c} $$ Thus, $c$ ends up with a different amount of water at the end of the game. Similarly, there is a guest in $T$ that ends up with a different amount of water at the end of the game than what they started with.
{ "resource_path": "BalticWay/segmented/en-bw20sol.jsonl", "problem_match": "\nProblem 6.", "solution_match": "\nSolution." }
b6fcc371-413f-5eda-a3da-34a5dd3a2bb6
28,244
A mason has bricks with dimensions $2 \times 5 \times 8$ and other bricks with dimensions $2 \times 3 \times 7$. She also has a box with dimensions $10 \times 11 \times 14$. The bricks and the box are all rectangular parallelepipeds. The mason wants to pack bricks into the box filling its entire volume and with no bricks sticking out. Find all possible values of the total number of bricks that she can pack.
Answer: 24. Let the number of $2 \times 5 \times 8$ bricks in the box be $x$, and the number of $2 \times 3 \times 7$ bricks $y$. We must figure out the sum $x+y$. The volume of the box is divisible by 7 , and so is the volume of any $2 \times 3 \times 7$ brick. The volume of a $2 \times 5 \times 8$ brick is not divisible by 7 , which means that $x$ must be divisible by 7 . The volume of the box is $10 \cdot 11 \cdot 14$. The volume of the $2 \times 5 \times 8$ bricks in the box is $x \cdot 2 \cdot 5 \cdot 8=80 x$. Since this volume cannot exceed the volume of the box, we must have $$ x \leqslant \frac{10 \cdot 11 \cdot 14}{80}=\frac{11 \cdot 7}{4}=\frac{77}{4}<20 . $$ Since $x$ was divisible by 7 , and certainly nonnegative, we conclude that $x$ must be 0,7 or 14 . Let us explore each of these possibilities separately. If we had $x=0$, then the volume of the $2 \times 3 \times 7$ bricks, which is $y \cdot 2 \cdot 3 \cdot 7$, would be equal to the volume of the box, which is $10 \cdot 11 \cdot 14$. However, this is not possible since the volume of the $2 \times 3 \times 7$ bricks is divisible by three whereas the volume of the box is not. Thus $x$ must be 7 or 14 . If we had $x=7$, then equating the total volume of the bricks with the volume of the box would give $$ 7 \cdot 2 \cdot 5 \cdot 8+y \cdot 2 \cdot 3 \cdot 7=10 \cdot 11 \cdot 14 $$ so that $$ y \cdot 2 \cdot 3 \cdot 7=10 \cdot 11 \cdot 14-7 \cdot 2 \cdot 5 \cdot 8=1540-560=980 . $$ However, again the left-hand side, the volume of the $2 \times 3 \times 7$ bricks, is divisible by three, whereas the right-hand side, 980, is not. Thus we cannot have have $x=7$ either, and the only possibility is $x=14$. Since $x=14$, equating the volumes of the bricks and the box gives $$ 14 \cdot 2 \cdot 5 \cdot 8+y \cdot 2 \cdot 3 \cdot 7=10 \cdot 11 \cdot 14 $$ which in turn leads to $$ y \cdot 2 \cdot 3 \cdot 7=10 \cdot 11 \cdot 14-14 \cdot 2 \cdot 5 \cdot 8=1540-1120=420 $$ so that $$ y=\frac{420}{2 \cdot 3 \cdot 7}=\frac{420}{42}=10 $$ Thus the number of bricks in the box can only be $14+10=24$. Finally, for completeness, let us observe that 14 bricks with dimensions $2 \times 5 \times 8$ can be used to fill a volume with dimensions $10 \times 8 \times 14$, and 10 bricks with dimensions $2 \times 3 \times 7$ can be used to fill a volume with dimensions $10 \times 3 \times 14$, so that these 24 bricks can indeed be packed in the box.
24
Yes
Yes
math-word-problem
Combinatorics
A mason has bricks with dimensions $2 \times 5 \times 8$ and other bricks with dimensions $2 \times 3 \times 7$. She also has a box with dimensions $10 \times 11 \times 14$. The bricks and the box are all rectangular parallelepipeds. The mason wants to pack bricks into the box filling its entire volume and with no bricks sticking out. Find all possible values of the total number of bricks that she can pack.
Answer: 24. Let the number of $2 \times 5 \times 8$ bricks in the box be $x$, and the number of $2 \times 3 \times 7$ bricks $y$. We must figure out the sum $x+y$. The volume of the box is divisible by 7 , and so is the volume of any $2 \times 3 \times 7$ brick. The volume of a $2 \times 5 \times 8$ brick is not divisible by 7 , which means that $x$ must be divisible by 7 . The volume of the box is $10 \cdot 11 \cdot 14$. The volume of the $2 \times 5 \times 8$ bricks in the box is $x \cdot 2 \cdot 5 \cdot 8=80 x$. Since this volume cannot exceed the volume of the box, we must have $$ x \leqslant \frac{10 \cdot 11 \cdot 14}{80}=\frac{11 \cdot 7}{4}=\frac{77}{4}<20 . $$ Since $x$ was divisible by 7 , and certainly nonnegative, we conclude that $x$ must be 0,7 or 14 . Let us explore each of these possibilities separately. If we had $x=0$, then the volume of the $2 \times 3 \times 7$ bricks, which is $y \cdot 2 \cdot 3 \cdot 7$, would be equal to the volume of the box, which is $10 \cdot 11 \cdot 14$. However, this is not possible since the volume of the $2 \times 3 \times 7$ bricks is divisible by three whereas the volume of the box is not. Thus $x$ must be 7 or 14 . If we had $x=7$, then equating the total volume of the bricks with the volume of the box would give $$ 7 \cdot 2 \cdot 5 \cdot 8+y \cdot 2 \cdot 3 \cdot 7=10 \cdot 11 \cdot 14 $$ so that $$ y \cdot 2 \cdot 3 \cdot 7=10 \cdot 11 \cdot 14-7 \cdot 2 \cdot 5 \cdot 8=1540-560=980 . $$ However, again the left-hand side, the volume of the $2 \times 3 \times 7$ bricks, is divisible by three, whereas the right-hand side, 980, is not. Thus we cannot have have $x=7$ either, and the only possibility is $x=14$. Since $x=14$, equating the volumes of the bricks and the box gives $$ 14 \cdot 2 \cdot 5 \cdot 8+y \cdot 2 \cdot 3 \cdot 7=10 \cdot 11 \cdot 14 $$ which in turn leads to $$ y \cdot 2 \cdot 3 \cdot 7=10 \cdot 11 \cdot 14-14 \cdot 2 \cdot 5 \cdot 8=1540-1120=420 $$ so that $$ y=\frac{420}{2 \cdot 3 \cdot 7}=\frac{420}{42}=10 $$ Thus the number of bricks in the box can only be $14+10=24$. Finally, for completeness, let us observe that 14 bricks with dimensions $2 \times 5 \times 8$ can be used to fill a volume with dimensions $10 \times 8 \times 14$, and 10 bricks with dimensions $2 \times 3 \times 7$ can be used to fill a volume with dimensions $10 \times 3 \times 14$, so that these 24 bricks can indeed be packed in the box.
{ "resource_path": "BalticWay/segmented/en-bw20sol.jsonl", "problem_match": "\nProblem 7.", "solution_match": "\nSolution." }
015e8b1a-50d0-5279-9777-739989ee28e1
604,249
Let $n$ be a given positive integer. A restaurant offers a choice of $n$ starters, $n$ main dishes, $n$ desserts and $n$ wines. A merry company dines at the restaurant, with each guest choosing a starter, a main dish, a dessert and a wine. No two people place exactly the same order. It turns out that there is no collection of $n$ guests such that their orders coincide in three of these aspects, but in the fourth one they all differ. (For example, there are no $n$ people that order exactly the same three courses of food, but $n$ different wines.) What is the maximal number of guests?
Answer: The maximal number of guests is $n^{4}-n^{3}$. The possible menus are represented by quadruples $$ (a, b, c, d), \quad 1 \leqslant a, b, c, d \leqslant n . $$ Let us count those menus satisfying $$ a+b+c+d \not \equiv 0 \quad(\bmod n) $$ The numbers $a, b, c$ may be chosen arbitrarily ( $n$ choices for each), and then $d$ is required to satisfy only $d \not \equiv-a-b-c$. Hence there are $$ n^{3}(n-1)=n^{4}-n^{3} $$ such menus. If there are $n^{4}-n^{3}$ guests, and they have chosen precisely the $n^{4}-n^{3}$ menus satisfying $a+b+c+d \not \equiv 0(\bmod n)$, we claim that the condition of the problem is fulfilled. So suppose there is a collection of $n$ people whose orders coincide in three aspects, but differ in the fourth. With no loss of generality, we may assume they have ordered exactly the same food, but $n$ different wines. This means they all have the same value of $a, b$ and $c$, but their values of $d$ are distinct. A contradiction arises since, given $a, b$ and $c$, there are only $n-1$ values available for $d$. We now show that for $n^{4}-n^{3}+1$ guests (or more), it is impossible to obtain the situation stipulated in the problem. The $n^{3}$ sets $$ M_{a, b, c}=\{(a, b, c, d) \mid 1 \leqslant d \leqslant n\}, \quad 1 \leqslant a, b, c \leqslant n $$ form a partition of the set of possible menus, totalling $n^{4}$. When the number of guests is at least $n^{4}-n^{3}+1$, there are at most $n^{3}-1$ unselected menus. Therefore, there exists a set $M_{a, b, c}$ which contains no unselected menus. That is, all the $n$ menus in $M_{a, b, c}$ have been selected, and the condition of the problem is violated.
n^{4}-n^{3}
Yes
Yes
math-word-problem
Combinatorics
Let $n$ be a given positive integer. A restaurant offers a choice of $n$ starters, $n$ main dishes, $n$ desserts and $n$ wines. A merry company dines at the restaurant, with each guest choosing a starter, a main dish, a dessert and a wine. No two people place exactly the same order. It turns out that there is no collection of $n$ guests such that their orders coincide in three of these aspects, but in the fourth one they all differ. (For example, there are no $n$ people that order exactly the same three courses of food, but $n$ different wines.) What is the maximal number of guests?
Answer: The maximal number of guests is $n^{4}-n^{3}$. The possible menus are represented by quadruples $$ (a, b, c, d), \quad 1 \leqslant a, b, c, d \leqslant n . $$ Let us count those menus satisfying $$ a+b+c+d \not \equiv 0 \quad(\bmod n) $$ The numbers $a, b, c$ may be chosen arbitrarily ( $n$ choices for each), and then $d$ is required to satisfy only $d \not \equiv-a-b-c$. Hence there are $$ n^{3}(n-1)=n^{4}-n^{3} $$ such menus. If there are $n^{4}-n^{3}$ guests, and they have chosen precisely the $n^{4}-n^{3}$ menus satisfying $a+b+c+d \not \equiv 0(\bmod n)$, we claim that the condition of the problem is fulfilled. So suppose there is a collection of $n$ people whose orders coincide in three aspects, but differ in the fourth. With no loss of generality, we may assume they have ordered exactly the same food, but $n$ different wines. This means they all have the same value of $a, b$ and $c$, but their values of $d$ are distinct. A contradiction arises since, given $a, b$ and $c$, there are only $n-1$ values available for $d$. We now show that for $n^{4}-n^{3}+1$ guests (or more), it is impossible to obtain the situation stipulated in the problem. The $n^{3}$ sets $$ M_{a, b, c}=\{(a, b, c, d) \mid 1 \leqslant d \leqslant n\}, \quad 1 \leqslant a, b, c \leqslant n $$ form a partition of the set of possible menus, totalling $n^{4}$. When the number of guests is at least $n^{4}-n^{3}+1$, there are at most $n^{3}-1$ unselected menus. Therefore, there exists a set $M_{a, b, c}$ which contains no unselected menus. That is, all the $n$ menus in $M_{a, b, c}$ have been selected, and the condition of the problem is violated.
{ "resource_path": "BalticWay/segmented/en-bw20sol.jsonl", "problem_match": "\nProblem 8.", "solution_match": "# Solution." }
bbe0a3ff-6355-5fbc-bd0a-6985daf0b9ab
604,260
Let $n \geqslant 1$ be a positive integer. We say that an integer $k$ is a fan of $n$ if $0 \leqslant k \leqslant n-1$ and there exist integers $x, y, z \in \mathbb{Z}$ such that $$ \begin{aligned} x^{2}+y^{2}+z^{2} & \equiv 0 \quad(\bmod n) ; \\ x y z & \equiv k \quad(\bmod n) . \end{aligned} $$ Let $f(n)$ be the number of fans of $n$. Determine $f(2020)$.
Answer: $f(2020)=f(4) \cdot f(5) \cdot f(101)=1 \cdot 1 \cdot 101=101$. To prove our claim we show that $f$ is multiplicative, that is, $f(r s)=f(r) f(s)$ for coprime numbers $r, s \in \mathbb{N}$, and that (i) $f(4)=1$, (ii) $f(5)=1$, (iii) $f(101)=101$. The multiplicative property follows from the Chinese Remainder Theorem. (i) Integers $x, y$ and $z$ satisfy $x^{2}+y^{2}+z^{2} \equiv 0 \bmod 4$ if and only if they are all even. In this case $x y z \equiv 0 \bmod 4$. Hence 0 is the only fan of 4 . (ii) Integers $x, y$ and $z$ satisfy $x^{2}+y^{2}+z^{2} \equiv 0 \bmod 5$ if and only if at least one of them is divisible by 5 . In this case $x y z \equiv 0 \bmod 5$. Hence 5 is the only fan of 5 . (iii) We have $9^{2}+4^{2}+2^{2}=81+16+4=101$. Hence $(9 x)^{2}+(4 x)^{2}+(2 x)^{2}$ is divisible by 101 for every integer $x$. Hence the residue of $9 x \cdot 4 x \cdot 2 x=72 x^{3}$ upon division by 101 is a fan of 101 for every $x \in \mathbb{Z}$. If we substitute $x=t^{67}$, then $x^{3}=t^{201} \equiv t \bmod 101$. Since 72 is coprime to 101 , the number $72 x^{3} \equiv 72 t$ can take any residue modulo 101 . Note: In general for $p \not \equiv 1(\bmod 3)$, we have $f(p)=p$ as soon as we have at least one non-zero fan.
101
Yes
Yes
math-word-problem
Number Theory
Let $n \geqslant 1$ be a positive integer. We say that an integer $k$ is a fan of $n$ if $0 \leqslant k \leqslant n-1$ and there exist integers $x, y, z \in \mathbb{Z}$ such that $$ \begin{aligned} x^{2}+y^{2}+z^{2} & \equiv 0 \quad(\bmod n) ; \\ x y z & \equiv k \quad(\bmod n) . \end{aligned} $$ Let $f(n)$ be the number of fans of $n$. Determine $f(2020)$.
Answer: $f(2020)=f(4) \cdot f(5) \cdot f(101)=1 \cdot 1 \cdot 101=101$. To prove our claim we show that $f$ is multiplicative, that is, $f(r s)=f(r) f(s)$ for coprime numbers $r, s \in \mathbb{N}$, and that (i) $f(4)=1$, (ii) $f(5)=1$, (iii) $f(101)=101$. The multiplicative property follows from the Chinese Remainder Theorem. (i) Integers $x, y$ and $z$ satisfy $x^{2}+y^{2}+z^{2} \equiv 0 \bmod 4$ if and only if they are all even. In this case $x y z \equiv 0 \bmod 4$. Hence 0 is the only fan of 4 . (ii) Integers $x, y$ and $z$ satisfy $x^{2}+y^{2}+z^{2} \equiv 0 \bmod 5$ if and only if at least one of them is divisible by 5 . In this case $x y z \equiv 0 \bmod 5$. Hence 5 is the only fan of 5 . (iii) We have $9^{2}+4^{2}+2^{2}=81+16+4=101$. Hence $(9 x)^{2}+(4 x)^{2}+(2 x)^{2}$ is divisible by 101 for every integer $x$. Hence the residue of $9 x \cdot 4 x \cdot 2 x=72 x^{3}$ upon division by 101 is a fan of 101 for every $x \in \mathbb{Z}$. If we substitute $x=t^{67}$, then $x^{3}=t^{201} \equiv t \bmod 101$. Since 72 is coprime to 101 , the number $72 x^{3} \equiv 72 t$ can take any residue modulo 101 . Note: In general for $p \not \equiv 1(\bmod 3)$, we have $f(p)=p$ as soon as we have at least one non-zero fan.
{ "resource_path": "BalticWay/segmented/en-bw20sol.jsonl", "problem_match": "\nProblem 18.", "solution_match": "\nSolution." }
a9a04b05-f7ea-56bf-a764-8e3f107c4659
604,436
Let $\Gamma$ be a circle in the plane and $S$ be a point on $\Gamma$. Mario and Luigi drive around the circle $\Gamma$ with their go-karts. They both start at $S$ at the same time. They both drive for exactly 6 minutes at constant speed counterclockwise around the track. During these 6 minutes, Luigi makes exactly one lap around $\Gamma$ while Mario, who is three times as fast, makes three laps. While Mario and Luigi drive their go-karts, Princess Daisy positions herself such that she is always exactly in the middle of the chord between them. When she reaches a point she has already visited, she marks it with a banana. How many points in the plane, apart from $S$, are marked with a banana by the end of the race?
. Without loss of generality, we assume that $\Gamma$ is the unit circle and $S=(1,0)$. Three points are marked with bananas: (i) After 45 seconds, Luigi has passed through an arc with a subtended angle of $45^{\circ}$ and is at the point $\left(\sqrt{2} / 2, \sqrt{2} / 2\right.$ ), whereas Mario has passed through an arc with a subtended angle of $135^{\circ}$ and is at the point $(-\sqrt{2} / 2, \sqrt{2} / 2)$. Therefore Daisy is at the point $(0, \sqrt{2} / 2)$ after 45 seconds. After 135 seconds, Mario and Luigi's positions are exactly the other way round, so the princess is again at the point $(0, \sqrt{2} / 2)$ and puts a banana there. ## Baltic Way Reykjavík, November 11th - 15th Solutions (ii) Similarly, after 225 seconds and after 315 seconds, Princess Daisy is at the point $(0,-\sqrt{2} / 2)$ and puts a banana there. (iii) After 90 seconds, Luigi is at $(0,1)$ and Mario at $(0,-1)$, so that Daisy is at the origin of the plane. After 270 seconds, Mario and Luigi's positions are exactly the other way round, hence Princess Daisy drops a banana at the point $(0,0)$. We claim that no other point in the plane, apart from these three points and $S$, is marked with a banana. Let $t_{1}$ and $t_{2}$ be two different times when Daisy is at the same place. For $n \in\{1,2\}$ we write Luigis position at time $t_{n}$ as a complex number $z_{n}=\exp \left(i x_{n}\right)$ with $\left.x_{n} \in\right] 0,2 \pi[$. At this time, Mario is located at $z_{i}^{3}$ and Daisy at $\left(z_{i}^{3}+z_{i}\right) / 2$. According to our assumption we have $\left(z_{1}^{3}+z_{1}\right) / 2=\left(z_{2}^{3}+z_{2}\right) / 2$ or, equivalently, $\left(z_{1}-z_{2}\right)\left(z_{1}^{2}+z_{1} z_{2}+z_{2}^{2}+1\right)=0$. We have $z_{1} \neq z_{2}$, so that we must have $z_{1}^{2}+z_{1} z_{2}+z_{2}^{2}=-1$. We proceed with an observation of the structure of $\Gamma$ as a set of complex numbers. Suppose that $z \in \Gamma \backslash\{S\}$. Then $z+1+z^{-1} \in \Gamma$ if and only if $z \in\{i,-1,-i\}$. For a proof of the observation note that $z+1+z^{-1}=z+1+\bar{z}$ is a real number for every $z \in \mathbb{C}$ with norm $|z|=1$. So it lies on the unit circle if and only if it is equal to 1 , in which case the real part of $z$ is equal to 0 , or it is equal to -1 , in which case the real part of $z$ is equal to -1 . We apply the observation to the number $z=z_{1} / z_{2}$, which satisfies the premise since $z+1+\bar{z}=-\overline{z_{1}} \cdot \overline{z_{2}} \in \Gamma$. Therefore, one of the following cases must occur. (i) We have $z= \pm i$, that is, $z_{1}= \pm i z_{2}$. Without loss of generality we may assume $z_{2}=i z_{1}$. It follows that $-1=z_{1}^{2}+z_{1} z_{2}+z_{2}^{2}=i z_{1}^{2}$, so that $z_{1}=\exp (i \pi / 4)$ or $z_{1}=\exp (5 i \pi / 4)$. In the former case $\left(z_{1}, z_{2}\right)=(\exp (i \pi / 4), \exp (3 i \pi / 4))$, which matches case (1) above. In the latter case $\left(z_{1}, z_{2}\right)=(\exp (5 i \pi / 4), \exp (7 i \pi / 4))$, which matches case (2) above. (ii) We have $z=-1$, that is, $z_{2}=-z_{1}$. It follows that $-1=z_{1}^{2}+z_{1} z_{2}+z_{2}^{2}=z_{1}^{2}$, so that $z_{1}=i$ or $z_{1}=-i$. This matches case (3) above. ![](https://cdn.mathpix.com/cropped/2024_04_17_e27e300a283338a2e031g-04.jpg?height=348&width=320&top_left_y=1865&top_left_x=865) Depiction of the path Daisy takes ## Baltic Way Reykjavík, November 11th - 15th Solutions
3
Yes
Yes
math-word-problem
Geometry
Let $\Gamma$ be a circle in the plane and $S$ be a point on $\Gamma$. Mario and Luigi drive around the circle $\Gamma$ with their go-karts. They both start at $S$ at the same time. They both drive for exactly 6 minutes at constant speed counterclockwise around the track. During these 6 minutes, Luigi makes exactly one lap around $\Gamma$ while Mario, who is three times as fast, makes three laps. While Mario and Luigi drive their go-karts, Princess Daisy positions herself such that she is always exactly in the middle of the chord between them. When she reaches a point she has already visited, she marks it with a banana. How many points in the plane, apart from $S$, are marked with a banana by the end of the race?
. Without loss of generality, we assume that $\Gamma$ is the unit circle and $S=(1,0)$. Three points are marked with bananas: (i) After 45 seconds, Luigi has passed through an arc with a subtended angle of $45^{\circ}$ and is at the point $\left(\sqrt{2} / 2, \sqrt{2} / 2\right.$ ), whereas Mario has passed through an arc with a subtended angle of $135^{\circ}$ and is at the point $(-\sqrt{2} / 2, \sqrt{2} / 2)$. Therefore Daisy is at the point $(0, \sqrt{2} / 2)$ after 45 seconds. After 135 seconds, Mario and Luigi's positions are exactly the other way round, so the princess is again at the point $(0, \sqrt{2} / 2)$ and puts a banana there. ## Baltic Way Reykjavík, November 11th - 15th Solutions (ii) Similarly, after 225 seconds and after 315 seconds, Princess Daisy is at the point $(0,-\sqrt{2} / 2)$ and puts a banana there. (iii) After 90 seconds, Luigi is at $(0,1)$ and Mario at $(0,-1)$, so that Daisy is at the origin of the plane. After 270 seconds, Mario and Luigi's positions are exactly the other way round, hence Princess Daisy drops a banana at the point $(0,0)$. We claim that no other point in the plane, apart from these three points and $S$, is marked with a banana. Let $t_{1}$ and $t_{2}$ be two different times when Daisy is at the same place. For $n \in\{1,2\}$ we write Luigis position at time $t_{n}$ as a complex number $z_{n}=\exp \left(i x_{n}\right)$ with $\left.x_{n} \in\right] 0,2 \pi[$. At this time, Mario is located at $z_{i}^{3}$ and Daisy at $\left(z_{i}^{3}+z_{i}\right) / 2$. According to our assumption we have $\left(z_{1}^{3}+z_{1}\right) / 2=\left(z_{2}^{3}+z_{2}\right) / 2$ or, equivalently, $\left(z_{1}-z_{2}\right)\left(z_{1}^{2}+z_{1} z_{2}+z_{2}^{2}+1\right)=0$. We have $z_{1} \neq z_{2}$, so that we must have $z_{1}^{2}+z_{1} z_{2}+z_{2}^{2}=-1$. We proceed with an observation of the structure of $\Gamma$ as a set of complex numbers. Suppose that $z \in \Gamma \backslash\{S\}$. Then $z+1+z^{-1} \in \Gamma$ if and only if $z \in\{i,-1,-i\}$. For a proof of the observation note that $z+1+z^{-1}=z+1+\bar{z}$ is a real number for every $z \in \mathbb{C}$ with norm $|z|=1$. So it lies on the unit circle if and only if it is equal to 1 , in which case the real part of $z$ is equal to 0 , or it is equal to -1 , in which case the real part of $z$ is equal to -1 . We apply the observation to the number $z=z_{1} / z_{2}$, which satisfies the premise since $z+1+\bar{z}=-\overline{z_{1}} \cdot \overline{z_{2}} \in \Gamma$. Therefore, one of the following cases must occur. (i) We have $z= \pm i$, that is, $z_{1}= \pm i z_{2}$. Without loss of generality we may assume $z_{2}=i z_{1}$. It follows that $-1=z_{1}^{2}+z_{1} z_{2}+z_{2}^{2}=i z_{1}^{2}$, so that $z_{1}=\exp (i \pi / 4)$ or $z_{1}=\exp (5 i \pi / 4)$. In the former case $\left(z_{1}, z_{2}\right)=(\exp (i \pi / 4), \exp (3 i \pi / 4))$, which matches case (1) above. In the latter case $\left(z_{1}, z_{2}\right)=(\exp (5 i \pi / 4), \exp (7 i \pi / 4))$, which matches case (2) above. (ii) We have $z=-1$, that is, $z_{2}=-z_{1}$. It follows that $-1=z_{1}^{2}+z_{1} z_{2}+z_{2}^{2}=z_{1}^{2}$, so that $z_{1}=i$ or $z_{1}=-i$. This matches case (3) above. ![](https://cdn.mathpix.com/cropped/2024_04_17_e27e300a283338a2e031g-04.jpg?height=348&width=320&top_left_y=1865&top_left_x=865) Depiction of the path Daisy takes ## Baltic Way Reykjavík, November 11th - 15th Solutions
{ "resource_path": "BalticWay/segmented/en-bw21sol.jsonl", "problem_match": "\nProblem 4.", "solution_match": "\nSolution 1" }
81f8611c-56d5-5f18-81b6-e1aea3534637
604,547
Distinct positive integers $a, b, c, d$ satisfy $$ \left\{\begin{array}{l} a \mid b^{2}+c^{2}+d^{2}, \\ b \mid a^{2}+c^{2}+d^{2}, \\ c \mid a^{2}+b^{2}+d^{2}, \\ d \mid a^{2}+b^{2}+c^{2}, \end{array}\right. $$ and none of them is larger than the product of the three others. What is the largest possible number of primes among them?
At first we note that the given condition is equivalent to $a, b, c, d \mid a^{2}+b^{2}+c^{2}+d^{2}$. It is possible that three of the given numbers are primes, for example for $a=2, b=3, c=13$ and $d=26$. In this case $2^{2}+3^{2}+13^{2}+26^{2}=13 \cdot 66$ which is divisible by all four given numbers. Furthermore we will show that it is impossible that all four of them are primes. Let us assume that $a, b, c$ and $d$ are primes. As the sum $a^{2}+b^{2}+c^{2}+d^{2}$ is divisible by each of them then it is divisible also by their product $a b c d$. If one of the primes is equal to 2 , then we obtain a contradiction: the sum of four squares is odd, but its divisor $a b c d$ is even. Therefore all four primes are odd, and $a^{2}+b^{2}+c^{2}+d^{2}=0(\bmod 4)$. Hence $a^{2}+b^{2}+c^{2}+d^{2}$ is divisible by $4 a b c d$ which leads to a contradiction as it is easy to see that $a^{2}+b^{2}+c^{2}+d^{2}<4 a b c d$. Indeed, this is equivalent to $$ \frac{a}{b c d}+\frac{b}{a c d}+\frac{c}{a b d}+\frac{d}{a b c}<4 $$ which is true as none of the numbers exceed the product of three three other and equality can hold only for the largest of the four.
3
Yes
Yes
math-word-problem
Number Theory
Distinct positive integers $a, b, c, d$ satisfy $$ \left\{\begin{array}{l} a \mid b^{2}+c^{2}+d^{2}, \\ b \mid a^{2}+c^{2}+d^{2}, \\ c \mid a^{2}+b^{2}+d^{2}, \\ d \mid a^{2}+b^{2}+c^{2}, \end{array}\right. $$ and none of them is larger than the product of the three others. What is the largest possible number of primes among them?
At first we note that the given condition is equivalent to $a, b, c, d \mid a^{2}+b^{2}+c^{2}+d^{2}$. It is possible that three of the given numbers are primes, for example for $a=2, b=3, c=13$ and $d=26$. In this case $2^{2}+3^{2}+13^{2}+26^{2}=13 \cdot 66$ which is divisible by all four given numbers. Furthermore we will show that it is impossible that all four of them are primes. Let us assume that $a, b, c$ and $d$ are primes. As the sum $a^{2}+b^{2}+c^{2}+d^{2}$ is divisible by each of them then it is divisible also by their product $a b c d$. If one of the primes is equal to 2 , then we obtain a contradiction: the sum of four squares is odd, but its divisor $a b c d$ is even. Therefore all four primes are odd, and $a^{2}+b^{2}+c^{2}+d^{2}=0(\bmod 4)$. Hence $a^{2}+b^{2}+c^{2}+d^{2}$ is divisible by $4 a b c d$ which leads to a contradiction as it is easy to see that $a^{2}+b^{2}+c^{2}+d^{2}<4 a b c d$. Indeed, this is equivalent to $$ \frac{a}{b c d}+\frac{b}{a c d}+\frac{c}{a b d}+\frac{d}{a b c}<4 $$ which is true as none of the numbers exceed the product of three three other and equality can hold only for the largest of the four.
{ "resource_path": "BalticWay/segmented/en-bw21sol.jsonl", "problem_match": "\nProblem 17.", "solution_match": "\nSolution." }
5b169c2f-8d14-5eaa-bce7-bab9937eee2d
604,759
Find the largest real number $\alpha$ such that, for all non-negative real numbers $x, y$ and $z$, the following inequality holds: $$ (x+y+z)^{3}+\alpha\left(x^{2} z+y^{2} x+z^{2} y\right) \geq \alpha\left(x^{2} y+y^{2} z+z^{2} x\right) . $$
Without loss of generality, $x$ is the largest amongst the three variables. By moving $\alpha\left(x^{2} z+y^{2} x+z^{2} y\right)$ to the right-hand side and factoring, we get the equivalent inequality $$ (x+y+z)^{3} \geq \alpha(x-y)(x-z)(y-z) $$ If $z>y$, then the right-hand side is non-positive, so we can assume $x \geq y \geq z$. Note that $$ \begin{aligned} x+y+z & \geq x+y-2 z \\ & =\frac{1}{\sqrt{3}}(x-y)+\left(1-\frac{1}{\sqrt{3}}\right)(x-z)+\left(1+\frac{1}{\sqrt{3}}\right)(y-z) \\ & \geq 3 \sqrt[3]{\frac{2}{3 \sqrt{3}}(x-y)(x-z)(y-z)} . \end{aligned} $$ Cubing both sides gives $(x+y+z)^{3} \geq 6 \sqrt{3}(x-y)(x-z)(y-z)$. The equality holds when $z=0$ and $x=y(2+\sqrt{3})$. So $\alpha=6 \sqrt{3}$.
6 \sqrt{3}
Yes
Yes
math-word-problem
Inequalities
Find the largest real number $\alpha$ such that, for all non-negative real numbers $x, y$ and $z$, the following inequality holds: $$ (x+y+z)^{3}+\alpha\left(x^{2} z+y^{2} x+z^{2} y\right) \geq \alpha\left(x^{2} y+y^{2} z+z^{2} x\right) . $$ Answer: $6 \sqrt{3}$.
Without loss of generality, $x$ is the largest amongst the three variables. By moving $\alpha\left(x^{2} z+y^{2} x+z^{2} y\right)$ to the right-hand side and factoring, we get the equivalent inequality $$ (x+y+z)^{3} \geq \alpha(x-y)(x-z)(y-z) $$ If $z>y$, then the right-hand side is non-positive, so we can assume $x \geq y \geq z$. Note that $$ \begin{aligned} x+y+z & \geq x+y-2 z \\ & =\frac{1}{\sqrt{3}}(x-y)+\left(1-\frac{1}{\sqrt{3}}\right)(x-z)+\left(1+\frac{1}{\sqrt{3}}\right)(y-z) \\ & \geq 3 \sqrt[3]{\frac{2}{3 \sqrt{3}}(x-y)(x-z)(y-z)} . \end{aligned} $$ Cubing both sides gives $(x+y+z)^{3} \geq 6 \sqrt{3}(x-y)(x-z)(y-z)$. The equality holds when $z=0$ and $x=y(2+\sqrt{3})$. So $\alpha=6 \sqrt{3}$.
{ "resource_path": "BalticWay/segmented/en-bw24sol.jsonl", "problem_match": "\n4.", "solution_match": "\nSolution:" }
61bf3264-277b-5d26-8ea1-ca801410e131
605,091
Integers $1,2, \ldots, n$ are written (in some order) on the circumference of a circle. What is the smallest possible sum of moduli of the differences of neighbouring numbers?
Let $a_{1}=1, a_{2}, \ldots, a_{k}=n, a_{k+1}, \ldots, a_{n}$ be the order in which the numbers $1,2, \ldots, n$ are written around the circle. Then the sum of moduli of the differences of neighbouring numbers is $$ \begin{aligned} & \left|1-a_{2}\right|+\left|a_{2}-a_{3}\right|+\cdots+\left|a_{k}-n\right|+\left|n-a_{k+1}\right|+\cdots+\left|a_{n}-1\right| \\ & \geq\left|1-a_{2}+a_{2}-a_{3}+\cdots+a_{k}-n\right|+\left|n-a_{k+1}+\cdots+a_{n}-1\right| \\ & =|1-n|+|n-1|=2 n-2 . \end{aligned} $$ This minimum is achieved if the numbers are written around the circle in increasing order.
2n-2
Yes
Yes
math-word-problem
Combinatorics
Integers $1,2, \ldots, n$ are written (in some order) on the circumference of a circle. What is the smallest possible sum of moduli of the differences of neighbouring numbers?
Let $a_{1}=1, a_{2}, \ldots, a_{k}=n, a_{k+1}, \ldots, a_{n}$ be the order in which the numbers $1,2, \ldots, n$ are written around the circle. Then the sum of moduli of the differences of neighbouring numbers is $$ \begin{aligned} & \left|1-a_{2}\right|+\left|a_{2}-a_{3}\right|+\cdots+\left|a_{k}-n\right|+\left|n-a_{k+1}\right|+\cdots+\left|a_{n}-1\right| \\ & \geq\left|1-a_{2}+a_{2}-a_{3}+\cdots+a_{k}-n\right|+\left|n-a_{k+1}+\cdots+a_{n}-1\right| \\ & =|1-n|+|n-1|=2 n-2 . \end{aligned} $$ This minimum is achieved if the numbers are written around the circle in increasing order.
{ "resource_path": "BalticWay/segmented/en-bw90sol.jsonl", "problem_match": "\n1.", "solution_match": "\nSolution." }
43e6eb89-60d6-5f58-99d7-414025b7c275
236,941
Let $*$ denote an operation, assigning a real number $a * b$ to each pair of real numbers ( $a, b)$ (e.g., $a * b=$ $a+b^{2}-17$ ). Devise an equation which is true (for all possible values of variables) provided the operation $*$ is commutative or associative and which can be false otherwise.
A suitable equation is $x *(x * x)=(x * x) * x$ which is obviously true if $*$ is any commutative or associative operation but does not hold in general, e.g., $1-(1-1) \neq(1-1)-1$.
1-(1-1) \neq (1-1)-1
Yes
Yes
math-word-problem
Algebra
Let $*$ denote an operation, assigning a real number $a * b$ to each pair of real numbers ( $a, b)$ (e.g., $a * b=$ $a+b^{2}-17$ ). Devise an equation which is true (for all possible values of variables) provided the operation $*$ is commutative or associative and which can be false otherwise.
A suitable equation is $x *(x * x)=(x * x) * x$ which is obviously true if $*$ is any commutative or associative operation but does not hold in general, e.g., $1-(1-1) \neq(1-1)-1$.
{ "resource_path": "BalticWay/segmented/en-bw90sol.jsonl", "problem_match": "\n5.", "solution_match": "\nSolution." }
30effa01-b29d-5ea3-955f-9284458ab5d6
236,980
What is the largest possible number of subsets of the set $\{1,2, \ldots, 2 n+1\}$ such that the intersection of any two subsets consists of one or several consecutive integers?
Consider any subsets $A_{1}, \ldots, A_{s}$ satisfying the condition of the problem and let $A_{i}=$ $\left\{a_{i 1}, \ldots, a_{i, k_{i}}\right\}$ where $a_{i 1}<\cdots<a_{i, k_{i}}$. Replacing each $A_{i}$ by $A_{i}^{\prime}=\left\{a_{i 1}, a_{i 1}+1, \ldots, a_{i, k_{i}}-1, a_{i, k_{i}}\right\}$ (i.e., adding to it all "missing" numbers) yields a collection of different subsets $A_{1}^{\prime}, \ldots, A_{s}^{\prime}$ which also satisfies the required condition. Now, let $b_{i}$ and $c_{i}$ be the smallest and largest elements of the subset $A_{i}^{\prime}$, respectively. Then $\min _{1 \leq i \leq s} c_{i} \geq \max _{1 \leq i \leq s} b_{i}$, as otherwise some subsets $A_{k}^{\prime}$ and $A_{l}^{\prime}$ would not intersect. Hence there exists an element $a \in \bigcap_{1<i<s} A_{i}^{\prime}$. As the number of subsets of the set $\{1,2, \ldots, 2 n+1\}$ containing $a$ and consisting of $k$ consecutive integers does not exceed $\min (k, 2 n+2-k)$ we have $s \leq(n+1)+2 \cdot(1+2+\cdots+n)=(n+1)^{2}$. This maximum will be reached if we take $a=n+1$.
(n+1)^2
Yes
Yes
math-word-problem
Combinatorics
What is the largest possible number of subsets of the set $\{1,2, \ldots, 2 n+1\}$ such that the intersection of any two subsets consists of one or several consecutive integers?
Consider any subsets $A_{1}, \ldots, A_{s}$ satisfying the condition of the problem and let $A_{i}=$ $\left\{a_{i 1}, \ldots, a_{i, k_{i}}\right\}$ where $a_{i 1}<\cdots<a_{i, k_{i}}$. Replacing each $A_{i}$ by $A_{i}^{\prime}=\left\{a_{i 1}, a_{i 1}+1, \ldots, a_{i, k_{i}}-1, a_{i, k_{i}}\right\}$ (i.e., adding to it all "missing" numbers) yields a collection of different subsets $A_{1}^{\prime}, \ldots, A_{s}^{\prime}$ which also satisfies the required condition. Now, let $b_{i}$ and $c_{i}$ be the smallest and largest elements of the subset $A_{i}^{\prime}$, respectively. Then $\min _{1 \leq i \leq s} c_{i} \geq \max _{1 \leq i \leq s} b_{i}$, as otherwise some subsets $A_{k}^{\prime}$ and $A_{l}^{\prime}$ would not intersect. Hence there exists an element $a \in \bigcap_{1<i<s} A_{i}^{\prime}$. As the number of subsets of the set $\{1,2, \ldots, 2 n+1\}$ containing $a$ and consisting of $k$ consecutive integers does not exceed $\min (k, 2 n+2-k)$ we have $s \leq(n+1)+2 \cdot(1+2+\cdots+n)=(n+1)^{2}$. This maximum will be reached if we take $a=n+1$.
{ "resource_path": "BalticWay/segmented/en-bw90sol.jsonl", "problem_match": "\n19.", "solution_match": "\nSolution." }
989d79af-ba2f-5762-83aa-f9a84225b26d
237,129
Find the smallest positive integer $n$ having the property: for any set of $n$ distinct integers $a_{1}, a_{2}, \ldots, a_{n}$ the product of all differences $a_{i}-a_{j}, i<j$ is divisible by 1991 .
Let $S=\prod_{1 \leq i<j \leq n}\left(a_{i}-a_{j}\right)$. Note that $1991=11 \cdot 181$. Therefore $S$ is divisible by 1991 if and only if it is divisible by both 11 and 181 . If $n \leq 181$ then we can take the numbers $a_{1}, \ldots, a_{n}$ from distinct congruence classes modulo 181 so that $S$ will not be divisible by 181 . On the other hand, if $n \geq 182$ then according to the pigeonhole principle there always exist $a_{i}$ and $a_{j}$ such that $a_{i}-a_{j}$ is divisible by 181 (and of course there exist $a_{k}$ and $a_{l}$ such that $a_{k}-a_{l}$ is divisible by 11).
182
Yes
Yes
math-word-problem
Number Theory
Find the smallest positive integer $n$ having the property: for any set of $n$ distinct integers $a_{1}, a_{2}, \ldots, a_{n}$ the product of all differences $a_{i}-a_{j}, i<j$ is divisible by 1991 .
Let $S=\prod_{1 \leq i<j \leq n}\left(a_{i}-a_{j}\right)$. Note that $1991=11 \cdot 181$. Therefore $S$ is divisible by 1991 if and only if it is divisible by both 11 and 181 . If $n \leq 181$ then we can take the numbers $a_{1}, \ldots, a_{n}$ from distinct congruence classes modulo 181 so that $S$ will not be divisible by 181 . On the other hand, if $n \geq 182$ then according to the pigeonhole principle there always exist $a_{i}$ and $a_{j}$ such that $a_{i}-a_{j}$ is divisible by 181 (and of course there exist $a_{k}$ and $a_{l}$ such that $a_{k}-a_{l}$ is divisible by 11).
{ "resource_path": "BalticWay/segmented/en-bw91sol.jsonl", "problem_match": "\n1.", "solution_match": "\nSolution." }
bfd86f21-46d1-5d9a-b6fd-6d2761f23b34
605,632
Let $[x]$ be the integer part of a number $x$, and $\{x\}=x-[x]$. Solve the equation $$ [x] \cdot\{x\}=1991 x . $$
Let $f(x)=[x] \cdot\{x\}$. Then we have to solve the equation $f(x)=1991 x$. Obviously, $x=0$ is a solution. For any $x>0$ we have $0 \leq[x] \leq x$ and $0 \leq\{x\}<1$ which imply $f(x)<x<1991 x$. For $x \leq-1$ we have $0>[x]>x-1$ and $0 \leq\{x\}<1$ which imply $f(x)>x-1>1991 x$. Finally, if $-1<x<0$, then $[x]=-1,\{x\}=x-[x]=x+1$ and $f(x)=-x-1$. The only solution of the equation $-x-1=1991 x$ is $x=-\frac{1}{1992}$.
-\frac{1}{1992}
Yes
Yes
math-word-problem
Number Theory
Let $[x]$ be the integer part of a number $x$, and $\{x\}=x-[x]$. Solve the equation $$ [x] \cdot\{x\}=1991 x . $$
Let $f(x)=[x] \cdot\{x\}$. Then we have to solve the equation $f(x)=1991 x$. Obviously, $x=0$ is a solution. For any $x>0$ we have $0 \leq[x] \leq x$ and $0 \leq\{x\}<1$ which imply $f(x)<x<1991 x$. For $x \leq-1$ we have $0>[x]>x-1$ and $0 \leq\{x\}<1$ which imply $f(x)>x-1>1991 x$. Finally, if $-1<x<0$, then $[x]=-1,\{x\}=x-[x]=x+1$ and $f(x)=-x-1$. The only solution of the equation $-x-1=1991 x$ is $x=-\frac{1}{1992}$.
{ "resource_path": "BalticWay/segmented/en-bw91sol.jsonl", "problem_match": "\n6.", "solution_match": "\nSolution." }
b1907c7f-2de3-5f32-a708-47a2750ee4d3
605,712
Let $a=\sqrt[1992]{1992}$. Which number is greater: $$ \left.a^{a^{a^{a}}}\right\} 1992 $$ or 1992 ?
The first of these numbers is less than $$ \left.\left.a^{a^{a^{. \cdot}}}\right\}^{1992}=a^{a^{a^{. \cdot}}}\right\}^{1991}=\ldots=1992 . $$
1992
Yes
Yes
math-word-problem
Algebra
Let $a=\sqrt[1992]{1992}$. Which number is greater: $$ \left.a^{a^{a^{a}}}\right\} 1992 $$ or 1992 ?
The first of these numbers is less than $$ \left.\left.a^{a^{a^{. \cdot}}}\right\}^{1992}=a^{a^{a^{. \cdot}}}\right\}^{1991}=\ldots=1992 . $$
{ "resource_path": "BalticWay/segmented/en-bw92sol.jsonl", "problem_match": "\n7.", "solution_match": "\nSolution." }
ffda9ede-db80-5249-a11b-040cd779705e
240,739
Quadrangle $A B C D$ is inscribed in a circle with radius 1 in such a way that one diagonal, $A C$, is a diameter of the circle, while the other diagonal, $B D$, is as long as $A B$. The diagonals intersect in $P$. It is known that the length of $P C$ is $\frac{2}{5}$. How long is the side $C D$ ? ![](https://cdn.mathpix.com/cropped/2024_04_17_31b1db04c15387bffd81g-4.jpg?height=271&width=320&top_left_y=207&top_left_x=594) Figure 1 ![](https://cdn.mathpix.com/cropped/2024_04_17_31b1db04c15387bffd81g-4.jpg?height=252&width=323&top_left_y=228&top_left_x=912) Figure 2 ![](https://cdn.mathpix.com/cropped/2024_04_17_31b1db04c15387bffd81g-4.jpg?height=271&width=234&top_left_y=224&top_left_x=1299) Figure 3
Let $\angle A C D=2 \alpha$ (see Figure 1). Then $\angle C A D=\frac{\pi}{2}-2 \alpha, \angle A B D=2 \alpha, \angle A D B=\frac{\pi}{2}-\alpha$ and $\angle C D B=\alpha$. The sine theorem applied to triangles $D C P$ and $D A P$ yields $$ \frac{|D P|}{\sin 2 \alpha}=\frac{2}{5 \sin \alpha} $$ and $$ \frac{|D P|}{\sin \left(\frac{\pi}{2}-2 \alpha\right)}=\frac{8}{5 \sin \left(\frac{\pi}{2}-\alpha\right)} $$ Combining these equalities we have $$ \frac{2 \sin 2 \alpha}{5 \sin \alpha}=\frac{8 \cos 2 \alpha}{5 \cos \alpha} $$ which gives $4 \sin \alpha \cos ^{2} \alpha=8 \cos 2 \alpha \sin \alpha$ and $\cos 2 \alpha+1=4 \cos 2 \alpha$. So we get $\cos 2 \alpha=\frac{1}{3}$ and $|C D|=$ $2 \cos 2 \alpha=\frac{2}{3}$.
\frac{2}{3}
Yes
Yes
math-word-problem
Geometry
Quadrangle $A B C D$ is inscribed in a circle with radius 1 in such a way that one diagonal, $A C$, is a diameter of the circle, while the other diagonal, $B D$, is as long as $A B$. The diagonals intersect in $P$. It is known that the length of $P C$ is $\frac{2}{5}$. How long is the side $C D$ ? ![](https://cdn.mathpix.com/cropped/2024_04_17_31b1db04c15387bffd81g-4.jpg?height=271&width=320&top_left_y=207&top_left_x=594) Figure 1 ![](https://cdn.mathpix.com/cropped/2024_04_17_31b1db04c15387bffd81g-4.jpg?height=252&width=323&top_left_y=228&top_left_x=912) Figure 2 ![](https://cdn.mathpix.com/cropped/2024_04_17_31b1db04c15387bffd81g-4.jpg?height=271&width=234&top_left_y=224&top_left_x=1299) Figure 3
Let $\angle A C D=2 \alpha$ (see Figure 1). Then $\angle C A D=\frac{\pi}{2}-2 \alpha, \angle A B D=2 \alpha, \angle A D B=\frac{\pi}{2}-\alpha$ and $\angle C D B=\alpha$. The sine theorem applied to triangles $D C P$ and $D A P$ yields $$ \frac{|D P|}{\sin 2 \alpha}=\frac{2}{5 \sin \alpha} $$ and $$ \frac{|D P|}{\sin \left(\frac{\pi}{2}-2 \alpha\right)}=\frac{8}{5 \sin \left(\frac{\pi}{2}-\alpha\right)} $$ Combining these equalities we have $$ \frac{2 \sin 2 \alpha}{5 \sin \alpha}=\frac{8 \cos 2 \alpha}{5 \cos \alpha} $$ which gives $4 \sin \alpha \cos ^{2} \alpha=8 \cos 2 \alpha \sin \alpha$ and $\cos 2 \alpha+1=4 \cos 2 \alpha$. So we get $\cos 2 \alpha=\frac{1}{3}$ and $|C D|=$ $2 \cos 2 \alpha=\frac{2}{3}$.
{ "resource_path": "BalticWay/segmented/en-bw92sol.jsonl", "problem_match": "\n17.", "solution_match": "\nSolution." }
8e167f27-87d2-5d38-b355-b7648e347d34
240,835
Let's call a positive integer "interesting" if it is a product of two (distinct or equal) prime numbers. What is the greatest number of consecutive positive integers all of which are "interesting"?
The three consecutive numbers $33=3 \cdot 11,34=2 \cdot 17$ and $35=5 \cdot 7$ are all "interesting". On the other hand, among any four consecutive numbers there is one of the form $4 k$ which is "interesting" only if $k=1$. But then we have either 3 or 5 among the four numbers, neither of which is "interesting".
3
Yes
Yes
math-word-problem
Number Theory
Let's call a positive integer "interesting" if it is a product of two (distinct or equal) prime numbers. What is the greatest number of consecutive positive integers all of which are "interesting"?
The three consecutive numbers $33=3 \cdot 11,34=2 \cdot 17$ and $35=5 \cdot 7$ are all "interesting". On the other hand, among any four consecutive numbers there is one of the form $4 k$ which is "interesting" only if $k=1$. But then we have either 3 or 5 among the four numbers, neither of which is "interesting".
{ "resource_path": "BalticWay/segmented/en-bw93sol.jsonl", "problem_match": "\n3.", "solution_match": "\nSolution." }
47fc6f4d-546e-5939-a01f-1c62c119bf94
240,510
Compute the sum of all positive integers whose digits form either a strictly increasing or a strictly decreasing sequence.
Denote by $I$ and $D$ the sets of all positive integers with strictly increasing (respectively, decreasing) sequence of digits. Let $D_{0}, D_{1}, D_{2}$ and $D_{3}$ be the subsets of $D$ consisting of all numbers starting with 9 , not starting with 9 , ending in 0 and not ending in 0 , respectively. Let $S(A)$ denote the sum of all numbers belonging to a set $A$. All numbers in $I$ are obtained from the number 123456789 by deleting some of its digits. Thus, for any $k=0,1, \ldots, 9$ there are $\left(\begin{array}{l}9 \\ k\end{array}\right) k$-digit numbers in $I$ (here we consider 0 a 0 -digit number). Every $k$-digit number $a \in I$ can be associated with a unique number $b_{0} \in D_{0}, b_{1} \in D_{1}$ and $b_{3} \in D_{3}$ such that $$ \begin{aligned} & a+b_{0}=999 \ldots 9=10^{k+1}-1 \\ & a+b_{1}=99 \ldots 9=10^{k}-1 \\ & a+b_{3}=111 \ldots 10=\frac{10}{9}\left(10^{k}-1\right) \end{aligned} $$ Hence we have $$ \begin{aligned} & S(I)+S\left(D_{0}\right)=\sum_{k=0}^{9}\left(\begin{array}{l} 9 \\ k \end{array}\right)\left(10^{k+1}-1\right)=10 \cdot 11^{9}-2^{9} \\ & S(I)+S\left(D_{1}\right)=\sum_{k=0}^{9}\left(\begin{array}{l} 9 \\ k \end{array}\right)\left(10^{k}-1\right)=11^{9}-2^{9} \\ & S(I)+S\left(D_{3}\right)=\frac{10}{9}\left(11^{9}-2^{9}\right) \end{aligned} $$ Noting that $S\left(D_{0}\right)+S\left(D_{1}\right)=S\left(D_{2}\right)+S\left(D_{3}\right)=S(D)$ and $S\left(D_{2}\right)=10 S\left(D_{3}\right)$ we obtain the system of equations $$ \left\{\begin{aligned} 2 S(I)+S(D) & =11^{10}-2^{10} \\ S(I)+\frac{1}{11} S(D) & =\frac{10}{9}\left(11^{9}-2^{9}\right) \end{aligned}\right. $$ which yields $$ S(I)+S(D)=\frac{80}{81} \cdot 11^{10}-\frac{35}{81} \cdot 2^{10} . $$ This sum contains all one-digit numbers twice, so the final answer is $$ \frac{80}{81} \cdot 11^{10}-\frac{35}{81} \cdot 2^{10}-45=25617208995 $$
25617208995
Yes
Yes
math-word-problem
Number Theory
Compute the sum of all positive integers whose digits form either a strictly increasing or a strictly decreasing sequence.
Denote by $I$ and $D$ the sets of all positive integers with strictly increasing (respectively, decreasing) sequence of digits. Let $D_{0}, D_{1}, D_{2}$ and $D_{3}$ be the subsets of $D$ consisting of all numbers starting with 9 , not starting with 9 , ending in 0 and not ending in 0 , respectively. Let $S(A)$ denote the sum of all numbers belonging to a set $A$. All numbers in $I$ are obtained from the number 123456789 by deleting some of its digits. Thus, for any $k=0,1, \ldots, 9$ there are $\left(\begin{array}{l}9 \\ k\end{array}\right) k$-digit numbers in $I$ (here we consider 0 a 0 -digit number). Every $k$-digit number $a \in I$ can be associated with a unique number $b_{0} \in D_{0}, b_{1} \in D_{1}$ and $b_{3} \in D_{3}$ such that $$ \begin{aligned} & a+b_{0}=999 \ldots 9=10^{k+1}-1 \\ & a+b_{1}=99 \ldots 9=10^{k}-1 \\ & a+b_{3}=111 \ldots 10=\frac{10}{9}\left(10^{k}-1\right) \end{aligned} $$ Hence we have $$ \begin{aligned} & S(I)+S\left(D_{0}\right)=\sum_{k=0}^{9}\left(\begin{array}{l} 9 \\ k \end{array}\right)\left(10^{k+1}-1\right)=10 \cdot 11^{9}-2^{9} \\ & S(I)+S\left(D_{1}\right)=\sum_{k=0}^{9}\left(\begin{array}{l} 9 \\ k \end{array}\right)\left(10^{k}-1\right)=11^{9}-2^{9} \\ & S(I)+S\left(D_{3}\right)=\frac{10}{9}\left(11^{9}-2^{9}\right) \end{aligned} $$ Noting that $S\left(D_{0}\right)+S\left(D_{1}\right)=S\left(D_{2}\right)+S\left(D_{3}\right)=S(D)$ and $S\left(D_{2}\right)=10 S\left(D_{3}\right)$ we obtain the system of equations $$ \left\{\begin{aligned} 2 S(I)+S(D) & =11^{10}-2^{10} \\ S(I)+\frac{1}{11} S(D) & =\frac{10}{9}\left(11^{9}-2^{9}\right) \end{aligned}\right. $$ which yields $$ S(I)+S(D)=\frac{80}{81} \cdot 11^{10}-\frac{35}{81} \cdot 2^{10} . $$ This sum contains all one-digit numbers twice, so the final answer is $$ \frac{80}{81} \cdot 11^{10}-\frac{35}{81} \cdot 2^{10}-45=25617208995 $$
{ "resource_path": "BalticWay/segmented/en-bw93sol.jsonl", "problem_match": "\n8.", "solution_match": "\nSolution." }
47b65161-a2a6-565c-9a0c-431b79a6f950
240,555
There are 13 cities in a certain kingdom. Between some pairs of cities two-way direct bus, train or plane connections are established. What is the least possible number of connections to be established in order that choosing any two means of transportation one can go from any city to any other without using the third kind of vehicle?
An example for 18 connections is shown in Figure 1 (where single, double and dashed lines denote the three different kinds of transportation). On the other hand, a connected graph with 13 vertices has at least 12 edges, so the total number of connections for any two kinds of vehicle is at least 12 . Thus, twice the total number of all connections is at least $12+12+12=36$. ![](https://cdn.mathpix.com/cropped/2024_04_17_38aae83e469137ba6b44g-3.jpg?height=337&width=357&top_left_y=1693&top_left_x=632) Figure 1 ![](https://cdn.mathpix.com/cropped/2024_04_17_38aae83e469137ba6b44g-3.jpg?height=294&width=303&top_left_y=1732&top_left_x=1205) Figure 2
18
Yes
Yes
math-word-problem
Combinatorics
There are 13 cities in a certain kingdom. Between some pairs of cities two-way direct bus, train or plane connections are established. What is the least possible number of connections to be established in order that choosing any two means of transportation one can go from any city to any other without using the third kind of vehicle?
An example for 18 connections is shown in Figure 1 (where single, double and dashed lines denote the three different kinds of transportation). On the other hand, a connected graph with 13 vertices has at least 12 edges, so the total number of connections for any two kinds of vehicle is at least 12 . Thus, twice the total number of all connections is at least $12+12+12=36$. ![](https://cdn.mathpix.com/cropped/2024_04_17_38aae83e469137ba6b44g-3.jpg?height=337&width=357&top_left_y=1693&top_left_x=632) Figure 1 ![](https://cdn.mathpix.com/cropped/2024_04_17_38aae83e469137ba6b44g-3.jpg?height=294&width=303&top_left_y=1732&top_left_x=1205) Figure 2
{ "resource_path": "BalticWay/segmented/en-bw93sol.jsonl", "problem_match": "\n12.", "solution_match": "\nSolution." }
295114c1-416e-59e1-8fd6-af4b4839e2d0
606,334
An equilateral triangle $A B C$ is divided into 100 congruent equilateral triangles. What is the greatest number of vertices of small triangles that can be chosen so that no two of them lie on a line that is parallel to any of the sides of the triangle $A B C$ ?
An example for 7 vertices is shown in Figure 2. Now assume we have chosen 8 vertices satisfying the conditions of the problem. Let the height of each small triangle be equal to 1 and denote by $a_{i}, b_{i}, c_{i}$ the distance of the $i$ th point from the three sides of the big triangle. For any $i=1,2, \ldots, 8$ we then have $a_{i}, b_{i}, c_{i} \geq 0$ and $a_{i}+b_{i}+c_{i}=10$. Thus, $\left(a_{1}+a_{2}+\cdots+a_{8}\right)+\left(b_{1}+b_{2}+\cdots+b_{8}\right)+\left(c_{1}+c_{2}+\cdots+c_{8}\right)=80$. On the other hand, each of the sums in the brackets is not less than $0+1+\cdots+7=28$, but $3 \cdot 28=84>80$, a contradiction.
7
Yes
Yes
math-word-problem
Combinatorics
An equilateral triangle $A B C$ is divided into 100 congruent equilateral triangles. What is the greatest number of vertices of small triangles that can be chosen so that no two of them lie on a line that is parallel to any of the sides of the triangle $A B C$ ?
An example for 7 vertices is shown in Figure 2. Now assume we have chosen 8 vertices satisfying the conditions of the problem. Let the height of each small triangle be equal to 1 and denote by $a_{i}, b_{i}, c_{i}$ the distance of the $i$ th point from the three sides of the big triangle. For any $i=1,2, \ldots, 8$ we then have $a_{i}, b_{i}, c_{i} \geq 0$ and $a_{i}+b_{i}+c_{i}=10$. Thus, $\left(a_{1}+a_{2}+\cdots+a_{8}\right)+\left(b_{1}+b_{2}+\cdots+b_{8}\right)+\left(c_{1}+c_{2}+\cdots+c_{8}\right)=80$. On the other hand, each of the sums in the brackets is not less than $0+1+\cdots+7=28$, but $3 \cdot 28=84>80$, a contradiction.
{ "resource_path": "BalticWay/segmented/en-bw93sol.jsonl", "problem_match": "\n13.", "solution_match": "\nSolution." }
6177ecab-b484-5927-be48-16cabaff60d4
606,340
A square is divided into 16 equal squares, obtaining the set of 25 different vertices. What is the least number of vertices one must remove from this set, so that no 4 points of the remaining set are the vertices of any square with sides parallel to the sides of the initial square? Remark. The proposed solution to this problem claimed that it is enough to remove 7 vertices but the example to demonstrate this appeared to be incorrect. Below we show that removing 6 vertices is not sufficient but removing 8 vertices is. It seems that removing 7 vertices is not sufficient but we currently know no potential way to prove this, apart from a tedious case study.
The example in Figure 3a demonstrates that it suffices to remove 8 vertices to "destroy" all squares. Assume now that we have managed to do that by removing only 6 vertices. Denote the horizontal and vertical lines by $A, B, \ldots, E$ and $1,2, \ldots, 5$ respectively. Obviously, one of the removed vertices must be a vertex of the big square - let this be vertex $A 1$. Then, in order to "destroy" all the squares shown in Figure $3 \mathrm{~b}-\mathrm{e}$ we have to remove vertices $B 2, C 3, D 4, D 2$ and $B 4$. Thus we have removed 6 vertices without having any choice but a square shown in Figure $3 \mathrm{f}$ is still left intact. 12345 ![](https://cdn.mathpix.com/cropped/2024_04_17_38aae83e469137ba6b44g-4.jpg?height=168&width=194&top_left_y=864&top_left_x=588) $\mathrm{a}$ ![](https://cdn.mathpix.com/cropped/2024_04_17_38aae83e469137ba6b44g-4.jpg?height=157&width=143&top_left_y=864&top_left_x=794) $\mathrm{b}$ ![](https://cdn.mathpix.com/cropped/2024_04_17_38aae83e469137ba6b44g-4.jpg?height=154&width=148&top_left_y=868&top_left_x=937) c ![](https://cdn.mathpix.com/cropped/2024_04_17_38aae83e469137ba6b44g-4.jpg?height=154&width=148&top_left_y=868&top_left_x=1091) d ![](https://cdn.mathpix.com/cropped/2024_04_17_38aae83e469137ba6b44g-4.jpg?height=154&width=146&top_left_y=868&top_left_x=1246) e ![](https://cdn.mathpix.com/cropped/2024_04_17_38aae83e469137ba6b44g-4.jpg?height=154&width=149&top_left_y=868&top_left_x=1393) f Figure 3
8
Yes
Yes
math-word-problem
Combinatorics
A square is divided into 16 equal squares, obtaining the set of 25 different vertices. What is the least number of vertices one must remove from this set, so that no 4 points of the remaining set are the vertices of any square with sides parallel to the sides of the initial square? Remark. The proposed solution to this problem claimed that it is enough to remove 7 vertices but the example to demonstrate this appeared to be incorrect. Below we show that removing 6 vertices is not sufficient but removing 8 vertices is. It seems that removing 7 vertices is not sufficient but we currently know no potential way to prove this, apart from a tedious case study.
The example in Figure 3a demonstrates that it suffices to remove 8 vertices to "destroy" all squares. Assume now that we have managed to do that by removing only 6 vertices. Denote the horizontal and vertical lines by $A, B, \ldots, E$ and $1,2, \ldots, 5$ respectively. Obviously, one of the removed vertices must be a vertex of the big square - let this be vertex $A 1$. Then, in order to "destroy" all the squares shown in Figure $3 \mathrm{~b}-\mathrm{e}$ we have to remove vertices $B 2, C 3, D 4, D 2$ and $B 4$. Thus we have removed 6 vertices without having any choice but a square shown in Figure $3 \mathrm{f}$ is still left intact. 12345 ![](https://cdn.mathpix.com/cropped/2024_04_17_38aae83e469137ba6b44g-4.jpg?height=168&width=194&top_left_y=864&top_left_x=588) $\mathrm{a}$ ![](https://cdn.mathpix.com/cropped/2024_04_17_38aae83e469137ba6b44g-4.jpg?height=157&width=143&top_left_y=864&top_left_x=794) $\mathrm{b}$ ![](https://cdn.mathpix.com/cropped/2024_04_17_38aae83e469137ba6b44g-4.jpg?height=154&width=148&top_left_y=868&top_left_x=937) c ![](https://cdn.mathpix.com/cropped/2024_04_17_38aae83e469137ba6b44g-4.jpg?height=154&width=148&top_left_y=868&top_left_x=1091) d ![](https://cdn.mathpix.com/cropped/2024_04_17_38aae83e469137ba6b44g-4.jpg?height=154&width=146&top_left_y=868&top_left_x=1246) e ![](https://cdn.mathpix.com/cropped/2024_04_17_38aae83e469137ba6b44g-4.jpg?height=154&width=149&top_left_y=868&top_left_x=1393) f Figure 3
{ "resource_path": "BalticWay/segmented/en-bw93sol.jsonl", "problem_match": "\n14.", "solution_match": "\nSolution." }
489996d1-8db6-5404-aaf6-72f291f11358
240,619
On each face of two dice some positive integer is written. The two dice are thrown and the numbers on the top faces are added. Determine whether one can select the integers on the faces so that the possible sums are $2,3,4,5,6,7,8,9,10,11,12,13$, all equally likely?
We can write 1, 2, 3, 4, 5, 6 on the sides of one die and 1, 1, 1, 7, 7, 7 on the sides of the other. Then each of the 12 possible sums appears in exactly 3 cases.
3
Yes
Yes
math-word-problem
Combinatorics
On each face of two dice some positive integer is written. The two dice are thrown and the numbers on the top faces are added. Determine whether one can select the integers on the faces so that the possible sums are $2,3,4,5,6,7,8,9,10,11,12,13$, all equally likely?
We can write 1, 2, 3, 4, 5, 6 on the sides of one die and 1, 1, 1, 7, 7, 7 on the sides of the other. Then each of the 12 possible sums appears in exactly 3 cases.
{ "resource_path": "BalticWay/segmented/en-bw93sol.jsonl", "problem_match": "\n15.", "solution_match": "\nSolution." }
034766b8-d7b0-516d-a905-9a007b6390be
240,629
Let $Q$ be a unit cube. We say a tetrahedron is "good" if all its edges are equal and all its vertices lie on the boundary of $Q$. Find all possible volumes of "good" tetrahedra.
Clearly, the volume of a regular tetrahedron contained in a sphere reaches its maximum value if and only if all four vertices of the tetrahedron lie on the surface of the sphere. Therefore, a "good" tetrahedron with maximum volume must have its vertices at the vertices of the cube (for a proof, inscribe the cube in a sphere). There are exactly two such tetrahedra, their volume being equal to $1-4 \cdot \frac{1}{6}=\frac{1}{3}$. On the other hand, one can find arbitrarily small "good" tetrahedra by applying homothety to the maximal tetrahedron, with the centre of the homothety in one of its vertices.
\frac{1}{3}
Yes
Yes
math-word-problem
Geometry
Let $Q$ be a unit cube. We say a tetrahedron is "good" if all its edges are equal and all its vertices lie on the boundary of $Q$. Find all possible volumes of "good" tetrahedra.
Clearly, the volume of a regular tetrahedron contained in a sphere reaches its maximum value if and only if all four vertices of the tetrahedron lie on the surface of the sphere. Therefore, a "good" tetrahedron with maximum volume must have its vertices at the vertices of the cube (for a proof, inscribe the cube in a sphere). There are exactly two such tetrahedra, their volume being equal to $1-4 \cdot \frac{1}{6}=\frac{1}{3}$. On the other hand, one can find arbitrarily small "good" tetrahedra by applying homothety to the maximal tetrahedron, with the centre of the homothety in one of its vertices.
{ "resource_path": "BalticWay/segmented/en-bw93sol.jsonl", "problem_match": "\n20.", "solution_match": "\nSolution." }
6e1a8d6f-832f-5d6f-b26e-14aaa7176f85
240,667