Explore this weird gcd problem

A sequence { x n } n = 0 \{x_n\}_{n=0}^{\infty} is defined by x 1 = 2 x_{1}=2 and x n + 1 = 2 x n 2 1 x_{n+1}=2x_{n}^{2}-1 for all n N + n \in \mathbb N^+ .

Determine the greatest common divisor of 1729 ! 1729! and x 1729 ! x_{1729!} .

Note: You could easily get the answer if x 1 = 1 x_1=1 , but unfortunately here is given x 1 = 2 x_{1}=2 . So think twice before you choose the answer.

37 1729 3 1

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.

1 solution

Patrick Corn
May 14, 2018

Suppose x a x b x_a \equiv x_b mod p p for some p , p, with a < b . a<b. Then the sequence repeats after b b : x b + 1 x a + 1 , x b + 2 x a + 2 , x_{b+1} \equiv x_{a+1}, x_{b+2} \equiv x_{a+2}, etc.

Now suppose x 1 , x 2 , , x p x_1,x_2,\ldots, x_p are all nonzero mod p . p. By the pigeonhole principle , there are two distinct a , b a,b such that x a x b x_a \equiv x_b mod p , p, 1 a < b p . 1 \le a<b \le p. But then the values of the sequence repeat, so the sequence is never divisible by p . p.

Note also that if x k 0 x_k \equiv 0 mod p , p, then x k + 1 1 , x_{k+1} \equiv -1, x k + 2 1 , x_{k+2} \equiv 1, and x m 1 x_m \equiv 1 for all m k + 3. m \ge k+3.

The upshot is that, for any positive integer p 2 , p \ge 2, there is at most one value of the sequence that is divisible by p , p, and that value must occur in the first p p terms if it occurs at all. That is, x n x_n is only divisible by integers that are n . \ge n.

(Remark 1: This gives a proof of the infinitude of primes, now that I think about it!

Remark 2: With a little thought, you can show that the inequality is actually strict.)

Anyway, to solve the problem, note that if n = 1729 ! , n=1729!, x n x_n is only divisible by primes 1729 ! , \ge 1729!, but no such primes divide 1729 ! , 1729!, so x 1729 ! x_{1729!} and 1729 ! 1729! have no common prime factors, and hence their gcd is 1 . \fbox{1}.

(Remark 3: I used that 1729 ! 1729! wasn't prime, but if you believe Remark 2, that's not necessary; in fact gcd ( n , x n ) = 1 \text{gcd}(n,x_n) = 1 for all n . n. )

Nice solution! In Remark 1,assume p 1 < p 2 < < p s p_{1}<p_{2}<\cdots <p_{s} are all the primes,then x ( p 1 p 2 . . . p s ) x_{(p_{1}p_{2}...p_{s})} must have a new prime factor by our conclusion,which is a contradiction. In Remark 2,we assume p x p p|x_{p} for prime p.Then x a x_{a} \equiv x b x_{b} (nonzero) m o d p mod p cannot hold for any 1 a < b p 1 1\le a<b\le p-1 (Otherwise x p + b a x p 0 ( m o d p ) x_{p+b-a}\equiv x_{p} \equiv 0 (mod p) ,which is a contrdiction).So there exists ( i 1 , i 2 , . . . , i p 1 ) (i_{1},i_{2},...,i_{p-1}) as a permutation of ( 1 , 2 , . . . , p 1 ) (1,2,...,p-1) such that x i j j ( m o d p ) x_{i_{j}}\equiv j (mod p) .But x k 1 ( m o d p ) x_{k}\equiv 1 (mod p) ( 1 k p 1 1\le k \le p-1 ) gives x k + 1 1 ( m o d p ) x_{k+1}\equiv 1 (mod p) ,which means k = p 1 k=p-1 ,and so x p 1 ( m o d p ) x_{p}\equiv 1(mod p) ,contradiction.Thereby the inequality is actually strict.

Haosen Chen - 3 years ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...