pythagorean triples exercise

Mel mwilson at
Fri Oct 22 21:34:44 CEST 2010

Mel wrote:

> MRAB wrote:
>> On 22/10/2010 13:33, Baba wrote:
>>> only a has an upper limit of 200
>> Really? The quote you gave included "whose small sides are no larger
>> than n". Note: "sides", plural.
> Strangely, there does seem to be a limit.  Fixing one side at 200, the
> largest pythagorean triple I have found is (200, 9999, 10001.0).  So far
> my math has not been up to explaining why.

Of course.  Sorry.  The difference between 10001**2 and 10002**2 exceeds 
200**2.  So adding a**2 can never even get as far as the next integral 


More information about the Python-list mailing list