# 1 Algebra 1. 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. ## Solution. 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}x$. Choosing $y$ so that $x^{2}+y^{2}=\frac{p^{2}}{q^{2}}$, we deduce $$ \frac{p^{2}}{q^{2}}=f\left(\frac{p^{2}}{q^{2}}\right)=f\left(x^{2}+y^{2}\right)=f(x)^{2}+f(y)^{2} \geq f(x)^{2} $$ hence $f(x) \leq \frac{p}{q}$. Next, select a (positive) rational number $\frac{r}{s}<\sqrt{x}$, i.e. $\frac{r^{2}}{s^{2}}p$. Thus $p^{2}=(k+2 m)(k-2 m)$, and since $p$ is prime we get $p^{2}=k+2 m$ and $k-2 m=1$. Hence $k=\frac{p^{2}+1}{2}$ and $$ n=\frac{p+\frac{p^{2}+1}{2}}{2}=\left(\frac{p+1}{2}\right)^{2} $$ is the only possible value of $n$. In this case we have $$ \sqrt{n^{2}-p n}=\sqrt{\left(\frac{p+1}{2}\right)^{4}-p\left(\frac{p+1}{2}\right)^{2}}=\frac{p+1}{2} \sqrt{\left(\frac{p^{2}+1}{2}\right)^{2}-p}=\frac{p+1}{2} \cdot \frac{p-1}{2} . $$ 17. Prove that for any positive integers $p, q$ such that $\sqrt{11}>\frac{p}{q}$, the following inequality holds: $$ \sqrt{11}-\frac{p}{q}>\frac{1}{2 p q} $$ Solution. We can assume that $p$ and $q$ are coprime, and since both sides of first inequality are positive, we can change it to $11 q^{2}>p^{2}$. The same way we can change second inequality: $$ 11 p^{2} q^{2}>p^{4}+p^{2}+\frac{1}{4} $$ To see this one holds, we will prove stronger one: $$ 11 p^{2} q^{2} \geq p^{4}+2 p^{2} \text {. } $$ Indeed, dividing this inequality by $p^{2}$ we get $11 q^{2} \geq p^{2}+2$, and since we already know that $11 q^{2}>p^{2}$ we only have to see, that $11 q^{2}$ can't be equal to $p^{2}+1$. Since we know that the only reminders of squares $(\bmod 11)$ are $0,1,3,4,5$ and $9, p^{2}+1$ can't be divisible by 11 , and therefore $11 q^{2} \neq p^{2}+1$. 18. Let $n \geq 3$ be an integer such that $4 n+1$ is a prime number. Prove that $4 n+1$ divides $n^{2 n}-1$. Solution. Since $p:=4 n+1$ is a prime number, each non-zero remainder modulo $p$ possesses a unique multiplicative inverse. Since $-4 \cdot n \equiv 1 \bmod p$, we have $n \equiv(-4)^{-1} \bmod p$, from which we deduce that $n \equiv-\left(2^{-1}\right)^{2}$. Consequently, $$ n^{2 n}-1 \equiv\left(-\left(2^{-1}\right)^{2}\right)^{2 n}-1 \equiv\left(2^{-1}\right)^{4 n}-1 \equiv 0 \bmod p $$ by Fermat's Little Theorem. 19. An infinite set $B$ consisting of positive integers has the following property. For each $a, b \in B$ with $a>b$ the number $\frac{a-b}{(a, b)}$ belongs to $B$. Prove that $B$ contains all positive integers. Here $(a, b)$ is the greatest common divisor of numbers $a$ and $b$. Solution. If $d$ is g.c.d. of all the numbers in set $B$, let $A=\{b / d: b \in B\}$. Then for each $a, b \in A(a>b)$ we have $$ \frac{a-b}{d(a, b)} \in A $$ Observe that g.c.d of the set $A$ equals 1 , therefore we can find a finite subset $A_{1} \in A$ for which the $\operatorname{gcd} A_{1}=1$. We may think that the sum of elements of $A_{1}$ is minimal possible. Choose numbers $a, b \in A_{1}(a>b)$ and replace $a$ in the set $A_{1}$ with $\frac{a-b}{d(a, b)}$. The g.c.d. of the obtained set equals 1 . But the sum of numbers decreases by this operations that contradicts minimality of $A_{1}$. Thus, $A_{1}=\{1\}$. Therefore all the numbers in the set $A$ have residue 1 modulo $d$. Take an arbitrary $a=k d+1 \in A$ and $b=1$. Then $k \in A$ by $(*)$ and hence $k=d s+1$. But $(k, k d+1)=1$, therefore $\frac{k d+1-d s-1}{d}=k-s=(d-1) s+1 \in A$, so $s$ is divisible by $d$. But $s \in A$, therefore $s-1$ is also divisible by $d$, hence $d=1$ (that means that $B=A$ ). Thus we have checked that if $a=k d+1=k+1 \in A$ then $a-1=k \in A$. Then all non-negative integers belong to $A$ because it is infinite. 20. Find all the triples of positive integers $(a, b, c)$ for which the number $$ \frac{(a+b)^{4}}{c}+\frac{(b+c)^{4}}{a}+\frac{(c+a)^{4}}{b} $$ is an integer and $a+b+c$ is a prime. ## Solution. Answer $(1,1,1),(1,2,2),(2,3,6)$. Let $p=a+b+c$, then $a+b=p-c, b+c=p-a, c+a=p-b$ and $$ \frac{(p-c)^{4}}{c}+\frac{(p-a)^{4}}{a}+\frac{(p-b)^{4}}{b} $$ is a non-negative integer. By expanding brackets we obtain that the number $p^{4}\left(\frac{1}{a}+\frac{1}{b}+\frac{1}{c}\right)$ is integer, too. But the numbers $a, b, c$ are not divisible by $p$, therefore the number $\frac{1}{a}+\frac{1}{b}+\frac{1}{c}$ is (non negative) integer. That is possible for the triples $(1,1,1),(1,2,2),(2,3,6)$ only.