Find It Without Plugging Values

n ! + 1 ( n + 1 ) ! + 1 \large n! + 1 \qquad \qquad (n+1)! + 1

If n n is a positive integer , find the greatest common divisor of the two numbers above.

Notation : ! ! denotes the factorial notation. For example, 8 ! = 1 × 2 × 3 × × 8 8! = 1\times2\times3\times\cdots\times8 .


The answer is 1.

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

Let p p be a prime factor of n ! + 1 n!+1 , then p > n p>n , because p n ! p\nmid n! . Note that ( n + 1 ) ! + 1 = ( n + 1 ) n ! + 1 = n n ! + n ! + 1 (n+1)!+1=(n+1)n!+1=n\cdot n!+n!+1 , as p ( n ! + 1 ) p|(n!+1) , then p ( ( n + 1 ) ! + 1 ) p\nmid ((n+1)!+1) , cause p n n ! p\nmid n\cdot n! . Therefore, g c d ( n ! + 1 , ( n + 1 ) ! + 1 ) = 1 gcd(n!+1,(n+1)!+1)=1

Nice problem! What happens if we replace the + with a -?

Calvin Lin Staff - 5 years ago

Log in to reply

The gcd would be also 1! The proof is similar...

Mateo Matijasevick - 5 years ago

I don’t rlly understand that. Could you describe it in a more simple way

Rahul Swaminathan - 2 years, 11 months ago

Another way is to use the Euclidean Algorithm: g c d ( n ! + 1 , ( n + 1 ) ! + 1 ) = g c d ( n ! + 1 , ( n + 1 ) ! + 1 ( n ! + 1 ) ) = g c d ( n ! + 1 , ( n + 1 ) ! n ! ) = g c d ( n ! + 1 , n ! n ) gcd(n! + 1, (n+1)! + 1) = gcd(n! + 1, (n+1)! + 1 - (n! + 1)) = gcd(n! + 1, (n+1)! - n!) = gcd(n! + 1, n!n) . Now, for any p > 1 p > 1 such that p n ! n p |n!n , we have that p n ! p|n! , and so it does not divide n ! + 1 n! + 1 . It only divides n ! + 1 n!+1 when p p is essentially 1 1 .

Mohammad Ghalayini - 10 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...