- #1
INdeWATERS
- 17
- 0
I need help writing a Mathematica 8 function that takes a prime p as input and returns a list of the nonequivalent Pythagorean triples mod p.
For example, PythagoreanTriples[13] should return the list;
{{1,3,6},{1,4,2},{2,5,4},{2,6,1},{3,4,5},{5,6,3}}
For example, PythagoreanTriples[13] should return the list;
{{1,3,6},{1,4,2},{2,5,4},{2,6,1},{3,4,5},{5,6,3}}