# Thread: Primitive Pyth. triples: Solutions of x^2 + y^2 = 2 z^2

1. Originally Posted by kingwinner
If we want to solve in in the integers, then how would you actually describe all the integer solutions? Does anyone happen to know the correct answer of this problem?

I am solving it in the integers, so the question should say:
Find all INTEGER solutions of $\displaystyle x^2 + y^2 = 2z^2$.

Attempt:
$\displaystyle x^2 + y^2 = 2z^2$
<=> $\displaystyle (x+y)^2 + (x-y)^2 = (2z)^2$

<=>
x+y = +/- $\displaystyle (m^2 - n^2)d$
x-y = +/- $\displaystyle 2mnd$
2z = +/- $\displaystyle (m^2 + n^2)d$
where d=0,2,4,6,...,
m and n are any integers of opposite parity with m>n>0 and gcd(m,n)=1
[I say +/- because x+y,x-y,2z may be a Pythagorean triple which requires x+y,x-y,2z to be positive, or some of x+y,x-y,2z may simply be the negatives of it]

<=>
x = +/- $\displaystyle d(m^2 - n^2 + 2mn) / 2$
y = +/- $\displaystyle d(m^2 - n^2 - 2mn) / 2$
z = +/- $\displaystyle d(m^2 + n^2) / 2$
where d=0,2,4,6,...,
m and n are any integers of opposite parity with m>n>0 and gcd(m,n)=1

<=>
x = $\displaystyle d(m^2 - n^2 + 2mn) / 2$
y = $\displaystyle d(m^2 - n^2 - 2mn) / 2$
z = $\displaystyle d(m^2 + n^2) / 2$
where d is any EVEN INTEGER, m and n are any integers of opposite parity with m>n>0 and gcd(m,n)=1

Is this the right way to analyze this problem? Is this the correct description of ALL (up to a reordering of x and y of course) integer solutions of $\displaystyle x^2 + y^2 = 2z^2$?? Did I miss any?
My textbook doesn't give the answer at the back, so there is no way for me to check my work. Can someone confirm that this is correct (or point out any mistake), please?

Thank you very much!
I'd say that's correct.

You could simplify by saying $\displaystyle \frac{d}{2} = a$ then let $\displaystyle a$ be any integer.

2. Originally Posted by kingwinner
hi, I think 9,12,15 is an example of a Pythagorean triple that cannot be written in the form $\displaystyle x = r^2 - s^2, y = 2rs, z = r^2 + s^2$, r,s E Z, r>s>0, right??
Try $\displaystyle a=3,\; r=2,\; s=1$

3. Originally Posted by chiph588@
Try $\displaystyle a=3,\; r=2,\; s=1$
Yes, but (ii) is without the factor a. That's why I'm saying that (i) is right and (ii) is wrong.

Page 3 of 3 First 123
{"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "url": "http://mathhelpforum.com/number-theory/136164-primitive-pyth-triples-solutions-x-2-y-2-2-z-2-a-3.html", "fetch_time": 1529627688000000000, "content_mime_type": "text/html", "warc_filename": "crawl-data/CC-MAIN-2018-26/segments/1529267864303.32/warc/CC-MAIN-20180621231116-20180622011116-00632.warc.gz", "warc_record_offset": 209390432, "warc_record_length": 10483, "token_count": 765, "char_count": 2265, "score": 4.0625, "int_score": 4, "crawl": "CC-MAIN-2018-26", "snapshot_type": "latest", "language": "en", "language_score": 0.8560971021652222, "file_path": "/sailhome/yjruan/project/latent-lm/data/processed/finemath-4plus/finemath-4plus/train-00017-of-00064.parquet"}