Skip to main content

2009 AIME II Problem 7

Problem 7 of 15IntermediateNumber TheoryArithmetic

Define n!!n!! to be n(n−2)(n−4)⋯3⋅1n(n-2)(n-4)\cdots 3 \cdot 1 for nn odd and n(n−2)(n−4)⋯4⋅2n(n-2)(n-4)\cdots 4 \cdot 2 for nn even. When ∑i=12009(2i−1)!!(2i)!!\sum_{i=1}^{2009} \frac{(2i-1)!!}{(2i)!!} is expressed as a fraction in lowest terms, its denominator is 2ab2^a b with bb odd. Find ab10.\frac{ab}{10}.

Your answer

Integer from 0 to 999
Show solution

Solution

The iith term is (2i−1)!!(2i)!!\frac{(2i-1)!!}{(2i)!!} with odd numerator, and (2i)!!=2i⋅i!.(2i)!! = 2^i \cdot i!. Because (2ii)=(2i)!i! i!=2i(2i−1)!!i!\binom{2i}{i} = \frac{(2i)!}{i!\,i!} = \frac{2^i (2i-1)!!}{i!} is an integer, every odd prime power dividing i!i! also divides (2i−1)!!.(2i-1)!!. Hence in lowest terms the iith term has denominator exactly 2ai2^{a_i} where ai=i+eia_i = i + e_i and eie_i is the exponent of 22 in i!.i!. The aia_i strictly increase, so over the common denominator 2a20092^{a_{2009}} every term except the last contributes an even numerator while the last contributes an odd one. The sum in lowest terms therefore has denominator exactly 2a2009,2^{a_{2009}}, so b=1.b = 1. By Legendre’s formula, e2009=1004+502+251+125+62+31+15+7+3+1=2001, \begin{aligned} e_{2009} &= 1004 + 502 + 251 \\ &\quad {}+ 125 + 62 + 31 + 15 \\ &\quad {}+ 7 + 3 + 1 \\ &= 2001, \end{aligned} so a=2009+2001=4010.a = 2009 + 2001 = 4010. Then ab10=4010⋅110=401.\frac{ab}{10} = \frac{4010 \cdot 1}{10} = 401.
AoPS wiki

Tagged: factorial · Legendre’s Formula · divisibility

More practice