document.write( "Question 1138622: Find all positive integers a and b so that (a+1)/b and (b+2)/a are simultaneously
\n" ); document.write( "positive integers.
\n" ); document.write( "

Algebra.Com's Answer #756565 by greenestamps(13203)\"\" \"About 
You can put this solution on YOUR website!


\n" ); document.write( "Plan of attack:

\n" ); document.write( "Given the requirement \"%28a%2B1%29%2Fb\" 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 \"%28b%2B2%29%2Fa\" is also an integer.

\n" ); document.write( "If a = 1...

\n" ); document.write( "\"%28a%2B1%29%2Fb+=+2%2Fb\"
\n" ); document.write( "The possible values for b are 1 and 2.
\n" ); document.write( "\"%28b%2B2%29%2Fa+=+%28b%2B2%29%2F1\" is an integer for both these values of b.
\n" ); document.write( "For b=1, \"%28b%2B2%29%2Fa+=+3%2F1+=+3\" --> (a,b) = (1,1) is a solution
\n" ); document.write( "For b=2, \"%28b%2B2%29%2Fa+=+4%2F1+=+4\" --> (a,b) = (1,2) is a solution

\n" ); document.write( "If a = 2...

\n" ); document.write( "\"%28a%2B1%29%2Fb+=+3%2Fb\"
\n" ); document.write( "The possible values for b are 1 and 3.
\n" ); document.write( "\"%28b%2B2%29%2Fa+=+%28b%2B2%29%2F2\" is not an integer for either b=1 or b=3.

\n" ); document.write( "If a = 3...

\n" ); document.write( "\"%28a%2B1%29%2Fb+=+4%2Fb\"
\n" ); document.write( "The possible values for b are 1, 2, and 4.
\n" ); document.write( "\"%28b%2B2%29%2Fa+=+%28b%2B2%29%2F3\" is an integer for both b=1 and b=4.
\n" ); document.write( "For b=1, \"%28b%2B2%29%2Fa+=+3%2F3+=+1\" --> (a,b) = (3,1) is a solution
\n" ); document.write( "For b=4, \"%28b%2B2%29%2Fa+=+6%2F3+=+2\" --> (a,b) = (3,4) is a solution

\n" ); document.write( "If a = 4...

\n" ); document.write( "\"%28a%2B1%29%2Fb+=+5%2Fb\"
\n" ); document.write( "The possible values for b are 1 and 5.
\n" ); document.write( "\"%28b%2B2%29%2Fa+=+%28b%2B2%29%2F4\" is not an integer for either b=1 or b=5.

\n" ); document.write( "If a = 5...

\n" ); document.write( "\"%28a%2B1%29%2Fb+=+6%2Fb\"
\n" ); document.write( "The possible values for b are 1, 2, 3, and 6.
\n" ); document.write( "\"%28b%2B2%29%2Fa+=+%28b%2B2%29%2F5\" is an integer for b=3.
\n" ); document.write( "For b=3, \"%28b%2B2%29%2Fa+=+5%2F5+=+1\" --> (a,b) = (5,3) is a solution

\n" ); document.write( "-----------------------------------------------------------------

\n" ); document.write( "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 \"%28a%2B1%29%2Fb\" and \"%28b%2B2%29%2Fa\" are both integers is
\n" ); document.write( "(1,1); (1,2); (3,1); (3,4); (5,3)
\n" ); document.write( "
\n" ); document.write( "
\n" );