example of gcd
If one calculates values of the polynomial
on the successive positive integers , one may observe an interesting thing when factoring the values:
. . .
It seems as if two consecutive values always have at least one common odd prime factor, i.e. they have the greatest common divisor .
It is indeed true. The reason of this fact is not particularlydeep. It is easily understood if we canfactorize this polynomial (http://planetmath.org/GroupingMethodForFactoringPolynomials):
Then
(1) |
and the next value is
(2) |
Thus and have as their common factor at least the number , which is .
Moreover, we may show that the greatest common divisor of and is except in the case where it is .
Let be a common divisor, greater than 1, of the first factors and of (1) and (2). It’s clear that is odd (http://planetmath.org/OddNumber). Then must divide the difference
and the sum and hence also the difference . It means that . Thus the only possible common prime factor
of and is 7. If we denote where , we see that
It’s easy to check that the right hand of these polynomial congruences are divisible by 7 only if , i.e. if .
Note. The sequence formed by the successive valuesof is number A111002 in Sloane’sregister (https://oeis.org/A111002http://www.research.att.com/ njas/sequences/).