Edwin's complete solution:\r
\n" );
document.write( "\n" );
document.write( "Simplify: 
\n" );
document.write( "\r\n" );
document.write( "Most people learn the factorization of
.\r\n" );
document.write( "\r\n" );
document.write( "But if you forget you can divide that problem out using long division:\r\n" );
document.write( "\r\n" );
document.write( " x4 + x3y + x2y2 + xy3 + y4\r\n" );
document.write( " ---------------------------------------\r\n" );
document.write( "x - y ) x5 + 0x4y + 0x3y2 + 0x2y3 + 0xy4 - y5\r\n" );
document.write( " x5 - x4y\r\n" );
document.write( " ---------\r\n" );
document.write( " x4y + 0x3y2\r\n" );
document.write( " x4y - x3y2\r\n" );
document.write( " -----------\r\n" );
document.write( " x3y2 + 0x2y3\r\n" );
document.write( " x3y2 - x2y3\r\n" );
document.write( " ------------\r\n" );
document.write( " x2y3 + 0xy4\r\n" );
document.write( " x2y3 - xy4\r\n" );
document.write( " -----------\r\n" );
document.write( " xy4 - y5\r\n" );
document.write( " xy4 - y5\r\n" );
document.write( " --------\r\n" );
document.write( " 0\r\n" );
document.write( "\r\n" );
document.write( "So the answer is \r\n" );
document.write( "\r\n" );
document.write( "x4 + x3y + x2y2 + xy3 + y4\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "However if you memorize how to factor
, i.e.,\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "then you will know how to factor
. Then to simplify\r\n" );
document.write( "the expression\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "you will just factor the numerator according to the rule above:\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "
.\r\n" );
document.write( "\r\n" );
document.write( "One thing to remember though, is that although that factorization\r\n" );
document.write( "method holds for all values of N, it only factors COMPLETELY when\r\n" );
document.write( "N is an ODD positive integer. When N is EVEN, you should always \r\n" );
document.write( "begin by factoring it as the difference of two squares. \r\n" );
document.write( "\r\n" );
document.write( "Edwin
\n" );
document.write( "