I'll approach this step-by-step to find all pairs of positive integers (a,b) that satisfy the given condition.
First, let's examine what happens when n is large. For any pair (a,b) where the condition holds, there must be some fixed value g such that g divides both a and for all .
Let's consider what happens when we look at consecutive values of n:
For n and n+1, we have:
- g divides an+b and bn+a
- divides and
From these, we can deduce:
- g divides (an+1+b)−a(a
So g must divide both b(1−a) and a(1−b).
If a=1 or b=1, one of these expressions becomes zero, which doesn't give us useful information. Let's handle these cases separately.
For a>1 and b>1:
- g divides b(a−1) and a(b−1)
- Since a and are positive integers, must divide
Let's simplify further. If d=gcd(a,b), then:
- a=da′ and b=db′ where
For the GCD to be constant for all large n, we need a=b.
When a=b, we have gcd(an+a,an, which is not constant as increases.
The only viable case is when one of a or b equals 1.
If a=1:
- We have gcd(1n+b,bn+1)=cd
If b=1:
- We have gcd(an+1,1n+a)=cd
Therefore, the only pairs (a,b) that satisfy the condition are (1,b) for any positive integer b, and (2,1).
The answer is: (1,b) for any positive integer b, and (2,1).