Let the first positive integer be x
\n" );
document.write( "Then the second positive integer will be (x+1)
\n" );
document.write( "
\n" );
document.write( "Given that the sum of their squares is 85,we get:
\n" );
document.write( "x^2 + (x+1)^2 = 85
\n" );
document.write( "x^2 + x^2 + 1 + 2x = 85
\n" );
document.write( "2x^2 + 2x = 85-1
\n" );
document.write( "2(x^2+x)=84
\n" );
document.write( "2(x^2+x)=2(42)
\n" );
document.write( "x^2+x=42
\n" );
document.write( "x^2+x-42=0
\n" );
document.write( "x^2-6x+7x-42=0
\n" );
document.write( "(x-6)(x+7)=0
\n" );
document.write( "x=6,-7
\n" );
document.write( "We require positive integers hence x cannot be -7
\n" );
document.write( "therefore,x=6
\n" );
document.write( "
\n" );
document.write( "first number=6
\n" );
document.write( "second number=7
\n" );
document.write( "
\n" );
document.write( "Hope this helps,
\n" );
document.write( "Prabhat
\n" );
document.write( "