document.write( "Question 1148539: The sum of the first m positive odd integers is 212 more than the sum of the first n positive even integers. What is the sum of all possible values of n? \n" ); document.write( "
Algebra.Com's Answer #769891 by greenestamps(13200)\"\" \"About 
You can put this solution on YOUR website!


\n" ); document.write( "The sum of the first m positive odd integers is m^2.

\n" ); document.write( "The sum of the first n positive even integers is n^2+n.

\n" ); document.write( "So the requirement is that m^2 = n^2+n+212; i.e., the square root of (n^2+n+212) must be an integer.

\n" ); document.write( "I don't know an algebraic way to find solutions.

\n" ); document.write( "An excel spreadsheet for calculating the square root of n^2+n+212 shows three solutions:

\n" ); document.write( "n = 16; m = 22
\n" ); document.write( "n = 28; m = 32
\n" ); document.write( "n = 211; m = 212

\n" ); document.write( "So the answer to the given question is 16+28+211 = 255.

\n" ); document.write( "I will be interested to see if any of the other tutors have an algebraic method for finding those solutions....
\n" ); document.write( "
\n" );