Question 1138622: Find all positive integers a and b so that (a+1)/b and (b+2)/a are simultaneously
positive integers.
Found 2 solutions by greenestamps, Edwin McCravy: Answer by greenestamps(13203) (Show Source):
You can put this solution on YOUR website!
Plan of attack:
Given the requirement equal to an integer, choose integer values for a and determine the possible integer values for b; for those possible values of b, determine whether is also an integer.
If a = 1...

The possible values for b are 1 and 2.
is an integer for both these values of b.
For b=1, --> (a,b) = (1,1) is a solution
For b=2, --> (a,b) = (1,2) is a solution
If a = 2...

The possible values for b are 1 and 3.
is not an integer for either b=1 or b=3.
If a = 3...

The possible values for b are 1, 2, and 4.
is an integer for both b=1 and b=4.
For b=1, --> (a,b) = (3,1) is a solution
For b=4, --> (a,b) = (3,4) is a solution
If a = 4...

The possible values for b are 1 and 5.
is not an integer for either b=1 or b=5.
If a = 5...

The possible values for b are 1, 2, 3, and 6.
is an integer for b=3.
For b=3, --> (a,b) = (5,3) is a solution
-----------------------------------------------------------------
I haven't been able to come up with a formal proof; but it is clear to me that there will be no solutions with values of a greater than 5. So the complete set of ordered pairs of positive integers (a,b) for which both and are both integers is
(1,1); (1,2); (3,1); (3,4); (5,3)
Answer by Edwin McCravy(20060) (Show Source):
You can put this solution on YOUR website! Here's the strategy
greenestamps was looking for:
Find all positive integers a and b so that (a+1)/b and (b+2)/a are simultaneously
positive integers.
Those are positive integers, so
Add 1 to both sides of the second inequality
Those inequalities can be combined as
So we have four cases: a+1=b, a+1=b+1, a+1=b+2, a+1=b+3
which simplify to a=b-1, a=b, a=b+1, a=b+2
Case 1: a=b-1 substitute in
For the expression to be a positive integer,
b-1 is either 1 or 3.
For b-1=1 or b=2 and a=b-1=2-1=1, (a,b)=(1,2)
For b-1=3 or b=4 and a=b-1=4-1=3, (a,b)=(3,4)
Case 2: a=b substitute in
Those will both be integers only if b=1.
a=b=1, (a,b)=(1,1)
Case 3: a=b+1 substitute in
For the second expression to be a positive integer,
b+1 must be 1, which makes b=0. So we must discard
Case 3 as impossible.
Case 4: a=b+2 substitute in
For the first expression to be a positive integer,
b is either 1 or 3.
For b=1, a=b+2=1+2=3, so (a,b)=(3,1) is a solution.
For b=3, a=b+2=3+2=5, so (a,b)=(5,3) is a solution.
So there are 5 solutions:
(a,b)=(1,2)
(a,b)=(3,4)
(a,b)=(1,1)
(a,b)=(3,1)
(a,b)=(5,3)
Edwin
|
|
|