Skip to main content

1985 AIME Problem 13

Problem 13 of 15HarderAlgebraNumber Theory

The numbers in the sequence 101,101, 104,104, 109,109, 116,116, …\ldots are of the form an=100+n2,a_n=100+n^2, where n=1,n=1, 2,2, 3,3, ….\ldots. For each n,n, let dnd_n be the greatest common divisor of ana_n and an+1.a_{n+1}. Find the maximum value of dnd_n as nn ranges through the positive integers.

Your answer

Integer from 0 to 999
Show solution

Solution

A common divisor dnd_n divides an+1−an=2n+1. a_{n+1}-a_n=2n+1. It therefore also divides 4(n2+100)−(2n+1)2+2(2n+1)=401. \begin{aligned} &4(n^2+100)-(2n+1)^2\\ &\qquad{}+2(2n+1)=401. \end{aligned} Since 401401 is prime, dn≤401.d_n\leq401. Equality occurs at n=200,n=200, because 2n+1=4012n+1=401 and n2+100=40100=100⋅401.n^2+100=40100=100\cdot401. Hence the maximum is 401.401.
AoPS wiki

Tagged: greatest common divisor · algebraic manipulation · prime

More practice