Solve Euler Project #9 only mathematically - Pythagorean tripletProject Euler, Problem #25Solving $phi (n) < (n-1) cdot frac1549994744 $When does $A(x^2+y^2+z^2)=B(xy + yz + xz)$ have nontrivial integer solutions?how to find a relation between remainders when a sequence is givenPythagorean triplet .Is it possible to bound the hypotenuse given the perimeter of an orthogonal triangle?Possible mis-interpretation in Project Euler #21How can i solve this pythagorean triplet problem?An upper bound for truncatable primess

find ".ts" but not ".d.ts"

Missing node when using Tikz package

Can a weapon be "unsheathable"?

Can this crack in the steel chain-side dropout be welded?

Overcrowded German trains

Even and Odd Numbers

Should I provide my username and password for my brokerage account to my mortgage lender to verify my assets?

Would it have been possible to re-fuel the planes in the air?

How and why is my site being abused?

Should I sign a NDA that holds me liable for legal fees even if I am in the right?

Can I use Thaumaturgy to hide the effect of Detect Magic?

Is it possible to make taste of raw oily salmon less pronounced?

Implementation gap in logistics

Identifying Wires behind Light Switch

Texas gun laws - can an overseas visitor buy ammunition?

What to do if some panel members walk out while I'm being interviewed?

How do airlines compute weight allowances for carry-on bags?

As its creator, can Snape reverse Sectumsempra?

How to correctly say Star Wars in Latin?

What is the moral difference between abortion and infanticide?

What sort of professional boundary should I set with other students when I am a grader for a class I will be taking?

Generalised Pascal Triangle with two-periodic formula

Expressing the Riemann Zeta function in terms of GCD and LCM

What is the best way to teach JavaScript functions to middle schoolers?



Solve Euler Project #9 only mathematically - Pythagorean triplet


Project Euler, Problem #25Solving $phi (n) < (n-1) cdot frac1549994744 $When does $A(x^2+y^2+z^2)=B(xy + yz + xz)$ have nontrivial integer solutions?how to find a relation between remainders when a sequence is givenPythagorean triplet .Is it possible to bound the hypotenuse given the perimeter of an orthogonal triangle?Possible mis-interpretation in Project Euler #21How can i solve this pythagorean triplet problem?An upper bound for truncatable primess






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;

.everyonelovesstackoverflowposition:absolute;height:1px;width:1px;opacity:0;top:0;left:0;pointer-events:none;








4















$begingroup$


The "Euler Project" problem 9 (https://projecteuler.net/problem=9) asks to solve:



$a^2$ + $b^2$ = $c^2$

a + b + c = 1000



I find answers solving it with brute-force and programmatically, but is there a way to solve the problem ONLY mathematically? Can someone help, please?



Problem as explained in Project Euler website:

A Pythagorean triplet is a set of three natural numbers, a < b < c, for which,

a^2 + b^2 = c^2
For example, 3^2 + 4^2 = 9 + 16 = 25 = 52.

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

Find the product abc.









share|cite|improve this question











$endgroup$










  • 1




    $begingroup$
    what do you know about triples in general ...
    $endgroup$
    – Roddy MacPhee
    Oct 2 at 19:00






  • 1




    $begingroup$
    I might call what you're asking for "solving manually" instead. After all, the programming solution is certainly a mathematical one.
    $endgroup$
    – Travis Willse
    Oct 3 at 7:20

















4















$begingroup$


The "Euler Project" problem 9 (https://projecteuler.net/problem=9) asks to solve:



$a^2$ + $b^2$ = $c^2$

a + b + c = 1000



I find answers solving it with brute-force and programmatically, but is there a way to solve the problem ONLY mathematically? Can someone help, please?



Problem as explained in Project Euler website:

A Pythagorean triplet is a set of three natural numbers, a < b < c, for which,

a^2 + b^2 = c^2
For example, 3^2 + 4^2 = 9 + 16 = 25 = 52.

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

Find the product abc.









share|cite|improve this question











$endgroup$










  • 1




    $begingroup$
    what do you know about triples in general ...
    $endgroup$
    – Roddy MacPhee
    Oct 2 at 19:00






  • 1




    $begingroup$
    I might call what you're asking for "solving manually" instead. After all, the programming solution is certainly a mathematical one.
    $endgroup$
    – Travis Willse
    Oct 3 at 7:20













4













4









4


1



$begingroup$


The "Euler Project" problem 9 (https://projecteuler.net/problem=9) asks to solve:



$a^2$ + $b^2$ = $c^2$

a + b + c = 1000



I find answers solving it with brute-force and programmatically, but is there a way to solve the problem ONLY mathematically? Can someone help, please?



Problem as explained in Project Euler website:

A Pythagorean triplet is a set of three natural numbers, a < b < c, for which,

a^2 + b^2 = c^2
For example, 3^2 + 4^2 = 9 + 16 = 25 = 52.

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

Find the product abc.









share|cite|improve this question











$endgroup$




The "Euler Project" problem 9 (https://projecteuler.net/problem=9) asks to solve:



$a^2$ + $b^2$ = $c^2$

a + b + c = 1000



I find answers solving it with brute-force and programmatically, but is there a way to solve the problem ONLY mathematically? Can someone help, please?



Problem as explained in Project Euler website:

A Pythagorean triplet is a set of three natural numbers, a < b < c, for which,

a^2 + b^2 = c^2
For example, 3^2 + 4^2 = 9 + 16 = 25 = 52.

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

Find the product abc.






elementary-number-theory pythagorean-triples






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Oct 2 at 19:12









Matthew Daly

12.8k6 gold badges19 silver badges41 bronze badges




12.8k6 gold badges19 silver badges41 bronze badges










asked Oct 2 at 18:50









BeMyGuestPleaseBeMyGuestPlease

433 bronze badges




433 bronze badges










  • 1




    $begingroup$
    what do you know about triples in general ...
    $endgroup$
    – Roddy MacPhee
    Oct 2 at 19:00






  • 1




    $begingroup$
    I might call what you're asking for "solving manually" instead. After all, the programming solution is certainly a mathematical one.
    $endgroup$
    – Travis Willse
    Oct 3 at 7:20












  • 1




    $begingroup$
    what do you know about triples in general ...
    $endgroup$
    – Roddy MacPhee
    Oct 2 at 19:00






  • 1




    $begingroup$
    I might call what you're asking for "solving manually" instead. After all, the programming solution is certainly a mathematical one.
    $endgroup$
    – Travis Willse
    Oct 3 at 7:20







1




1




$begingroup$
what do you know about triples in general ...
$endgroup$
– Roddy MacPhee
Oct 2 at 19:00




$begingroup$
what do you know about triples in general ...
$endgroup$
– Roddy MacPhee
Oct 2 at 19:00




1




1




$begingroup$
I might call what you're asking for "solving manually" instead. After all, the programming solution is certainly a mathematical one.
$endgroup$
– Travis Willse
Oct 3 at 7:20




$begingroup$
I might call what you're asking for "solving manually" instead. After all, the programming solution is certainly a mathematical one.
$endgroup$
– Travis Willse
Oct 3 at 7:20










5 Answers
5






active

oldest

votes


















11

















$begingroup$

Hint Euclid's parameterization of the Pythagorean triples (Elements, Book X, Proposition XXIX) is:
$$a = k (m^2 - n^2), qquad b = 2 k m n, qquad c = k (m^2 + n^2),$$
where $m > n > 0$ and $m, n$ coprime and not both odd.



Substituting in our condition gives
$$1000 = a + b + c = 2 k m (m + n),$$ and clearing the constant leaves $$phantom(ast) qquad 500 = k m (m + n) . qquad (ast)$$
Now, notice that (1) $500 = 2^2 5^3$ has only two distinct prime factors, and (2) since $m$ and $n$ are coprime, so are $m$ and $m + n$.




So, one of $m, m + n$ must be one of $1, 2, 4$ (in fact one of $2, 4$, since $m > n > 0$ implies $m + n > m > 1$) and the other must be one of $1, 5, 25, 125$. Because $m + n > m$, we must have $m in 2, 4$, and so $m + n < 2 m leq 8$. Thus, $m + n = 5$, and $2 m > m + n = 5$ implies $m geq 3$, leaving $m = 4$ as the only possibility. So, $n = 1, k = 25$, and $$color#df0000boxed(a, b, c) = (275, 200, 425) .$$







share|cite|improve this answer












$endgroup$













  • $begingroup$
    Yours is nicer than mine.
    $endgroup$
    – marty cohen
    Oct 2 at 19:48






  • 1




    $begingroup$
    I managed to streamline the part of the proof in the spoiler box a little more.
    $endgroup$
    – Travis Willse
    Oct 2 at 19:55






  • 2




    $begingroup$
    This is beautiful.
    $endgroup$
    – IanF1
    Oct 3 at 6:12










  • $begingroup$
    Cheers, Ian!$!$
    $endgroup$
    – Travis Willse
    Oct 3 at 6:32


















3

















$begingroup$

The triplets are all of the form
$a=u(n^2-m^2),
b=2umn,
c=u(n^2+m^2)
$

with $n > m$
so
$a+b+c
=u(2n^2+2mn)
=2un(n+m)
$
.



We must have
$n > m$.



Therefore
$500
=un(n+m)
$
.



If
$500 = rst
$

with
$s < t$
then
$u = r,
n = s,
n+m = t
$

so
$m = t-n
=t-s
$
.



We must have
$n > m$
so
$s > t-s$
or
$s < t < 2s$.



Playing around a bit,



$500 = 1*20*25$,
so,
swapping $m$ and $n$,
$u = 1, m = 5,
n=20
$

and the sides are
$20^2-5^2 = 375 = 25 15,
2 20 5 = 200 = 25 8,
20^2+5^2 = 425 = 25 17
$
.






share|cite|improve this answer










$endgroup$





















    2

















    $begingroup$

    It is known that all primitive Pythagorean triples (i.e with no common factors) is of the form $(m^2-n^2,2mn,m^2+n^2)$ for relatively prime $m$ and $n$ where one is even and the other is odd.



    Based on that, you are looking for $m$ and $n$ such that $$(m^2-n^2)+2mn+(m^2+n^2)=2m^2+2mn=2m(m+n)$$ is a factor of $1000$.






    share|cite|improve this answer










    $endgroup$













    • $begingroup$
      Which then restricts $m,n$ because $m,n$ being 1 mod 3, force divisibility by 3. $m$ being 2 mod 3 Also can't work with $n$ 1 mod 3, and neither can both being 0 mod 3. that cuts down the work.
      $endgroup$
      – Roddy MacPhee
      Oct 2 at 20:48


















    1

















    $begingroup$

    If the Pythagorean parameterization is a little advanced, be rest assured that it is unnecessary. One can simply rewrite the condition as:
    $$c = 1000 - a - b$$
    And simply substitute into the Pythagorean Theorem as:
    $$a^2+b^2=(1000-a-b)^2 = 1,000,000 + a^2+b^2 - 2000a-2000b+2ab$$
    We can easily rewrite this as:
    $$ab - 1000a-1000b + 500,000 = 0$$
    Now we employ Simon's Favorite Factoring Trick to "factor" this as:
    $$(a-1000)(b-1000) = 500,000$$
    Now both $a$ and $b$ are less than $1000$, so perhaps it would be better to have this written in the form:
    $$(1000-a)(1000-b) = 500,000$$
    In other words, we are seeking two factors, both less than a thousand, that multiply to $500,000$.



    There are many ways to finish, including some simple guess-and-checking. Fortunately, there is a relatively clean finish. One could potentially now observe that $500,000 approx 490,000 = 700^2$, so perhaps our factors are around $700$. This is a decent ballpark to start with. Now, one could observe that our factors perhaps could have been $500$ and $1000$, but unfortunately one of these is not less than $1000$. We could instead say that our factors must be between $500$ and $1000$. If our factors were to be $F_1,F_2$, we can write:
    $$500 < F_1,F_2 < 1000$$
    We now try to tighten this bound, keeping in mind that both factors must satisfy it. Firstly, we note that $500,000 = 2^5 cdot 5^6$. It would be quite ridiculous if, say, $F_1$ were to have no factors of $5$, for then the maximum value it could have be would be $32$, which is for sure outside of these bounds. So for each of our factors, we can say that they contain a factor of 5. Donating our two factors of 5, we're left with $2^5 cdot 5^4$, and they satisfy some new bounds:
    $$100 < fracF_15,fracF_25 < 200$$
    Continuing, it would be equally ridiculous if $fracF_15$ had no factors of 5 either, since $32$ is still outside of these bounds. Donating an additional two factors of 5, we're left with $2^5 cdot 5^2$ to work with, and the following bounds:
    $$20 < fracF_15^2,fracF_25^2 < 40$$
    At this point, we can stop with the reduction, and see that by inspection, we have both $32$ and $25$ satisfying this inequality, and so $32*25 = 800$ and $25*25 = 625$ would be our factors. Some simple thought can tell us that really, this is the only solution that can satisfy these bounds. Namely, if within the last obtained inequality, we somehow found another two numbers that satisfied it that multiplied to $2^5 cdot 5^2$, then surely one of these numbers would be a $10$. But $10$ does not satisfy the bounds, and multiplying it by either some 2s or 5s will jump over the whole interval $(20,40)$, so no such alternate solution can exist. Now, the rest of the problem is routine. We write:
    $$1000 - a = 800$$
    $$1000 - b = 625$$
    And so $a = 200$ and $b = 375$.






    share|cite|improve this answer










    $endgroup$













    • $begingroup$
      Nitpick, please don't call the diophantine equation $a^2+b^2=c^2$ the Pythagorean Theorem. They might have the same equation, but are unrelated in this case since you're not invoking any geometry.
      $endgroup$
      – YiFan
      Oct 3 at 5:46


















    1

















    $begingroup$

    Given perimeter: $qquad P=(m^2-n^2 )+2mn+(m^2+n^2 )=2m^2+2mnqquad $ If we solve for $n$, we can find if there exists one or more $m,n$ combinations for a Pythagorean triple with that perimeter. Any value of $m$ that yields an integer $n$ gives us such an $m,n$ combination. We let:



    $$n=fracP-2m^22mquad where quad biggllceilfracsqrtP2biggrrceille m le biggllfloorsqrtfracP2biggrrfloor$$
    Here, the lower limit ensures that $m>n$ and the upper limit insures that $n>0$. For example:



    $$P=1000implies biggllceilfracsqrt10002biggrrceil =16le m le biggllfloorsqrtfrac10002biggrrfloor=22$$



    In this range, we find that only $20$ is a factor of $1000$ and the only value of $m$ that yields and integer $n$. We find that $m=20implies n=5$, and, using Euclid's formula $F(m,n)$, we have $F(20,5)=(375,200,425)$. Then, the product, as I understand it, is $$Atimes Btimes C=375times200times425=31875000.$$






    share|cite|improve this answer












    $endgroup$















      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "69"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      noCode: true, onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );














      draft saved

      draft discarded
















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3378407%2fsolve-euler-project-9-only-mathematically-pythagorean-triplet%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown


























      5 Answers
      5






      active

      oldest

      votes








      5 Answers
      5






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      11

















      $begingroup$

      Hint Euclid's parameterization of the Pythagorean triples (Elements, Book X, Proposition XXIX) is:
      $$a = k (m^2 - n^2), qquad b = 2 k m n, qquad c = k (m^2 + n^2),$$
      where $m > n > 0$ and $m, n$ coprime and not both odd.



      Substituting in our condition gives
      $$1000 = a + b + c = 2 k m (m + n),$$ and clearing the constant leaves $$phantom(ast) qquad 500 = k m (m + n) . qquad (ast)$$
      Now, notice that (1) $500 = 2^2 5^3$ has only two distinct prime factors, and (2) since $m$ and $n$ are coprime, so are $m$ and $m + n$.




      So, one of $m, m + n$ must be one of $1, 2, 4$ (in fact one of $2, 4$, since $m > n > 0$ implies $m + n > m > 1$) and the other must be one of $1, 5, 25, 125$. Because $m + n > m$, we must have $m in 2, 4$, and so $m + n < 2 m leq 8$. Thus, $m + n = 5$, and $2 m > m + n = 5$ implies $m geq 3$, leaving $m = 4$ as the only possibility. So, $n = 1, k = 25$, and $$color#df0000boxed(a, b, c) = (275, 200, 425) .$$







      share|cite|improve this answer












      $endgroup$













      • $begingroup$
        Yours is nicer than mine.
        $endgroup$
        – marty cohen
        Oct 2 at 19:48






      • 1




        $begingroup$
        I managed to streamline the part of the proof in the spoiler box a little more.
        $endgroup$
        – Travis Willse
        Oct 2 at 19:55






      • 2




        $begingroup$
        This is beautiful.
        $endgroup$
        – IanF1
        Oct 3 at 6:12










      • $begingroup$
        Cheers, Ian!$!$
        $endgroup$
        – Travis Willse
        Oct 3 at 6:32















      11

















      $begingroup$

      Hint Euclid's parameterization of the Pythagorean triples (Elements, Book X, Proposition XXIX) is:
      $$a = k (m^2 - n^2), qquad b = 2 k m n, qquad c = k (m^2 + n^2),$$
      where $m > n > 0$ and $m, n$ coprime and not both odd.



      Substituting in our condition gives
      $$1000 = a + b + c = 2 k m (m + n),$$ and clearing the constant leaves $$phantom(ast) qquad 500 = k m (m + n) . qquad (ast)$$
      Now, notice that (1) $500 = 2^2 5^3$ has only two distinct prime factors, and (2) since $m$ and $n$ are coprime, so are $m$ and $m + n$.




      So, one of $m, m + n$ must be one of $1, 2, 4$ (in fact one of $2, 4$, since $m > n > 0$ implies $m + n > m > 1$) and the other must be one of $1, 5, 25, 125$. Because $m + n > m$, we must have $m in 2, 4$, and so $m + n < 2 m leq 8$. Thus, $m + n = 5$, and $2 m > m + n = 5$ implies $m geq 3$, leaving $m = 4$ as the only possibility. So, $n = 1, k = 25$, and $$color#df0000boxed(a, b, c) = (275, 200, 425) .$$







      share|cite|improve this answer












      $endgroup$













      • $begingroup$
        Yours is nicer than mine.
        $endgroup$
        – marty cohen
        Oct 2 at 19:48






      • 1




        $begingroup$
        I managed to streamline the part of the proof in the spoiler box a little more.
        $endgroup$
        – Travis Willse
        Oct 2 at 19:55






      • 2




        $begingroup$
        This is beautiful.
        $endgroup$
        – IanF1
        Oct 3 at 6:12










      • $begingroup$
        Cheers, Ian!$!$
        $endgroup$
        – Travis Willse
        Oct 3 at 6:32













      11















      11











      11







      $begingroup$

      Hint Euclid's parameterization of the Pythagorean triples (Elements, Book X, Proposition XXIX) is:
      $$a = k (m^2 - n^2), qquad b = 2 k m n, qquad c = k (m^2 + n^2),$$
      where $m > n > 0$ and $m, n$ coprime and not both odd.



      Substituting in our condition gives
      $$1000 = a + b + c = 2 k m (m + n),$$ and clearing the constant leaves $$phantom(ast) qquad 500 = k m (m + n) . qquad (ast)$$
      Now, notice that (1) $500 = 2^2 5^3$ has only two distinct prime factors, and (2) since $m$ and $n$ are coprime, so are $m$ and $m + n$.




      So, one of $m, m + n$ must be one of $1, 2, 4$ (in fact one of $2, 4$, since $m > n > 0$ implies $m + n > m > 1$) and the other must be one of $1, 5, 25, 125$. Because $m + n > m$, we must have $m in 2, 4$, and so $m + n < 2 m leq 8$. Thus, $m + n = 5$, and $2 m > m + n = 5$ implies $m geq 3$, leaving $m = 4$ as the only possibility. So, $n = 1, k = 25$, and $$color#df0000boxed(a, b, c) = (275, 200, 425) .$$







      share|cite|improve this answer












      $endgroup$



      Hint Euclid's parameterization of the Pythagorean triples (Elements, Book X, Proposition XXIX) is:
      $$a = k (m^2 - n^2), qquad b = 2 k m n, qquad c = k (m^2 + n^2),$$
      where $m > n > 0$ and $m, n$ coprime and not both odd.



      Substituting in our condition gives
      $$1000 = a + b + c = 2 k m (m + n),$$ and clearing the constant leaves $$phantom(ast) qquad 500 = k m (m + n) . qquad (ast)$$
      Now, notice that (1) $500 = 2^2 5^3$ has only two distinct prime factors, and (2) since $m$ and $n$ are coprime, so are $m$ and $m + n$.




      So, one of $m, m + n$ must be one of $1, 2, 4$ (in fact one of $2, 4$, since $m > n > 0$ implies $m + n > m > 1$) and the other must be one of $1, 5, 25, 125$. Because $m + n > m$, we must have $m in 2, 4$, and so $m + n < 2 m leq 8$. Thus, $m + n = 5$, and $2 m > m + n = 5$ implies $m geq 3$, leaving $m = 4$ as the only possibility. So, $n = 1, k = 25$, and $$color#df0000boxed(a, b, c) = (275, 200, 425) .$$








      share|cite|improve this answer















      share|cite|improve this answer




      share|cite|improve this answer








      edited Oct 5 at 23:23

























      answered Oct 2 at 19:45









      Travis WillseTravis Willse

      73.2k8 gold badges78 silver badges171 bronze badges




      73.2k8 gold badges78 silver badges171 bronze badges














      • $begingroup$
        Yours is nicer than mine.
        $endgroup$
        – marty cohen
        Oct 2 at 19:48






      • 1




        $begingroup$
        I managed to streamline the part of the proof in the spoiler box a little more.
        $endgroup$
        – Travis Willse
        Oct 2 at 19:55






      • 2




        $begingroup$
        This is beautiful.
        $endgroup$
        – IanF1
        Oct 3 at 6:12










      • $begingroup$
        Cheers, Ian!$!$
        $endgroup$
        – Travis Willse
        Oct 3 at 6:32
















      • $begingroup$
        Yours is nicer than mine.
        $endgroup$
        – marty cohen
        Oct 2 at 19:48






      • 1




        $begingroup$
        I managed to streamline the part of the proof in the spoiler box a little more.
        $endgroup$
        – Travis Willse
        Oct 2 at 19:55






      • 2




        $begingroup$
        This is beautiful.
        $endgroup$
        – IanF1
        Oct 3 at 6:12










      • $begingroup$
        Cheers, Ian!$!$
        $endgroup$
        – Travis Willse
        Oct 3 at 6:32















      $begingroup$
      Yours is nicer than mine.
      $endgroup$
      – marty cohen
      Oct 2 at 19:48




      $begingroup$
      Yours is nicer than mine.
      $endgroup$
      – marty cohen
      Oct 2 at 19:48




      1




      1




      $begingroup$
      I managed to streamline the part of the proof in the spoiler box a little more.
      $endgroup$
      – Travis Willse
      Oct 2 at 19:55




      $begingroup$
      I managed to streamline the part of the proof in the spoiler box a little more.
      $endgroup$
      – Travis Willse
      Oct 2 at 19:55




      2




      2




      $begingroup$
      This is beautiful.
      $endgroup$
      – IanF1
      Oct 3 at 6:12




      $begingroup$
      This is beautiful.
      $endgroup$
      – IanF1
      Oct 3 at 6:12












      $begingroup$
      Cheers, Ian!$!$
      $endgroup$
      – Travis Willse
      Oct 3 at 6:32




      $begingroup$
      Cheers, Ian!$!$
      $endgroup$
      – Travis Willse
      Oct 3 at 6:32













      3

















      $begingroup$

      The triplets are all of the form
      $a=u(n^2-m^2),
      b=2umn,
      c=u(n^2+m^2)
      $

      with $n > m$
      so
      $a+b+c
      =u(2n^2+2mn)
      =2un(n+m)
      $
      .



      We must have
      $n > m$.



      Therefore
      $500
      =un(n+m)
      $
      .



      If
      $500 = rst
      $

      with
      $s < t$
      then
      $u = r,
      n = s,
      n+m = t
      $

      so
      $m = t-n
      =t-s
      $
      .



      We must have
      $n > m$
      so
      $s > t-s$
      or
      $s < t < 2s$.



      Playing around a bit,



      $500 = 1*20*25$,
      so,
      swapping $m$ and $n$,
      $u = 1, m = 5,
      n=20
      $

      and the sides are
      $20^2-5^2 = 375 = 25 15,
      2 20 5 = 200 = 25 8,
      20^2+5^2 = 425 = 25 17
      $
      .






      share|cite|improve this answer










      $endgroup$


















        3

















        $begingroup$

        The triplets are all of the form
        $a=u(n^2-m^2),
        b=2umn,
        c=u(n^2+m^2)
        $

        with $n > m$
        so
        $a+b+c
        =u(2n^2+2mn)
        =2un(n+m)
        $
        .



        We must have
        $n > m$.



        Therefore
        $500
        =un(n+m)
        $
        .



        If
        $500 = rst
        $

        with
        $s < t$
        then
        $u = r,
        n = s,
        n+m = t
        $

        so
        $m = t-n
        =t-s
        $
        .



        We must have
        $n > m$
        so
        $s > t-s$
        or
        $s < t < 2s$.



        Playing around a bit,



        $500 = 1*20*25$,
        so,
        swapping $m$ and $n$,
        $u = 1, m = 5,
        n=20
        $

        and the sides are
        $20^2-5^2 = 375 = 25 15,
        2 20 5 = 200 = 25 8,
        20^2+5^2 = 425 = 25 17
        $
        .






        share|cite|improve this answer










        $endgroup$
















          3















          3











          3







          $begingroup$

          The triplets are all of the form
          $a=u(n^2-m^2),
          b=2umn,
          c=u(n^2+m^2)
          $

          with $n > m$
          so
          $a+b+c
          =u(2n^2+2mn)
          =2un(n+m)
          $
          .



          We must have
          $n > m$.



          Therefore
          $500
          =un(n+m)
          $
          .



          If
          $500 = rst
          $

          with
          $s < t$
          then
          $u = r,
          n = s,
          n+m = t
          $

          so
          $m = t-n
          =t-s
          $
          .



          We must have
          $n > m$
          so
          $s > t-s$
          or
          $s < t < 2s$.



          Playing around a bit,



          $500 = 1*20*25$,
          so,
          swapping $m$ and $n$,
          $u = 1, m = 5,
          n=20
          $

          and the sides are
          $20^2-5^2 = 375 = 25 15,
          2 20 5 = 200 = 25 8,
          20^2+5^2 = 425 = 25 17
          $
          .






          share|cite|improve this answer










          $endgroup$



          The triplets are all of the form
          $a=u(n^2-m^2),
          b=2umn,
          c=u(n^2+m^2)
          $

          with $n > m$
          so
          $a+b+c
          =u(2n^2+2mn)
          =2un(n+m)
          $
          .



          We must have
          $n > m$.



          Therefore
          $500
          =un(n+m)
          $
          .



          If
          $500 = rst
          $

          with
          $s < t$
          then
          $u = r,
          n = s,
          n+m = t
          $

          so
          $m = t-n
          =t-s
          $
          .



          We must have
          $n > m$
          so
          $s > t-s$
          or
          $s < t < 2s$.



          Playing around a bit,



          $500 = 1*20*25$,
          so,
          swapping $m$ and $n$,
          $u = 1, m = 5,
          n=20
          $

          and the sides are
          $20^2-5^2 = 375 = 25 15,
          2 20 5 = 200 = 25 8,
          20^2+5^2 = 425 = 25 17
          $
          .







          share|cite|improve this answer













          share|cite|improve this answer




          share|cite|improve this answer










          answered Oct 2 at 19:19









          marty cohenmarty cohen

          86.1k7 gold badges53 silver badges137 bronze badges




          86.1k7 gold badges53 silver badges137 bronze badges
























              2

















              $begingroup$

              It is known that all primitive Pythagorean triples (i.e with no common factors) is of the form $(m^2-n^2,2mn,m^2+n^2)$ for relatively prime $m$ and $n$ where one is even and the other is odd.



              Based on that, you are looking for $m$ and $n$ such that $$(m^2-n^2)+2mn+(m^2+n^2)=2m^2+2mn=2m(m+n)$$ is a factor of $1000$.






              share|cite|improve this answer










              $endgroup$













              • $begingroup$
                Which then restricts $m,n$ because $m,n$ being 1 mod 3, force divisibility by 3. $m$ being 2 mod 3 Also can't work with $n$ 1 mod 3, and neither can both being 0 mod 3. that cuts down the work.
                $endgroup$
                – Roddy MacPhee
                Oct 2 at 20:48















              2

















              $begingroup$

              It is known that all primitive Pythagorean triples (i.e with no common factors) is of the form $(m^2-n^2,2mn,m^2+n^2)$ for relatively prime $m$ and $n$ where one is even and the other is odd.



              Based on that, you are looking for $m$ and $n$ such that $$(m^2-n^2)+2mn+(m^2+n^2)=2m^2+2mn=2m(m+n)$$ is a factor of $1000$.






              share|cite|improve this answer










              $endgroup$













              • $begingroup$
                Which then restricts $m,n$ because $m,n$ being 1 mod 3, force divisibility by 3. $m$ being 2 mod 3 Also can't work with $n$ 1 mod 3, and neither can both being 0 mod 3. that cuts down the work.
                $endgroup$
                – Roddy MacPhee
                Oct 2 at 20:48













              2















              2











              2







              $begingroup$

              It is known that all primitive Pythagorean triples (i.e with no common factors) is of the form $(m^2-n^2,2mn,m^2+n^2)$ for relatively prime $m$ and $n$ where one is even and the other is odd.



              Based on that, you are looking for $m$ and $n$ such that $$(m^2-n^2)+2mn+(m^2+n^2)=2m^2+2mn=2m(m+n)$$ is a factor of $1000$.






              share|cite|improve this answer










              $endgroup$



              It is known that all primitive Pythagorean triples (i.e with no common factors) is of the form $(m^2-n^2,2mn,m^2+n^2)$ for relatively prime $m$ and $n$ where one is even and the other is odd.



              Based on that, you are looking for $m$ and $n$ such that $$(m^2-n^2)+2mn+(m^2+n^2)=2m^2+2mn=2m(m+n)$$ is a factor of $1000$.







              share|cite|improve this answer













              share|cite|improve this answer




              share|cite|improve this answer










              answered Oct 2 at 19:09









              Matthew DalyMatthew Daly

              12.8k6 gold badges19 silver badges41 bronze badges




              12.8k6 gold badges19 silver badges41 bronze badges














              • $begingroup$
                Which then restricts $m,n$ because $m,n$ being 1 mod 3, force divisibility by 3. $m$ being 2 mod 3 Also can't work with $n$ 1 mod 3, and neither can both being 0 mod 3. that cuts down the work.
                $endgroup$
                – Roddy MacPhee
                Oct 2 at 20:48
















              • $begingroup$
                Which then restricts $m,n$ because $m,n$ being 1 mod 3, force divisibility by 3. $m$ being 2 mod 3 Also can't work with $n$ 1 mod 3, and neither can both being 0 mod 3. that cuts down the work.
                $endgroup$
                – Roddy MacPhee
                Oct 2 at 20:48















              $begingroup$
              Which then restricts $m,n$ because $m,n$ being 1 mod 3, force divisibility by 3. $m$ being 2 mod 3 Also can't work with $n$ 1 mod 3, and neither can both being 0 mod 3. that cuts down the work.
              $endgroup$
              – Roddy MacPhee
              Oct 2 at 20:48




              $begingroup$
              Which then restricts $m,n$ because $m,n$ being 1 mod 3, force divisibility by 3. $m$ being 2 mod 3 Also can't work with $n$ 1 mod 3, and neither can both being 0 mod 3. that cuts down the work.
              $endgroup$
              – Roddy MacPhee
              Oct 2 at 20:48











              1

















              $begingroup$

              If the Pythagorean parameterization is a little advanced, be rest assured that it is unnecessary. One can simply rewrite the condition as:
              $$c = 1000 - a - b$$
              And simply substitute into the Pythagorean Theorem as:
              $$a^2+b^2=(1000-a-b)^2 = 1,000,000 + a^2+b^2 - 2000a-2000b+2ab$$
              We can easily rewrite this as:
              $$ab - 1000a-1000b + 500,000 = 0$$
              Now we employ Simon's Favorite Factoring Trick to "factor" this as:
              $$(a-1000)(b-1000) = 500,000$$
              Now both $a$ and $b$ are less than $1000$, so perhaps it would be better to have this written in the form:
              $$(1000-a)(1000-b) = 500,000$$
              In other words, we are seeking two factors, both less than a thousand, that multiply to $500,000$.



              There are many ways to finish, including some simple guess-and-checking. Fortunately, there is a relatively clean finish. One could potentially now observe that $500,000 approx 490,000 = 700^2$, so perhaps our factors are around $700$. This is a decent ballpark to start with. Now, one could observe that our factors perhaps could have been $500$ and $1000$, but unfortunately one of these is not less than $1000$. We could instead say that our factors must be between $500$ and $1000$. If our factors were to be $F_1,F_2$, we can write:
              $$500 < F_1,F_2 < 1000$$
              We now try to tighten this bound, keeping in mind that both factors must satisfy it. Firstly, we note that $500,000 = 2^5 cdot 5^6$. It would be quite ridiculous if, say, $F_1$ were to have no factors of $5$, for then the maximum value it could have be would be $32$, which is for sure outside of these bounds. So for each of our factors, we can say that they contain a factor of 5. Donating our two factors of 5, we're left with $2^5 cdot 5^4$, and they satisfy some new bounds:
              $$100 < fracF_15,fracF_25 < 200$$
              Continuing, it would be equally ridiculous if $fracF_15$ had no factors of 5 either, since $32$ is still outside of these bounds. Donating an additional two factors of 5, we're left with $2^5 cdot 5^2$ to work with, and the following bounds:
              $$20 < fracF_15^2,fracF_25^2 < 40$$
              At this point, we can stop with the reduction, and see that by inspection, we have both $32$ and $25$ satisfying this inequality, and so $32*25 = 800$ and $25*25 = 625$ would be our factors. Some simple thought can tell us that really, this is the only solution that can satisfy these bounds. Namely, if within the last obtained inequality, we somehow found another two numbers that satisfied it that multiplied to $2^5 cdot 5^2$, then surely one of these numbers would be a $10$. But $10$ does not satisfy the bounds, and multiplying it by either some 2s or 5s will jump over the whole interval $(20,40)$, so no such alternate solution can exist. Now, the rest of the problem is routine. We write:
              $$1000 - a = 800$$
              $$1000 - b = 625$$
              And so $a = 200$ and $b = 375$.






              share|cite|improve this answer










              $endgroup$













              • $begingroup$
                Nitpick, please don't call the diophantine equation $a^2+b^2=c^2$ the Pythagorean Theorem. They might have the same equation, but are unrelated in this case since you're not invoking any geometry.
                $endgroup$
                – YiFan
                Oct 3 at 5:46















              1

















              $begingroup$

              If the Pythagorean parameterization is a little advanced, be rest assured that it is unnecessary. One can simply rewrite the condition as:
              $$c = 1000 - a - b$$
              And simply substitute into the Pythagorean Theorem as:
              $$a^2+b^2=(1000-a-b)^2 = 1,000,000 + a^2+b^2 - 2000a-2000b+2ab$$
              We can easily rewrite this as:
              $$ab - 1000a-1000b + 500,000 = 0$$
              Now we employ Simon's Favorite Factoring Trick to "factor" this as:
              $$(a-1000)(b-1000) = 500,000$$
              Now both $a$ and $b$ are less than $1000$, so perhaps it would be better to have this written in the form:
              $$(1000-a)(1000-b) = 500,000$$
              In other words, we are seeking two factors, both less than a thousand, that multiply to $500,000$.



              There are many ways to finish, including some simple guess-and-checking. Fortunately, there is a relatively clean finish. One could potentially now observe that $500,000 approx 490,000 = 700^2$, so perhaps our factors are around $700$. This is a decent ballpark to start with. Now, one could observe that our factors perhaps could have been $500$ and $1000$, but unfortunately one of these is not less than $1000$. We could instead say that our factors must be between $500$ and $1000$. If our factors were to be $F_1,F_2$, we can write:
              $$500 < F_1,F_2 < 1000$$
              We now try to tighten this bound, keeping in mind that both factors must satisfy it. Firstly, we note that $500,000 = 2^5 cdot 5^6$. It would be quite ridiculous if, say, $F_1$ were to have no factors of $5$, for then the maximum value it could have be would be $32$, which is for sure outside of these bounds. So for each of our factors, we can say that they contain a factor of 5. Donating our two factors of 5, we're left with $2^5 cdot 5^4$, and they satisfy some new bounds:
              $$100 < fracF_15,fracF_25 < 200$$
              Continuing, it would be equally ridiculous if $fracF_15$ had no factors of 5 either, since $32$ is still outside of these bounds. Donating an additional two factors of 5, we're left with $2^5 cdot 5^2$ to work with, and the following bounds:
              $$20 < fracF_15^2,fracF_25^2 < 40$$
              At this point, we can stop with the reduction, and see that by inspection, we have both $32$ and $25$ satisfying this inequality, and so $32*25 = 800$ and $25*25 = 625$ would be our factors. Some simple thought can tell us that really, this is the only solution that can satisfy these bounds. Namely, if within the last obtained inequality, we somehow found another two numbers that satisfied it that multiplied to $2^5 cdot 5^2$, then surely one of these numbers would be a $10$. But $10$ does not satisfy the bounds, and multiplying it by either some 2s or 5s will jump over the whole interval $(20,40)$, so no such alternate solution can exist. Now, the rest of the problem is routine. We write:
              $$1000 - a = 800$$
              $$1000 - b = 625$$
              And so $a = 200$ and $b = 375$.






              share|cite|improve this answer










              $endgroup$













              • $begingroup$
                Nitpick, please don't call the diophantine equation $a^2+b^2=c^2$ the Pythagorean Theorem. They might have the same equation, but are unrelated in this case since you're not invoking any geometry.
                $endgroup$
                – YiFan
                Oct 3 at 5:46













              1















              1











              1







              $begingroup$

              If the Pythagorean parameterization is a little advanced, be rest assured that it is unnecessary. One can simply rewrite the condition as:
              $$c = 1000 - a - b$$
              And simply substitute into the Pythagorean Theorem as:
              $$a^2+b^2=(1000-a-b)^2 = 1,000,000 + a^2+b^2 - 2000a-2000b+2ab$$
              We can easily rewrite this as:
              $$ab - 1000a-1000b + 500,000 = 0$$
              Now we employ Simon's Favorite Factoring Trick to "factor" this as:
              $$(a-1000)(b-1000) = 500,000$$
              Now both $a$ and $b$ are less than $1000$, so perhaps it would be better to have this written in the form:
              $$(1000-a)(1000-b) = 500,000$$
              In other words, we are seeking two factors, both less than a thousand, that multiply to $500,000$.



              There are many ways to finish, including some simple guess-and-checking. Fortunately, there is a relatively clean finish. One could potentially now observe that $500,000 approx 490,000 = 700^2$, so perhaps our factors are around $700$. This is a decent ballpark to start with. Now, one could observe that our factors perhaps could have been $500$ and $1000$, but unfortunately one of these is not less than $1000$. We could instead say that our factors must be between $500$ and $1000$. If our factors were to be $F_1,F_2$, we can write:
              $$500 < F_1,F_2 < 1000$$
              We now try to tighten this bound, keeping in mind that both factors must satisfy it. Firstly, we note that $500,000 = 2^5 cdot 5^6$. It would be quite ridiculous if, say, $F_1$ were to have no factors of $5$, for then the maximum value it could have be would be $32$, which is for sure outside of these bounds. So for each of our factors, we can say that they contain a factor of 5. Donating our two factors of 5, we're left with $2^5 cdot 5^4$, and they satisfy some new bounds:
              $$100 < fracF_15,fracF_25 < 200$$
              Continuing, it would be equally ridiculous if $fracF_15$ had no factors of 5 either, since $32$ is still outside of these bounds. Donating an additional two factors of 5, we're left with $2^5 cdot 5^2$ to work with, and the following bounds:
              $$20 < fracF_15^2,fracF_25^2 < 40$$
              At this point, we can stop with the reduction, and see that by inspection, we have both $32$ and $25$ satisfying this inequality, and so $32*25 = 800$ and $25*25 = 625$ would be our factors. Some simple thought can tell us that really, this is the only solution that can satisfy these bounds. Namely, if within the last obtained inequality, we somehow found another two numbers that satisfied it that multiplied to $2^5 cdot 5^2$, then surely one of these numbers would be a $10$. But $10$ does not satisfy the bounds, and multiplying it by either some 2s or 5s will jump over the whole interval $(20,40)$, so no such alternate solution can exist. Now, the rest of the problem is routine. We write:
              $$1000 - a = 800$$
              $$1000 - b = 625$$
              And so $a = 200$ and $b = 375$.






              share|cite|improve this answer










              $endgroup$



              If the Pythagorean parameterization is a little advanced, be rest assured that it is unnecessary. One can simply rewrite the condition as:
              $$c = 1000 - a - b$$
              And simply substitute into the Pythagorean Theorem as:
              $$a^2+b^2=(1000-a-b)^2 = 1,000,000 + a^2+b^2 - 2000a-2000b+2ab$$
              We can easily rewrite this as:
              $$ab - 1000a-1000b + 500,000 = 0$$
              Now we employ Simon's Favorite Factoring Trick to "factor" this as:
              $$(a-1000)(b-1000) = 500,000$$
              Now both $a$ and $b$ are less than $1000$, so perhaps it would be better to have this written in the form:
              $$(1000-a)(1000-b) = 500,000$$
              In other words, we are seeking two factors, both less than a thousand, that multiply to $500,000$.



              There are many ways to finish, including some simple guess-and-checking. Fortunately, there is a relatively clean finish. One could potentially now observe that $500,000 approx 490,000 = 700^2$, so perhaps our factors are around $700$. This is a decent ballpark to start with. Now, one could observe that our factors perhaps could have been $500$ and $1000$, but unfortunately one of these is not less than $1000$. We could instead say that our factors must be between $500$ and $1000$. If our factors were to be $F_1,F_2$, we can write:
              $$500 < F_1,F_2 < 1000$$
              We now try to tighten this bound, keeping in mind that both factors must satisfy it. Firstly, we note that $500,000 = 2^5 cdot 5^6$. It would be quite ridiculous if, say, $F_1$ were to have no factors of $5$, for then the maximum value it could have be would be $32$, which is for sure outside of these bounds. So for each of our factors, we can say that they contain a factor of 5. Donating our two factors of 5, we're left with $2^5 cdot 5^4$, and they satisfy some new bounds:
              $$100 < fracF_15,fracF_25 < 200$$
              Continuing, it would be equally ridiculous if $fracF_15$ had no factors of 5 either, since $32$ is still outside of these bounds. Donating an additional two factors of 5, we're left with $2^5 cdot 5^2$ to work with, and the following bounds:
              $$20 < fracF_15^2,fracF_25^2 < 40$$
              At this point, we can stop with the reduction, and see that by inspection, we have both $32$ and $25$ satisfying this inequality, and so $32*25 = 800$ and $25*25 = 625$ would be our factors. Some simple thought can tell us that really, this is the only solution that can satisfy these bounds. Namely, if within the last obtained inequality, we somehow found another two numbers that satisfied it that multiplied to $2^5 cdot 5^2$, then surely one of these numbers would be a $10$. But $10$ does not satisfy the bounds, and multiplying it by either some 2s or 5s will jump over the whole interval $(20,40)$, so no such alternate solution can exist. Now, the rest of the problem is routine. We write:
              $$1000 - a = 800$$
              $$1000 - b = 625$$
              And so $a = 200$ and $b = 375$.







              share|cite|improve this answer













              share|cite|improve this answer




              share|cite|improve this answer










              answered Oct 3 at 4:23









              greenturtle3141greenturtle3141

              5723 silver badges11 bronze badges




              5723 silver badges11 bronze badges














              • $begingroup$
                Nitpick, please don't call the diophantine equation $a^2+b^2=c^2$ the Pythagorean Theorem. They might have the same equation, but are unrelated in this case since you're not invoking any geometry.
                $endgroup$
                – YiFan
                Oct 3 at 5:46
















              • $begingroup$
                Nitpick, please don't call the diophantine equation $a^2+b^2=c^2$ the Pythagorean Theorem. They might have the same equation, but are unrelated in this case since you're not invoking any geometry.
                $endgroup$
                – YiFan
                Oct 3 at 5:46















              $begingroup$
              Nitpick, please don't call the diophantine equation $a^2+b^2=c^2$ the Pythagorean Theorem. They might have the same equation, but are unrelated in this case since you're not invoking any geometry.
              $endgroup$
              – YiFan
              Oct 3 at 5:46




              $begingroup$
              Nitpick, please don't call the diophantine equation $a^2+b^2=c^2$ the Pythagorean Theorem. They might have the same equation, but are unrelated in this case since you're not invoking any geometry.
              $endgroup$
              – YiFan
              Oct 3 at 5:46











              1

















              $begingroup$

              Given perimeter: $qquad P=(m^2-n^2 )+2mn+(m^2+n^2 )=2m^2+2mnqquad $ If we solve for $n$, we can find if there exists one or more $m,n$ combinations for a Pythagorean triple with that perimeter. Any value of $m$ that yields an integer $n$ gives us such an $m,n$ combination. We let:



              $$n=fracP-2m^22mquad where quad biggllceilfracsqrtP2biggrrceille m le biggllfloorsqrtfracP2biggrrfloor$$
              Here, the lower limit ensures that $m>n$ and the upper limit insures that $n>0$. For example:



              $$P=1000implies biggllceilfracsqrt10002biggrrceil =16le m le biggllfloorsqrtfrac10002biggrrfloor=22$$



              In this range, we find that only $20$ is a factor of $1000$ and the only value of $m$ that yields and integer $n$. We find that $m=20implies n=5$, and, using Euclid's formula $F(m,n)$, we have $F(20,5)=(375,200,425)$. Then, the product, as I understand it, is $$Atimes Btimes C=375times200times425=31875000.$$






              share|cite|improve this answer












              $endgroup$


















                1

















                $begingroup$

                Given perimeter: $qquad P=(m^2-n^2 )+2mn+(m^2+n^2 )=2m^2+2mnqquad $ If we solve for $n$, we can find if there exists one or more $m,n$ combinations for a Pythagorean triple with that perimeter. Any value of $m$ that yields an integer $n$ gives us such an $m,n$ combination. We let:



                $$n=fracP-2m^22mquad where quad biggllceilfracsqrtP2biggrrceille m le biggllfloorsqrtfracP2biggrrfloor$$
                Here, the lower limit ensures that $m>n$ and the upper limit insures that $n>0$. For example:



                $$P=1000implies biggllceilfracsqrt10002biggrrceil =16le m le biggllfloorsqrtfrac10002biggrrfloor=22$$



                In this range, we find that only $20$ is a factor of $1000$ and the only value of $m$ that yields and integer $n$. We find that $m=20implies n=5$, and, using Euclid's formula $F(m,n)$, we have $F(20,5)=(375,200,425)$. Then, the product, as I understand it, is $$Atimes Btimes C=375times200times425=31875000.$$






                share|cite|improve this answer












                $endgroup$
















                  1















                  1











                  1







                  $begingroup$

                  Given perimeter: $qquad P=(m^2-n^2 )+2mn+(m^2+n^2 )=2m^2+2mnqquad $ If we solve for $n$, we can find if there exists one or more $m,n$ combinations for a Pythagorean triple with that perimeter. Any value of $m$ that yields an integer $n$ gives us such an $m,n$ combination. We let:



                  $$n=fracP-2m^22mquad where quad biggllceilfracsqrtP2biggrrceille m le biggllfloorsqrtfracP2biggrrfloor$$
                  Here, the lower limit ensures that $m>n$ and the upper limit insures that $n>0$. For example:



                  $$P=1000implies biggllceilfracsqrt10002biggrrceil =16le m le biggllfloorsqrtfrac10002biggrrfloor=22$$



                  In this range, we find that only $20$ is a factor of $1000$ and the only value of $m$ that yields and integer $n$. We find that $m=20implies n=5$, and, using Euclid's formula $F(m,n)$, we have $F(20,5)=(375,200,425)$. Then, the product, as I understand it, is $$Atimes Btimes C=375times200times425=31875000.$$






                  share|cite|improve this answer












                  $endgroup$



                  Given perimeter: $qquad P=(m^2-n^2 )+2mn+(m^2+n^2 )=2m^2+2mnqquad $ If we solve for $n$, we can find if there exists one or more $m,n$ combinations for a Pythagorean triple with that perimeter. Any value of $m$ that yields an integer $n$ gives us such an $m,n$ combination. We let:



                  $$n=fracP-2m^22mquad where quad biggllceilfracsqrtP2biggrrceille m le biggllfloorsqrtfracP2biggrrfloor$$
                  Here, the lower limit ensures that $m>n$ and the upper limit insures that $n>0$. For example:



                  $$P=1000implies biggllceilfracsqrt10002biggrrceil =16le m le biggllfloorsqrtfrac10002biggrrfloor=22$$



                  In this range, we find that only $20$ is a factor of $1000$ and the only value of $m$ that yields and integer $n$. We find that $m=20implies n=5$, and, using Euclid's formula $F(m,n)$, we have $F(20,5)=(375,200,425)$. Then, the product, as I understand it, is $$Atimes Btimes C=375times200times425=31875000.$$







                  share|cite|improve this answer















                  share|cite|improve this answer




                  share|cite|improve this answer








                  edited Oct 3 at 16:24

























                  answered Oct 2 at 21:44









                  poetasispoetasis

                  1,1131 gold badge3 silver badges19 bronze badges




                  1,1131 gold badge3 silver badges19 bronze badges































                      draft saved

                      draft discarded















































                      Thanks for contributing an answer to Mathematics Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      Use MathJax to format equations. MathJax reference.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3378407%2fsolve-euler-project-9-only-mathematically-pythagorean-triplet%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown









                      Popular posts from this blog

                      Tamil (spriik) Luke uk diar | Nawigatjuun

                      Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

                      Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?