Problem 578: (2009 AIME II, 7)
Define $n!!$ to be $n(n-2)(n-4)\cdots 3\cdot 1$ for $n$ odd and $n(n-2)(n-4)\cdots 4\cdot 2$ for $n$ even. When $\sum_{i=1}^{2009} \frac{(2i-1)!!}{(2i)!!}$ is expressed as a fraction in lowest terms, its denominator is $2^ab$ with $b$ odd. Find $\dfrac{ab}{10}$.
- $(2i)!!=2^ii!$ and $(2i-1)!!=\frac{(2i)!}{2^ii!}$, so each term is $\frac{(2i)!}{4^i(i!)^2}=\frac{\binom{2i}i}{4^i}$.
- The exponent of $2$ in $\binom{2i}i$ is the number $s(i)$ of $1$'s in the binary form of $i$ (the number of carries when adding $i+i$ in base $2$). So in lowest terms the $i$-th term has denominator $2^{2i-s(i)}$.
- Since $s(i+1)\le s(i)+1$, the exponent $2i-s(i)$ strictly increases with $i$. So the largest one, from $i=2009$, appears exactly once, and the sum has denominator $2^{4018-s(2009)}$. As $2009=11111011001_2$ has eight $1$'s, $a=4010$ and $b=1$.
- $\frac{ab}{10}=401$. The answer is $\boxed{401}$.
Define $n!!$ to be $n(n-2)(n-4)\cdots 3\cdot 1$ for $n$ odd and $n(n-2)(n-4)\cdots 4\cdot 2$ for $n$ even. When $\sum_{i=1}^{2015} \frac{(2i-1)!!}{(2i)!!}$ is expressed as a fraction in lowest terms, its denominator is $2^ab$ with $b$ odd. Find $\dfrac{ab}{10}$.