How to find $\gcd(100! , 2^{100})$

74 Views Asked by At

How can I find $\gcd(100! , 2^{100})$? If I use this method: $$100! = 2^x + y$$ How can I find $x$?

1

There are 1 best solutions below

0
On BEST ANSWER

You have, applying Legendre's formula, and denoting $v_2(n)$ the exponent of $2$ in the prime factors decomposition of $n$: $$v_2(100!)=\biggl\lfloor\frac{100}2\biggr\rfloor+\biggl\lfloor\frac{100}4\biggr\rfloor+\biggl\lfloor\frac{100}8\biggr\rfloor+\dotsm$$