Find the number of ordered quadruples $(x,y,z,w)$ of integers with $0\le x,y,z,w\le 36$ such that ${{x}^{2}}+{{y}^{2}}\equiv {{z}^{3}}+{{w}^{3}}\text{ (mod 37)}$.
1999 Turkey MO (2nd round)
December 3rd - Day 1
Problem-2: Given a circle with center $O$, the two tangent lines from a point $S$ outside the circle touch the circle at points $P$ and $Q$. Line $SO$ intersects the circle at $A$ and $B$, with $B$ closer to $S$. Let $X$ be an interior point of minor arc $PB$, and let line $OS$ intersect lines $QX$ and $PX$ at $C$ and $D$, respectively. Prove that $\frac{1}{\left| AC \right|}+\frac{1}{\left| AD \right|}=\frac{2}{\left| AB \right|}$.
For any two positive integers $n$ and $p$, prove that there are exactly ${{(p+1)}^{n+1}}-{{p}^{n+1}}$ functions $f:\left\{ 1,2,...,n \right\}\to \left\{ -p,-p+1,-p+2,....,p-1,p \right\}$ such that $\left| f(i)-f(j) \right|\le p$ for all $i,j\in \left\{ 1,2,...,n \right\}$.
December 4th - Day 2
Find all sequences ${{a}_{1}},{{a}_{2}},...,{{a}_{2000}}$ of real numbers such that $\sum\limits_{n=1}^{2000}{{{a}_{n}}=1999}$ and such that $\frac{1}{2}<{{a}_{n}}<1$ and ${{a}_{n+1}}={{a}_{n}}(2-{{a}_{n}})$ for all $n\ge 1$.
In an acute triangle $\vartriangle ABC$ with circumradius $R$, altitudes $\overline{AD},\overline{BE},\overline{CF}$ have lengths ${{h}_{1}},{{h}_{2}},{{h}_{3}}$, respectively. If ${{t}_{1}},{{t}_{2}},{{t}_{3}}$ are lengths of the tangents from $A,B,C$, respectively, to the circumcircle of triangle $\vartriangle DEF$, prove that $\sum\limits_{i=1}^{3}{{{\left( \frac{t{}_{i}}{\sqrt{h{}_{i}}} \right)}^{2}}\le }\frac{3}{2}R$.
We wish to find the sum of $40$ given numbers utilizing $40$ processors. Initially, we have the number $0$ on the screen of each processor. Each processor adds the number on its screen with a number entered directly (only the given numbers could be entered directly to the processors) or transferred from another processor in a unit time. Whenever a number is transferred from a processor to another, the former processor resets. Find the least time needed to find the desired sum.