Please suggest me how to compute the GCD of theese really big numbers :
- GCD of $2^{120547564397}-1$ and $2^{356946681940}-1$
- GCD of $2^n-1$ and $n!$ where $n=3^{19}$
Thanks to Bill Dubuque's answer I understood that the first problem could be solved by the property that $gcd(f(m), f(n)) = f(gcd(m,n))$ if $ f(n) \equiv f(n-m) (mod\ f(m)),\ \ \ f(0)\ =\ 0$.
Any hints for the second one?
No comments:
Post a Comment