OFFSET
1,1
COMMENTS
Only one copy of c enters the sequence if multiple solutions exist, like with (a,b,c) = (3164,12573,12965) and (a,b,c) = (483,12956,12965).
Subsequence of A020882. [R. J. Mathar, Mar 25 2010]
LINKS
Eric Weisstein, Pythagorean Triple, MathWorld
EXAMPLE
(a,b,c) = (20,21,29), (33,56,65), (44,483,485), (56,783,785), (68,285,293), (273,4136,4145).
In the first case, for example, 2*20+1=41, 2*21+1 and 2*29+1 are all prime, which adds the half-hypotenuse 29 to the sequence.
MATHEMATICA
amax=6*10^4; lst={}; k=0; q=12!; Do[If[(e=((n+1)^2-n^2))>amax, Break[]];
Do[If[GCD[m, n]==1, a=m^2-n^2; If[PrimeQ[2*a+1], b=2*m*n; If[PrimeQ[2*b+1],
If[GCD[a, b]==1, If[a>b, {a, b}={b, a}]; If[a>amax, Break[]]; c=m^2+n^2;
If[PrimeQ[2*c+1], k++; AppendTo[lst, c]]]]]]; If[a>amax, Break[]], {m, n+1, 12!, 2}], {n, 1, q, 1}]; Union@lst
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Sep 09 2009
EXTENSIONS
Comments moved to examples and definition clarified by R. J. Mathar, Mar 25 2010
STATUS
approved