[Coco] Project Euler and the Coco

Art Flexser flexser at fiu.edu
Sat Nov 15 21:29:08 EST 2008


Ah, an 8-15-17 Pythagorean triangle scaled up 25 times.  So, a shortcut approach
would have been to sift through small Pythagorean triangles looking for one
whose perimeter went into 1000 evenly, and scale it up appropriately (40 x 25 =
1000).  One formula for generating Pythagorean triangles is to use as sides
2XY, (X^2-Y^2), and (X^2+Y^2), where X and Y can be any two integers with X>Y.
That gives you the 8-15-17 triangle when X=4 and Y=1, or the 200-375-425 one
when X=20 and Y=5.

Art

On Sun, 16 Nov 2008, Mark McDougall wrote:

> Arthur Flexser wrote:
> 
> > (By the way, what ARE those values?)
> 
> 200, 375 & 425
> 
> Regards,
> 
> -- 
> |              Mark McDougall                | "Electrical Engineers do it
> |  <http://members.iinet.net.au/~msmcdoug>   |   with less resistance!"
> 
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
> 




More information about the Coco mailing list