g cd ( 2 0 1 5 ! + 1 , 2 0 1 6 ! + 1 ) = ?
Notation :
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.
Good application of the Eucliedean algorithm.
Thanks for both solutions. :)
Do you say that 2015!+1 doesn't have divisors leas than 2015 because gcd(2015!, 2015!+1)=1?
How were you able to conclude that g would be less than or equal to 2 0 1 5 ?
I don't really see where Euclidean algorithm was applied in the solution above.
extended euclidean algorithm 2 0 1 6 ! + 1 = 2 0 1 6 ( 2 0 1 5 ! + 1 ) − 2 0 1 5 2 0 1 6 = − 1 ( − 2 0 1 5 ) + 1 − 1 = − 1 ( 1 ) + 0
Good explanation. Instead of resorting to Extended Euclidean Algorithm, it is often easier to directly write it up as a sequence of g cd ( A , B ) = g cd ( A − n B , B ) statements.
Let a=2015! b=2016!
gcd(a,ab)=a
gcd(a+1,ab+1)=1
Let a = 2 0 1 5 !
Then we have
gcd ( 2 0 1 5 ! + 1 , 2 0 1 6 ! + 1 ) = gcd ( a + 1 , 2 0 1 6 a + 1 )
Applying the Euclidean Algorithm, we see that:
gcd ( 2 0 1 6 ( a + 1 ) − 2 0 1 5 , 2 0 1 6 a + 1 ) ⇒ gcd ( 2 0 1 5 , 2 0 1 6 a + 1 )
Therefore, we see that the greatest common divisor is 1 .
Problem Loading...
Note Loading...
Set Loading...
We can apply the Euclidean Algorithm .
Let g be a common divisor of 2 0 1 5 ! + 1 and 2 0 1 6 ! + 1 . Hence g must divide 2 0 1 6 ( 2 0 1 5 ! + 1 ) − ( 2 0 1 6 ! + 1 ) = 2 0 1 5 Hence g ≤ 2 0 1 5 . But 2 0 1 5 ! + 1 does not have a divisor (other than 1 ) which is less than 2 0 1 5 . This implies that the only possible value of g and the GCD is 1 .