As of December 22, 2018, GIMPS has discovered the largest known prime number, 2 8 2 5 8 9 9 3 3 − 1 . Beating the previous record , 2 7 7 2 3 2 9 1 7 − 1 .
Without using any computer assistance, calculate the greatest common divisor , of the two numbers, 82589933 and 77232917.
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.
Just about to use the Euclidean algorithm...
Log in to reply
That would take a little while... Do you know, if there is an approximation for the number of step the algoritm takes for 2 coprime integers?
Log in to reply
No, but I would like to know that!
Log in to reply
@X X – In the German Wikipedia article , it says that the worst case are numbers with ratio approximately ϕ and especially consecutive Fibonacci numbers, because they are also coprime and the algorithm generates all Fibonacci numbers before these two numbers. In this worst case, the worst-case number of steps is Θ ( lo g ( a b ) ) , but since every step takes time, the worst-case running time is O ( lo g ( a b ) 3 ) .
Log in to reply
@Henry U – Oh wow, an unexpected lesson here. Thanks.
Log in to reply
@X X – Actually, I don't really know the difference between Ω and O , but they mean that the function we are looking (the greatest common divisor) grows more or less like the function that is in the parentheses ( lo g ( a b ) .
For this comparison, we ignore constants and ower degree terms , for example you could write 3 x 2 − 6 x + 1 0 6 = O ( x 2 ) meaning that the function grows quadratically , so doubling the input will approximately multiply tbe outpit by 4.
The notation f ( x ) = O ( g ( x ) ) is not an equation, it's only a shorter form of f ( x ) ∈ O ( g ( x ) ) where O ( g ( x ) ) denotes the set of all functions that grow like g ( x ) .
You can read more about this under the name Big-O-Notation
Theorem: gcd ( a m − 1 , a n − 1 ) = a gcd ( m , n ) − 1 In this case, a = 2 , m = 8 2 5 8 9 9 3 3 and n = 7 7 2 3 2 9 1 7 . By the above theorem, we have gcd ( 2 8 2 5 8 9 9 3 3 − 1 , 2 7 7 2 3 2 9 1 7 − 1 ) = 2 gcd ( 8 2 5 8 9 9 3 3 , 7 7 2 3 2 9 1 7 ) − 1 Since we are given that both 2 8 2 5 8 9 9 3 3 − 1 and 2 7 7 2 3 2 9 1 7 − 1 are primes, their greatest common divisor must be 1 . Therefore, 2 gcd ( 8 2 5 8 9 9 3 3 , 7 7 2 3 2 9 1 7 ) − 1 = 1 ⟹ 2 gcd ( 8 2 5 8 9 9 3 3 , 7 7 2 3 2 9 1 7 ) = 2 ⟹ gcd ( 8 2 5 8 9 9 3 3 , 7 7 2 3 2 9 1 7 ) = 1
Problem Loading...
Note Loading...
Set Loading...
There is a theorem about Mersenne numbers
The contrapositive – which is also always true for true statements – of the first part of this theorem is
Since 2 8 2 5 8 9 9 3 3 − 1 = M 8 2 5 8 9 9 3 3 and 2 7 7 2 3 2 9 1 7 − 1 = M 7 7 2 3 2 9 1 7 are both prime, 8 2 5 8 9 9 3 3 and 7 7 2 3 2 9 1 7 also have to be prime.
From this, it follows directly that the two numbers can't have any common divisors, so their greatest common divisors is 1 .