document.write( "Question 856598: Find the smallest natural number that can be expressed as the sum of the squares of two, not necessarily distinct, natural numbers in two different ways.
\n" ); document.write( "Show all work!\r
\n" ); document.write( "\n" ); document.write( "Thank you!
\n" ); document.write( "-Lulu
\n" ); document.write( "

Algebra.Com's Answer #516201 by KMST(5328)\"\" \"About 
You can put this solution on YOUR website!
My answer is \"highlight%2850%29\" , but my work is not that elegant.
\n" ); document.write( "I would post the problem in the forum of the artofproblemsolving website,
\n" ); document.write( "and then try to understand the very brief and elegant answer obtained there.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "A pair of natural numbers \"a\" and \"b\" (not necessarily different from each other, maybe \"a=b\" ) squared ad up to \"a%5E2%2Bb%5E2\" .
\n" ); document.write( "A different pair of natural numbers \"c\" and \"d\" (not necessarily different from each other) squared ad up to \"c%5E2%2Bd%5E2=a%5E2%2Bb%5E2\" .
\n" ); document.write( "
\n" ); document.write( "One way would be making a table with
\n" ); document.write( "values for \"a\" (from 1 to 10) in the first column,
\n" ); document.write( "values for \"b\" (from 1 to 10) in the first row,
\n" ); document.write( "and the sum of squares \"a%5E2%2Bb%5E2\" where column \"a\" meets row \"b\" .
\n" ); document.write( "Comparing each values on each row, to other values
\n" ); document.write( "on the rows below, we would find many matching sums of squares of the same pair of numbers.
\n" ); document.write( "They are symmetrically arranged to either side of the diagonal.
\n" ); document.write( "We would be looking for matches between sums of squares of different pairs of numbers,
\n" ); document.write( "like \"7%5E2%2B1%5E2=49%2B1=50\" matching \"5%5E2%2B5%5E2=25%2B25=50\" ,
\n" ); document.write( "and \"8%5E2%2B1%5E2=64%2B1=65\" matching \"7%5E2%2B4%5E2=49%2B16=65\" .
\n" ); document.write( "
\n" ); document.write( "Another approach:
\n" ); document.write( "\"c%5E2%2Bd%5E2=a%5E2%2Bb%5E2\"-->\"c%5E2-a%5E2=b%5E2-d%5E2\"-->\"%28c%2Ba%29%28c-a%29=%28b%2Bd%29%28b-d%29\"
\n" ); document.write( "So we need an integer that can be written as two different products,
\n" ); document.write( "\"%28c%2Ba%29%28c-a%29\" and \"%28b%2Bd%29%28b-d%29\" .
\n" ); document.write( "\"15%2A1=5%2A3\" would lead you to solve systems like
\n" ); document.write( "\"system%28c%2Ba=15%2Cc-a=1%29\"-->\"system%28c=8%2Ca=7%29\" and
\n" ); document.write( "\"system%28b%2Bd=5%2Cb-d=3%29\"-->\"system%28b=4%2Cd=1%29\"
\n" ); document.write( "to get \"system%28c%5E2%2Bd%5E2=8%5E2%2B1%5E2=64%2B1-65%2Ca%5E2%2Bb%5E2=7%5E2%2B4%5E2=49%2B16=65%29\"
\n" ); document.write( "
\n" );