# The $9^{\text {th }}$ Romanian Master of Mathematics Competition Day 1 - Solutions Problem 1. (a) Prove that every positive integer $n$ can be written uniquely in the form $$ n=\sum_{j=1}^{2 k+1}(-1)^{j-1} 2^{m_{j}} $$ where $k \geq 0$ and $0 \leq m_{1}0$, and even if $n \leq 0$. The integer $w(n)=\lfloor\ell / 2\rfloor$ is called the weight of $n$. Existence once proved, uniqueness follows from the fact that there are as many such representations as integers in the range $-2^{M}+1$ through $2^{M}$, namely, $2^{M+1}$. To prove existence, notice that the base case $M=0$ is clear, so let $M \geq 1$ and let $n$ be an integer in the range $-2^{M}+1$ through $2^{M}$. If $-2^{M}+1 \leq n \leq-2^{M-1}$, then $1 \leq n+2^{M} \leq 2^{M-1}$, so $n+2^{M}=\sum_{j=1}^{2 k+1}(-1)^{j-1} 2^{m_{j}}$ for some integers $k \geq 0$ and $0 \leq m_{1}<\cdots3$, then $f_{n}(x) \equiv 0(\bmod n+1)$ for all integers $x$, since $f_{n}(0)=-n!=-1 \cdot 2 \cdot \ldots$. $\frac{n+1}{2} \cdots \cdot n \equiv 0(\bmod n+1)$. Finally, let $P=f_{n}+n X+1$ if $n$ is odd, and let $P=f_{n-1}+n X+1$ if $n$ is even. In either case, $P$ is strictly increasing, hence injective, on the integers, and $P(x) \equiv 1(\bmod n)$ for all integers $x$. Remark. The polynomial $P=f_{n}+n X+1$ works equally well for even $n>2$. To prove injectivity, notice that $P$ is strictly monotone, hence injective, on non-positive (respectively, positive) integers. Suppose, if possible, that $P(a)=P(b)$ for some integers $a \leq 0$ and $b>0$. Notice that $P(a) \geq P(0)=n!+1>n^{2}+1=P(n)$, since $n \geq 4$, to infer that $b \geq n+1$. It is therefore sufficient to show that $P(x)>P(n+1-x)>P(x-1)$ for all integers $x \geq n+1$. The former inequality is trivial, since $f_{n}(x)=f_{n}(n+1-x)$ for even $n$. For the latter, write $$ \begin{aligned} P(n+1-x)-P(x-1) & =(x-1) \cdots(x-n)-(x-2) \cdots(x-n-1)+n(n+2-2 x) \\ & =n((x-2) \cdots(x-n)+(n-2)-2(x-2)) \geq n(n-2)>0, \end{aligned} $$ since $(x-3) \cdots(x-n) \geq 2$. Problem 3. Let $n$ be an integer greater than 1 and let $X$ be an $n$-element set. A non-empty collection of subsets $A_{1}, \ldots, A_{k}$ of $X$ is tight if the union $A_{1} \cup \cdots \cup A_{k}$ is a proper subset of $X$ and no element of $X$ lies in exactly one of the $A_{i}$ s. Find the largest cardinality of a collection of proper non-empty subsets of $X$, no non-empty subcollection of which is tight. Note. A subset $A$ of $X$ is proper if $A \neq X$. The sets in a collection are assumed to be distinct. The whole collection is assumed to be a subcollection. ## Alexander Polyansky, Russia Solution 1. (Ilya Bogdanov) The required maximum is $2 n-2$. To describe a ( $2 n-2$ )-element collection satisfying the required conditions, write $X=\{1,2, \ldots, n\}$ and set $B_{k}=\{1,2, \ldots, k\}$, $k=1,2, \ldots, n-1$, and $B_{k}=\{k-n+2, k-n+3, \ldots, n\}, k=n, n+1, \ldots, 2 n-2$. To show that no subcollection of the $B_{k}$ is tight, consider a subcollection $\mathcal{C}$ whose union $U$ is a proper subset of $X$, let $m$ be an element in $X \backslash U$, and notice that $\mathcal{C}$ is a subcollection of $\left\{B_{1}, \ldots, B_{m-1}, B_{m+n-1}, \ldots, B_{2 n-2}\right\}$, since the other $B$ 's are precisely those containing $m$. If $U$ contains elements less than $m$, let $k$ be the greatest such and notice that $B_{k}$ is the only member of $\mathcal{C}$ containing $k$; and if $U$ contains elements greater than $m$, let $k$ be the least such and notice that $B_{k+n-2}$ is the only member of $\mathcal{C}$ containing $k$. Consequently, $\mathcal{C}$ is not tight. We now proceed to show by induction on $n \geq 2$ that the cardinality of a collection of proper non-empty subsets of $X$, no subcollection of which is tight, does not exceed $2 n-2$. The base case $n=2$ is clear, so let $n>2$ and suppose, if possible, that $\mathcal{B}$ is a collection of $2 n-1$ proper non-empty subsets of $X$ containing no tight subcollection. To begin, notice that $\mathcal{B}$ has an empty intersection: if the members of $\mathcal{B}$ shared an element $x$, then $\mathcal{B}^{\prime}=\{B \backslash\{x\}: B \in \mathcal{B}, B \neq\{x\}\}$ would be a collection of at least $2 n-2$ proper non-empty subsets of $X \backslash\{x\}$ containing no tight subcollection, and the induction hypothesis would be contradicted. Now, for every $x$ in $X$, let $\mathcal{B}_{x}$ be the (non-empty) collection of all members of $\mathcal{B}$ not containing $x$. Since no subcollection of $\mathcal{B}$ is tight, $\mathcal{B}_{x}$ is not tight, and since the union of $\mathcal{B}_{x}$ does not contain $x$, some $x^{\prime}$ in $X$ is covered by a single member of $\mathcal{B}_{x}$. In other words, there is a single set in $\mathcal{B}$ covering $x^{\prime}$ but not $x$. In this case, draw an arrow from $x$ to $x^{\prime}$. Since there is at least one arrow from each $x$ in $X$, some of these arrows form a (minimal) cycle $x_{1} \rightarrow x_{2} \rightarrow \cdots \rightarrow x_{k} \rightarrow x_{k+1}=x_{1}$ for some suitable integer $k \geq 2$. Let $A_{i}$ be the unique member of $\mathcal{B}$ containing $x_{i+1}$ but not $x_{i}$, and let $X^{\prime}=\left\{x_{1}, x_{2}, \ldots, x_{k}\right\}$. Remove $A_{1}, A_{2}, \ldots, A_{k}$ from $\mathcal{B}$ to obtain a collection $\mathcal{B}^{\prime}$ each member of which either contains or is disjoint from $X^{\prime}$ : for if a member $B$ of $\mathcal{B}^{\prime}$ contained some but not all elements of $X^{\prime}$, then $B$ should contain $x_{i+1}$ but not $x_{i}$ for some $i$, and $B=A_{i}$, a contradiction. This rules out the case $k=n$, for otherwise $\mathcal{B}=\left\{A_{1}, A_{2}, \ldots, A_{n}\right\}$, so $|\mathcal{B}|<2 n-1$. To rule out the case $k2$. Firstly, we perform a different modification of $\mathcal{B}$. Choose any $x \in X$, and consider the subcollection $\mathcal{B}_{x}=\{B: B \in \mathcal{B}, x \notin B\}$. By our assumption, $\mathcal{B}_{x}$ is not tight. As the union of sets in $\mathcal{B}_{x}$ is distinct from $X$, either this collection is empty, or there exists an element $y \in X$ contained in a unique member $A_{x}$ of $\mathcal{B}_{x}$. In the former case, we add the set $B_{x}=X \backslash\{x\}$ to $\mathcal{B}$, and in the latter we replace $A_{x}$ by $B_{x}$, to form a new collection $\mathcal{B}^{\prime}$. (Notice that if $B_{x} \in \mathcal{B}$, then $B_{x} \in \mathcal{B}_{x}$ and $y \in B_{x}$, so $B_{x}=A_{x}$.) We claim that the collection $\mathcal{B}^{\prime}$ is also good. Indeed, if $\mathcal{B}^{\prime}$ has a tight subcollection $\mathcal{T}$, then $B_{x}$ should lie in $\mathcal{T}$. Then, as the union of the sets in $\mathcal{T}$ is distinct from $X$, we should have $\mathcal{T} \subseteq \mathcal{B}_{x} \cup\left\{B_{x}\right\}$. But in this case an element $y$ is contained in a unique member of $\mathcal{T}$, namely $B_{x}$, so $\mathcal{T}$ is not tight - a contradiction. Perform this procedure for every $x \in X$, to get a good collection $\mathcal{B}$ containing the sets $B_{x}=X \backslash\{x\}$ for all $x \in X$. Consider now an element $x \in X$ such that $\left|\mathcal{B}_{x}\right|$ is maximal. As we have mentioned before, there exists an element $y \in X$ belonging to a unique member (namely, $B_{x}$ ) of $\mathcal{B}_{x}$. Thus, $\mathcal{B}_{x} \backslash\left\{B_{x}\right\} \subset \mathcal{B}_{y}$; also, $B_{y} \in \mathcal{B}_{y} \backslash \mathcal{B}_{x}$. Thus we get $\left|\mathcal{B}_{y}\right| \geq\left|\mathcal{B}_{x}\right|$, which by the maximality assumption yields the equality, which in turn means that $\mathcal{B}_{y}=\left(\mathcal{B}_{x} \backslash\left\{B_{x}\right\}\right) \cup\left\{B_{y}\right\}$. Therefore, each set in $\mathcal{B} \backslash\left\{B_{x}, B_{y}\right\}$ contains either both $x$ and $y$, or none of them. Collapsing $\{x, y\}$ to singleton $x^{*}$, we get a new collection of $|\mathcal{B}|-2$ subsets of $(X \backslash\{x, y\}) \cup\left\{x^{*}\right\}$ containing no tight subcollection. This contradicts minimality of $n$. Remarks. 1. Removal of the condition that subsets be proper would only increase the maximum by 1. The 'non-emptiness' condition could also be omitted, since the empty set forms a tight collection by itself, but the argument is a bit too formal to be considered. 2. There are many different examples of good collections of $2 n-2$ sets. E.g., applying the algorithm from the first part of Solution 2 to the example shown in Solution 1, one may get the following example: $B_{k}=\{1,2, \ldots, k\}, k=1,2, \ldots, n-1$, and $B_{k}=X \backslash\{k-n+1\}$, $k=n, n+1, \ldots, 2 n-2$.