Our server costs ~$56 per month to run. Please consider donating or becoming a Patron to help keep the site running. Help us gain new members by following us on Twitter and liking our page on Facebook!
Current time: March 29, 2024, 8:26 am

Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pythagorean Triplet
#1
Pythagorean Triplet
Taken from Project Euler (an epic site btw), this is mainly for the programmers out there, although if you can solve it using a pen and paper, good show.

A Pythagorean triplet is a set of three natural numbers, a < b < c, for which, a2 + b2 = c2

For example, 32 + 42 = 9 + 16 = 25 = 52.

There exists exactly one Pythagorean triplet for which a + b + c = 1000. Find it.

I wrote a quick computer program (in Java) that solves the problem in less than a second 124ms (I just put it through a profiler).
Reply
#2
RE: Pythagorean Triplet

[Image: pPQu8.png]
Reply
#3
RE: Pythagorean Triplet
I can play a triplet from the Phygirian Mode, close enough?
Reply



Possibly Related Threads...
Thread Author Replies Views Last Post
  Proof by Rearrangement of the Pythagorean Theorem FlatAssembler 10 1595 November 22, 2018 at 7:13 pm
Last Post: Reltzik



Users browsing this thread: 1 Guest(s)