Possible Duplicate:
Pythagorean Triplets with “Bounds”
I typed following equations in into Wolfram Alpha -
$a^2 + b^2 = c^2\\ a+b+c=1000 $
It showed me multiple possible integer solutions and also shows the total number of integer solutions.
How is this done? Could I calculate total number of solutions without actually solving for all those solutions?