(a,b,c)
satisfy
a2 + b2 = c2we say they form a Pythagorean triple. If in addition
a,
b, c have no common factor we say the triple is
primitive
a = (u2 - v2)r b = 2uvr (PT) c = (u2 + v2)rproduce a Pythagorean triple
(a,b,c) for any choice of
ring elements u, v and r.
a in a
primitive Pythagorean triple (a,b,c) . Hint 1: consider
(3,4,5), (5,12,13) and (7,24,25) and look for a pattern. Hint 2:
Compute (n+1)2 - n2 and study (PT).
When n=2 there are three solutions: (0,0,0), (1,0,1) and (0,1,0). These three will work in any ring. So will (0,x,x) and (x,0,x), so we probably should not count any of the triples for which a=0 or b=0.
In Z3 there seem to be a few more: (2,0,1) is one of them. But that's really "the same" as (1,0,1) since in Z3 2 = -1 and we might not want to count (a,b,c) and (-a,b,c) as different Pythagorean triples (but then again we might want to count them as different if that helps a pattern emerge). When counting that way there are no more new triples in Z3.
To carry out more experiments we should be more systematic: list all the squares in Zn, add each pair and see when squares result. For example, for Z7 the squares are
02 = 0 12 = (-1)2 = 1 22 = (-2)2 = 4 32 = (-3)2 = 2so the Pythagorean triples are
(1,1,3) (2,2,1) (3,3,2)
What next? Compute many more examples: certainly n=4,5,6, then maybe 11 and 13, in hopes that the primes may be more informative. But I don't know. You might want to work collectively as a class, with different people working out different examples so that together you have more data than any one of you could find on his or her own.