document.write( "Question 1019656: Solving linear diophantine equation where c is greatly larger. (ax+by=c)\r
\n" );
document.write( "\n" );
document.write( "3x + 4y = 478\r
\n" );
document.write( "\n" );
document.write( "This seems pretty impossible to find the x and y using euclids algorithm..\r
\n" );
document.write( "\n" );
document.write( "Is it possible?
\n" );
document.write( " \n" );
document.write( "
Algebra.Com's Answer #635616 by mathmate(429)![]() ![]() You can put this solution on YOUR website! \n" ); document.write( "Question: \n" ); document.write( "Solving linear diophantine equation where c is greatly larger. (ax+by=c) \n" ); document.write( "3x + 4y = 478 \n" ); document.write( "This seems pretty impossible to find the x and y using euclids algorithm.. \n" ); document.write( "Is it possible? \n" ); document.write( " \n" ); document.write( "Solution: \n" ); document.write( "Since GCF(3,4)=1, and 1|478, yes, there are infinite solutions. \n" ); document.write( " \n" ); document.write( "One possible solution by inspection is x=-478, y=478, which gives in general \n" ); document.write( "x=-478+4k \n" ); document.write( "y=478-3k \n" ); document.write( "We see that k≥478/4=120 and k≤478/3=159 for both x and y to be non-negative. \n" ); document.write( "Hence the valid values for x and y are 120≤k≤159. \n" ); document.write( "For example, \n" ); document.write( "k=120, x=2, y=118 \n" ); document.write( "k=121, x=6, y=115 \n" ); document.write( "k=122, x=10, y=112 \n" ); document.write( "... \n" ); document.write( "k=159, x=158, y=1 \n" ); document.write( "are all solutions to the given problem. \n" ); document.write( " \n" ); document.write( "For a more detailed explanation, see answer to problem 1019647, or \n" ); document.write( "http://math.stackexchange.com/questions/20717/how-to-find-solutions-of-linear-diophantine-ax-by-c \n" ); document.write( " |