If a = 3 × 1 0 2 0 1 7 and b = 2 × 1 0 2 0 1 7 + 1 , find g cd ( a , b ) .
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 Euclidean algorithm
g cd ( 3 ⋅ 1 0 2 0 1 7 , 2 ⋅ 1 0 2 0 1 7 + 1 ) = g cd ( 3 ⋅ 1 0 2 0 1 7 − ( 2 ⋅ 1 0 2 0 1 7 + 1 ) , 2 ⋅ 1 0 2 0 1 7 + 1 ) = g cd ( 1 0 2 0 1 7 − 1 , 2 ⋅ 1 0 2 0 1 7 + 1 ) = g cd ( 1 0 2 0 1 7 − 1 , 2 ⋅ 1 0 2 0 1 7 + 1 − 2 ( 1 0 2 0 1 7 − 1 ) ) = g cd ( 1 0 2 0 1 7 − 1 , 3 )
Which is 1 or 3 , depending on whether 1 0 2 0 1 7 − 1 is divisible by 3 or not
1 0 2 0 1 7 − 1 ≡ ( 3 ⋅ 3 + 1 ) 2 0 1 7 − 1 ≡ 1 2 0 1 7 − 1 ≡ 0 m o d 3
Hence
g cd ( 3 ⋅ 1 0 2 0 1 7 , 2 ⋅ 1 0 2 0 1 7 + 1 ) = 3
Problem Loading...
Note Loading...
Set Loading...
We note that a = 2 2 0 1 7 × 3 × 5 2 0 1 7 has the prime factors 2, 3 and 5 and that:
b ≡ 2 × 1 0 2 0 1 7 + 1 ≡ 1 (mod 2) ⟹ 2 ∣ b
b ≡ 2 × 1 0 2 0 1 7 mod ϕ ( 3 ) + 1 (mod 3) ≡ 2 × 1 0 2 0 1 7 mod 2 + 1 (mod 3) ≡ 2 × 1 0 1 + 1 (mod 3) ≡ 2 1 ≡ 0 (mod 3) ⟹ 3 ∣ b Since g cd ( 3 , 1 0 ) = 1 , Euler’s theorem applies. Euler’s totient function ϕ ( 3 ) = 2
b ≡ 2 × 1 0 2 0 1 7 + 1 ≡ 1 (mod 5) ⟹ 5 ∣ b
Therefore, 3 is the only common factor of a and b and hence g cd ( a , b ) = 3 .