From deb1a72688dfce9c6a56b017609b872674262cf0 Mon Sep 17 00:00:00 2001 From: Ian Korpi Date: Thu, 21 Mar 2019 08:10:53 -0500 Subject: [PATCH] fix: expanded pythagorean triples stub (#27428) --- .../mathematics/pythagorean-triples/index.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/guide/english/mathematics/pythagorean-triples/index.md b/guide/english/mathematics/pythagorean-triples/index.md index 480a7a07e1..a1819f34b6 100644 --- a/guide/english/mathematics/pythagorean-triples/index.md +++ b/guide/english/mathematics/pythagorean-triples/index.md @@ -3,13 +3,14 @@ title: Pythagorean Triples --- ## Pythagorean Triples -This is a stub. Help our community expand it. +A pythagorean triple is a set of three numbers, a, b, and c, that satisfies the equation `a^2 + b^2 = c^2`. When a triangle is made with side lengths equal to a, b, and c, it will be a right triangle. -This quick style guide will help ensure your pull request gets accepted. +The smallest pythagorean triple is 3,4,5. There is an infinite number of these pythagorean triples. They can be constructed using the following process: - - -#### More Information: - +When m and n are positive integers such that m is less than n: +- a = `n^2 - m^2` +- b = `2nm` +- c = `n^2 + m^2` +Then a, b, and c will form a pythagorean triple. The formula above is known as Euclid's formula. \ No newline at end of file