document.write( "Question 408264: Show 5n+3 and 7n+4 are relatively prime for all n \n" ); document.write( "
Algebra.Com's Answer #287832 by robertb(5830)\"\" \"About 
You can put this solution on YOUR website!
As a corollary to Euclid's algorithm, there are integers s and t such that as + bt = gcd(a,b). Hence if we're able to find integers s,t, such that \r
\n" ); document.write( "\n" ); document.write( "s(5n + 3) + t(7n + 4) = 1, \r
\n" ); document.write( "\n" ); document.write( "then we've shown that 5n + 3, 7n + 4 are relatively prime for all n.\r
\n" ); document.write( "\n" ); document.write( "==> (5s + 7t)n + (3s + 4t) = 1.\r
\n" ); document.write( "\n" ); document.write( "It's enough to see if the system
\n" ); document.write( "5s + 7t = 0
\n" ); document.write( "3s + 4t = 1
\n" ); document.write( "has integer solutions.
\n" ); document.write( "Indeed, the solutions are s = 7, and t = -5.
\n" ); document.write( "Therefore 5n + 3, 7n + 4 are relatively prime for all n.
\n" ); document.write( "
\n" );