Problem:
The numbers in the sequence 101,104,109,116,β¦ are of the form anβ=100+n2, where n=1,2,3,β¦. For each n, let dnβ be the greatest common divisor of anβ and an+1β. Find the maximum value of dnβ as n ranges through the positive integers.
Solution:
More generally, we will show that if a is a positive integer and if dnβ is the greatest common divisor of a+n2 and a+(n+1)2, then the maximum value of dnβ is 4a+1, attained when n=2a. It will follow that for the sequence under consideration the answer is 4(100)+1 or 401β.
To prove the above, note that if dnβ divides a+(n+1)2 and a+n2, then it also divides their difference; i.e.,
dnββ£(2n+1)(1)
Now, since 2(a+n2)=n(2n+1)+(2aβn), it follows from (1) that
dnββ£(2aβn)(2)
Hence from (1) and (2), dnββ£((2n+1)+2(2aβn)), or
dnββ£(4a+1)(3)
Consequently, 1β€dnββ€4a+1, so 4a+1 is the largest possible value of dnβ. It is attained, since for n=2a we have
a+n2=a+(2a)2=a(4a+1)
and
a+(n+1)2=a+(2a+1)2=(a+1)(4a+1)
The problems on this page are the property of the MAA's American Mathematics Competitions