Problem 744: (2004 AIME I, 2)
Set $A$ consists of $m$ consecutive integers whose sum is $2m,$ and set $B$ consists of $2m$ consecutive integers whose sum is $m.$ The absolute value of the difference between the greatest element of $A$ and the greatest element of $B$ is 99. Find $m.$
- $A$ has mean $2$, so its greatest element is $2+\frac{m-1}2$.
- $B$ has mean $\frac12$, so its greatest element is $\frac12+\frac{2m-1}2=m$.
- The difference is $m-2-\frac{m-1}2=\frac{m-3}2=99$, so $m=201$. The answer is $\boxed{201}$.
Set $A$ consists of $m$ consecutive integers whose sum is $4m,$ and set $B$ consists of $2m$ consecutive integers whose sum is $m.$ The absolute value of the difference between the greatest element of $A$ and the greatest element of $B$ is 81. Find $m.$