Browse · MATH
Printjmc
number theory senior
Problem
What is the maximum possible value of the greatest common divisor of two consecutive terms of the sequence , where ?
Solution
We start by taking the first step in the Euclidean algorithm: subtract the initial two terms. Notice that It follows that by the Euclidean Algorithm, since the minus sign is irrelevant for calculating the gcd.
We know that divides , so that is relatively prime to : Thus, we can ignore the factor of completely, and say that Now, we have several cases, depending on whether is prime or composite. We also have a few edge cases to consider. The basic idea is that when is composite and greater than , is a factor of , whereas when is prime, we can apply Wilson's Theorem.
For , we find that , with greatest common divisor .
If is composite and can be written as the product of two distinct integers greater than (say , ), then divides By the same argument as before, since and are relatively prime, then and are relatively prime, yielding a greatest common divisor of .
If for some prime , then . If , then and are both factors that appear in the expansion of , so divides and the previous argument applies. For , we can quickly check that is relatively prime with .
If for some prime , then by Wilson's Theorem. Thus, is relatively prime with unless , for which we obtain , with greatest common divisor 2.
So, the largest the greatest common divisor of two consecutive terms of the sequence can be is , which is achieved when we take .
We know that divides , so that is relatively prime to : Thus, we can ignore the factor of completely, and say that Now, we have several cases, depending on whether is prime or composite. We also have a few edge cases to consider. The basic idea is that when is composite and greater than , is a factor of , whereas when is prime, we can apply Wilson's Theorem.
For , we find that , with greatest common divisor .
If is composite and can be written as the product of two distinct integers greater than (say , ), then divides By the same argument as before, since and are relatively prime, then and are relatively prime, yielding a greatest common divisor of .
If for some prime , then . If , then and are both factors that appear in the expansion of , so divides and the previous argument applies. For , we can quickly check that is relatively prime with .
If for some prime , then by Wilson's Theorem. Thus, is relatively prime with unless , for which we obtain , with greatest common divisor 2.
So, the largest the greatest common divisor of two consecutive terms of the sequence can be is , which is achieved when we take .
Final answer
2