Development of |
|
Pythagorean triples | ---> | complex vector in the circle of unit 1 | ---> | group of complex elements |a+bI|=1 mod p with a,b element Np |
p an odd number > 1 Let a,b,c a Pythagorean triple with c < p a² + b² = c² with division by c² <=> (a/c)² +(b/c)² = 1 with I²=-1 <=> (a/c)² -(bI/c)² = 1 x, y element Np x:=(a+rp)/c with r element N, r is choosen, so that a+rp = 0 mod c r=-a*p^(-1) mod c with gcd (p,c)=1 y:=(b+sp)/c with s element N, s is choosen, so that b+sp = 0 mod c s=-b*p^(-1) mod c with gcd (p,c)=1 |x+yI|= (x+yI)(x-yI)=x²+y² mod p = [(a+rp)/c]²+[(b+sp)/c]² mod p = (a/c)²+(b/c)² mod p = 1 mod p
Let p an odd number > 1; prime=True; for i from all pyth. triples (a, b, c) with c < p if (gcd (c, prim)>1) then prime=False; break; calculation (a,b,c)-> (x, y); if (gcd (x, prim)>1) then prime=False; break; if (gcd (y, prim)>1) then prime=False; break; output of all elements of (x,y); end_for; if prime=True then p is prime;
29 31 33 p = 31a, b, c is the Pythagorean triple with a²+b²=c²
|
31 is prime |
because the group order of a prime in this complex field with norm = 1 |
is p+1 for the primes p=3 mod 4 |
30 I | |
0 | 30 |
|0+30I| =1 0, 1, 1 | ||||||||||||||||||||||||||||||
|11+29I| =1 5, 12, 13 | |20+29I| =1 5, 12, 13 | |||||||||||||||||||||||||||||
|4+27I| =1 7, 24, 25 | |27+27I| =1 7, 24, 25 | |||||||||||||||||||||||||||||
|10+26I| =1 15, 8, 17 | |21+26I| =1 15, 8, 17 | |||||||||||||||||||||||||||||
|13+24I| =1 3, 4, 5 | |18+24I| =1 3, 4, 5 | |||||||||||||||||||||||||||||
|5+21I| =1 15, 8, 17 | |26+21I| =1 15, 8, 17 | |||||||||||||||||||||||||||||
|2+20I| =1 5, 12, 13 | |29+20I| =1 5, 12, 13 | |||||||||||||||||||||||||||||
|7+18I| =1 3, 4, 5 | |24+18I| =1 3, 4, 5 | |||||||||||||||||||||||||||||
|7+13I| =1 3, 4, 5 | |24+13I| =1 3, 4, 5 | |||||||||||||||||||||||||||||
|2+11I| =1 5, 12, 13 | |29+11I| =1 5, 12, 13 | |||||||||||||||||||||||||||||
|5+10I| =1 15, 8, 17 | |26+10I| =1 15, 8, 17 | |||||||||||||||||||||||||||||
|13+7I| =1 3, 4, 5 | |18+7I| =1 3, 4, 5 | |||||||||||||||||||||||||||||
|10+5I| =1 15, 8, 17 | |21+5I| =1 15, 8, 17 | |||||||||||||||||||||||||||||
|4+4I| =1 7, 24, 25 | |27+4I| =1 7, 24, 25 | |||||||||||||||||||||||||||||
|11+2I| =1 5, 12, 13 | |20+2I| =1 5, 12, 13 | |||||||||||||||||||||||||||||
|0+1I| =1 0, 1, 1 | ||||||||||||||||||||||||||||||
|1+0I| =1 0, 1, 1 | |30+0I| =1 0, 1, 1 |