# Can a square number be expressed as sum of squares of two other members.? [closed]

Is there any theorem to tell if square of a number can be expressed as sum of squares of two other distinct numbers.

I have one such set. {5 4 3}

5^2 = 4^2 + 3^2

Given a number n how to find if the above conditions satisfy ?

## closed as unclear what you're asking by Will Jagy, Empty, JonMark Perry, Strants, user91500Oct 10 '15 at 8:36

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

• is there some sort of recent contest going on, possibly in programming? This question has been repeated by different people for several days – Will Jagy Oct 9 '15 at 23:29
• So how much are you going to win if we give away secrets about famous trios of numbers named after Greek philosophers who were averse to beans? (And how do we get our cut?) – Rob Arthan Oct 9 '15 at 23:41
• @RobArthan, not as widely known, the playwright Aeschylus died when an eagle dropped a tortoise on his head. It's in Pliny the Elder. Book 10, Chapter 3, if the link does not quite work. perseus.tufts.edu/hopper/… – Will Jagy Oct 9 '15 at 23:56
• The question has been asked frequently lately. A search will find the answer, possibly in a comment. – André Nicolas Oct 9 '15 at 23:58
• @WillJagy: did Aeschylus contribute anything to mathematics? (Other than the eagle/tortoise/death statistic)? – Rob Arthan Oct 10 '15 at 0:02

There is the concept of Pythagorean Triples. for:

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

you can use the following values for a,b and c where m and n are any two positive integers such that $m>n$:

$$a^2=m^2-n^2 \; and \; b=2mn\; and \; c^2=m^2+n^2$$

Here is a sample:

You can read more about the subject in wiki-Pythagorean_triple and for a better method to generate the numbers in here: A Direct Method To Generate Pythagorean Triples .

These sets are called pythagorean triplets for obvious reasons. If {x, y, z} are p. triplets so are any {nx, ny, nz}. If m is odd there's a way to construct a triplet that I'm holding off on sharing but I'll tell you two of the terms are consecutive.