For each positive integer 'n', consider the highest common factor 'H' of the two numbers n!+1 and (n+1)!. for n<100, find the largest value of 'H'.
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.
Using the notation g cd ( x , y ) to denote the greatest common divisor (a.k.a. highest common factor) of x and y , we can write
H = g cd ( n ! + 1 , ( n + 1 ) ! ) = g cd ( n ! + 1 , n ! ( n + 1 ) ) = g cd ( n ! + 1 , n + 1 ) = { n + 1 1 if ( n + 1 ) is a prime otherwise Since g cd ( n ! + 1 , n ! ) = 1 By Wilson’s theorem
The problem can then be rephrased to "What is the largest prime p = n + 1 ≤ 1 0 0 ?" and therefore the answer is 9 7