# The $27^{\text {th }}$ Nordic Mathematical Contest Monday, 8 April 2013 ## Solution Each problem is worth 5 points. PRoblem 1. Let $\left(a_{n}\right)_{n \geq 1}$ be a sequence with $a_{1}=1$ and $$ a_{n+1}=\left\lfloor a_{n}+\sqrt{a_{n}}+\frac{1}{2}\right\rfloor $$ for all $n \geq 1$, where $\lfloor x\rfloor$ denotes the greatest integer less than or equal to $x$. Find all $n \leq 2013$ such that $a_{n}$ is a perfect square. Solution. We will show by induction that $a_{n}=1+\left\lfloor\frac{n}{2}\right\rfloor\left\lfloor\frac{n+1}{2}\right\rfloor$, which is equivalent to $a_{2 m}=1+m^{2}$ and $a_{2 m+1}=1+m(m+1)$. Clearly this is true for $a_{1}$. If $a_{2 m+1}=1+m(m+1)$ then $$ a_{2 m+2}=\left\lfloor m^{2}+m+1+\sqrt{m^{2}+m+1}+\frac{1}{2}\right\rfloor $$ and since $m+\frac{1}{2}<\sqrt{m^{2}+m+1}1$. Therefore $a_{1}=1$ is the only perfect square in the sequence. Problem 2. In a football tournament there are $n$ teams, with $n \geq 4$, and each pair of teams meets exactly once. Suppose that, at the end of the tournament, the final scores form an arithmetic sequence where each team scores 1 more point than the following team on the scoreboard. Determine the maximum possible score of the lowest scoring team, assuming usual scoring for football games (where the winner of a game gets 3 points, the loser 0 points, and if there is a tie both teams get 1 point). Solution. Note that the total number of games equals the number of different pairings, that is, $n(n-1) / 2$. Suppose the lowest scoring team ends with $k$ points. Then the total score for all teams is $$ k+(k+1)+\cdots+(k+n-1)=n k+\frac{(n-1) n}{2} $$ Some games must end in a tie, for otherwise, all team scores would be a multiple of 3 and cannot be 1 point apart. Since the total score of a tie is only 2 points compared to 3 points if one of the teams wins, we therefore know that $$ n k+\frac{(n-1) n}{2}<3 \cdot \frac{n(n-1)}{2} $$ so $n k1$ when $k$ is even, and $q_{k}<1$ when $k \geq 3$ is odd. We will show the following by induction on $t=2,3,4, \ldots$ : Claim: Every rational number $r / s$ where $r$, s are positive integers with $\operatorname{gcd}(r, s)=$ 1 and $r+s \leq t$ occurs precisely once among the numbers $q_{k}$. The claim is clearly true for $t=2$, since then $r / s=1 / 1=1$ is the only possibility, and $q_{1}$ is the only occurrence of 1 in the sequence. Now, assume that $u \geq 3$ and that the claim holds for $t=u-1$. Let $r$ and $s$ be positive integers with $\operatorname{gcd}(r, s)=1$ and $r+s=u$. First, assume that $r>s$. We know that $r / s=q_{m}$ is only possible if $m$ is even. But $$ \frac{r}{s}=q_{2 k} \Leftrightarrow \frac{r-s}{s}=q_{k} $$ by (1), and moreover, the latter equality holds for precisely one $k$ according to the induction hypothesis, since $\operatorname{gcd}(r-s, s)=1$ and $(r-s)+s=r \leq t$. Next, assume that $r