Largest value of greatest common divisor

gcd ( n ! + 101 , ( n + 1 ) ! + 101 ) \gcd\left(n!+101, (n+1)!+101\right)

Find the largest value of the above expression over all positive integers n n .


Inspiration .


The answer is 10201.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Chan Lye Lee
Jan 7, 2016

Let M M be the largest value of U n = gcd ( n ! + 101 , ( n + 1 ) ! + 101 ) U_n=\gcd\left(n!+101, (n+1)!+101\right) .

It is known that gcd ( a , b ) = gcd ( a , b + x a ) \gcd(a,b)=\gcd(a,b+xa) for some integer x x . Using this property repeatedly, we have U n = gcd ( n ! + 101 , 101 n ) U_n=\gcd\left(n!+101, 101n\right) .

When n = 101 n=101 , 101 n = 10 1 2 101n=101^2 and n ! + 101 = 101 ! + 101 = 101 ( 100 ! + 1 ) n!+101=101!+101=101(100!+1) . Since 101 is a prime number, 100 ! 1 ( m o d 101 ) 100! \equiv -1 \pmod{101} by Wilson's Theorem. So 100 ! = 101 m 1 100!=101m-1 for some positive integer m m . This means that 101 ! + 101 101!+101 is a multiple of 10 1 2 101^2 . Thus U 101 = 10 1 2 = 10201 U_{101}=101^2=10201 .

We claim that M = 10201 M=10201 .

If n < 101 n<101 , then 101 n < 10 1 2 101n<101^2 and hence U n < 10 1 2 U_n<101^2 .

If n > 101 n>101 , then n ! 101 = k n \frac{n!}{101}=kn for some positive integer k k . Hence U n = gcd ( 101 ( n ! 101 + 1 ) , 101 n ) = gcd ( 101 ( k n + 1 ) , 101 n ) = 101 U_n=\gcd\left(101\left(\frac{n!}{101}+1\right),101n\right)=\gcd(101(kn+1),101n)=101 .

This completes the proof.

In fact, if n<101, then U_n=1.

Michael Wood - 5 years, 5 months ago

Log in to reply

May I have your proof of the statement?

Chan Lye Lee - 5 years, 5 months ago

Log in to reply

If n<101, U n cannot be 101 or its multiples as 101 does not divide n!. Let say n or any factors of n be U n, then it has to divide 101, which leaves the only solution U_n=1.

Michael Wood - 5 years, 5 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...