A number theory problem by Ralph Macarasig

A = 201 7 4 0 640 2017 B = 201 7 4 0 544 2017 \Large A =2017^{40^{640}} - 2017 \qquad \qquad B = 2017^{40^{544}} - 2017

The greatest common divisor of A A and B B can be expressed in the form 201 7 x y 2017 \large 2017^{x^{y}} - 2017 , where x x and y y are integers .

Submit your answer as x y \overline{xy} , which is the concatenation of the digits of x x and y y . For example, if x = 10 x = 10 and y = 12 y = 12 , then x y = 1012 \overline{xy} = 1012 .


The answer is 4032.

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.

2 solutions

Ralph Macarasig
May 25, 2016

Relevant wiki: Greatest Common Divisor - Problem Solving

We can use the (very useful) fact that

g c d ( a m 1 , a n 1 ) = a g c d ( m , n ) 1 gcd(a^m-1, a^n-1) = a^{gcd(m,n)}-1

Hence, g c d ( 201 7 4 0 640 2017 , 201 7 4 0 544 2017 ) = gcd(2017^{40^{640}} - 2017, 2017^{40^{544}} - 2017) = 2017 × g c d ( 201 7 4 0 640 1 1 , 201 7 4 0 544 1 1 ) = 2017\times gcd(2017^{40^{640}-1}-1, 2017^{40^{544}-1}-1) = 2017 × [ 201 7 g c d ( 4 0 640 1 , 4 0 544 1 ) 1 ] = 2017\times [2017^{gcd(40^{640}-1, 40^{544}-1)}-1] = 2017 × [ 201 7 4 0 g c d ( 640 , 544 ) 1 1 ] 2017\times [2017^{40^{gcd(640,544)}-1}-1]

Notice that 640 = 32 × 20 640 = 32\times20 and 544 = 32 × 17 544 = 32\times 17 . Since 20 20 and 17 17 are coprime, g c d ( 640 , 544 ) = 32 gcd(640,544) = 32 .

Therefore, g c d ( 201 7 4 0 640 2017 , 201 7 4 0 544 2017 ) = gcd(2017^{40^{640}} - 2017, 2017^{40^{544}} - 2017) = 2017 × [ 201 7 4 0 32 1 1 ] = 2017\times[2017^{40^{32}-1}-1] = 201 7 4 0 32 2017 2017^{40^{32}}-2017

Hence, x = 40 x = 40 and y = 32 y = 32 and x y \overline{xy} = = 4032 \boxed{4032}

Can you prove this? gcd ( a m 1 , a n 1 ) = a gcd ( m , n ) 1 \gcd(a^m-1,a^n-1)=a^{\gcd(m,n)}-1

Akshat Sharda - 5 years ago

Log in to reply

Well this is not much of proof, but here it goes.

We know that a m 1 a^m \equiv 1 m o d mod ( a m 1 ) (a^m-1) and a n 1 a^n \equiv 1 m o d mod ( a n 1 ) (a^n-1) .

Let d = g c d ( m , n ) d = gcd(m,n) . It immediately follows that d m d | m and d n d | n .

C a s e Case 1 : m 1: m and n n are even

It follows that d d is also even and a a \equiv ± 1 \pm 1 m o d mod ( a m 1 ) (a^m-1) and a a \equiv ± 1 \pm 1 m o d mod ( a n 1 ) (a^n-1) . Hence, a d 1 a^d \equiv 1 m o d mod ( a m 1 ) (a^m-1) and a d 1 a^d \equiv 1 m o d mod ( a n 1 ) (a^n-1)

C a s e Case 2 : m 2: m and n n are odd

It follows that d d is also odd and a a \equiv 1 1 m o d mod ( a m 1 ) (a^m-1) and a a \equiv 1 1 m o d mod ( a n 1 ) (a^n-1) . Hence, a d 1 a^d \equiv 1 m o d mod ( a m 1 ) (a^m-1) and a d 1 a^d \equiv 1 m o d mod ( a n 1 ) (a^n-1)

C a s e Case 3 : 3: One is odd and the other is even

Without loss of generality, let m m be odd and n n be even. It then follows that d d is odd and a a \equiv 1 1 m o d mod ( a m 1 ) (a^m-1) and a a \equiv ± 1 \pm 1 m o d mod ( a n 1 ) (a^n-1) . We may use the fact that dividing an odd integer by an odd integer yields an odd integer and that dividing an even integer by an odd integer yields an even integer. Hence, a d 1 a^d \equiv 1 m o d mod ( a m 1 ) (a^m-1) and a d 1 a^d \equiv 1 m o d mod ( a n 1 ) (a^n-1) .

Hence, in all cases it has been shown that a d 1 0 a^d - 1 \equiv 0 m o d mod ( a m 1 ) (a^m-1) and a d 1 0 a^d - 1 \equiv 0 m o d mod ( a n 1 ) (a^n-1) .

Then, any divisor of a m 1 a^m-1 and a n 1 a^n-1 must be a divisor of a d 1 a^d-1 as well. Hence, g c d ( a m 1 , a n 1 ) = a g c d ( m , n ) 1 gcd(a^m-1,a^n-1) = a^{gcd(m,n)}-1 .

Ralph Macarasig - 5 years ago
Grant Bulaong
May 25, 2016

Let m = A 2017 m=\frac{A}{2017} and n = B 2017 n=\frac{B}{2017} .

The greatest common divisor of m m and n n can be expressed in the form 201 7 x y 1 1 2017^{x^y-1}-1 .

m = 201 7 4 0 640 1 1 m = 2017^{40^{640}-1}-1

Some factors of m m which are no less than 2016 2016 can be expressed in the form 201 7 α m 1 2017^{\alpha_m}-1 , where α m \alpha_m is a factor of 4 0 640 1 40^{640}-1 .

Next, some factors of 4 0 640 1 40^{640}-1 which are no less than 39 39 can be expressed in the form 4 0 β 1 40^{\beta}-1 , where β \beta is a factor of 640 640 .

Therefore, some factors of m m which are no less than 201 7 39 1 2017^{39}-1 can be expressed in the form 201 7 4 0 β 1 1 2017^{40^{\beta}-1}-1 .

We repeat the process for n = 201 7 4 0 544 1 1 n = 2017^{40^{544}-1}-1 .

For g c d ( m , n ) gcd(m,n) , we get β = g c d ( 640 , 544 ) = 32 \beta=gcd(640,544) = 32 , since it can be shown that no greater combination (quotient nor product) of other factors can be equal for m m and n n .

Hence, x = 40 x = 40 , y = 32 y = 32 and x y \overline{xy} = = 4032 \boxed{4032}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...