Problem 573: (2010 AIME II, 3)
Let $K$ be the product of all factors $(b-a)$ (not necessarily distinct) where $a$ and $b$ are integers satisfying $1\le a < b \le 20$. Find the greatest positive integer $n$ such that $2^n$ divides $K$.
- The difference $d=b-a$ occurs for $20-d$ pairs, $d=1,\dots,19$. So $n=\sum_{d=1}^{19}v_2(d)\,(20-d)$, where $v_2(d)$ is the exponent of $2$ in $d$.
- Count each factor $2$ separately: $n=\sum_{2\mid d}(20-d)+\sum_{4\mid d}(20-d)+\sum_{8\mid d}(20-d)+\sum_{16\mid d}(20-d)$.
- These sums are $18+16+\cdots+2=90$, $16+12+8+4=40$, $12+4=16$, and $4$. So $n=90+40+16+4=150$.
- The answer is $\boxed{150}$.
Let $K$ be the product of all factors $(b-a)$ (not necessarily distinct) where $a$ and $b$ are integers satisfying $1\le a < b \le 25$. Find the greatest positive integer $n$ such that $2^n$ divides $K$.