OFFSET
1,1
LINKS
Robert Israel, Data for the first 58 terms
EXAMPLE
a(3) = 41 is a term because 41 is prime and the Pythagorean triple (95, 168, 193) has perimeter 95 + 168 + 193 = 456 and inradius (95 + 168 - 193)/2 = 35 and 456 + 35^2 = 41^2.
MAPLE
N:= 10^14: # for terms <= sqrt(N)
Res:= NULL:
for x from 2 by 2 while 2*x^2 <= N do
ym:= select(t -> t >= 1 and t <= x-1, [fsolve(2*x^2*yy - 6*x*yy^2 + 4*yy^3 + 2*x = 0)]);
if ym = [] then ym:= x-1 else ym:= op(ym) fi;
for y from 1 to ym by 2 do
if igcd(x, y) > 1 then next fi;
p:= 2*x*(x+y);
r:= (x-y)*y;
v:= p+r^2;
if v > N then break fi;
if issqr(v) and isprime(sqrt(v)) then Res:= Res, sqrt(v); fi
od;
for y from x-1 to ym by -2 do
if igcd(x, y) > 1 then next fi;
p:= 2*x*(x+y);
r:= (x-y)*y;
v:= p+r^2;
if v > N then break fi;
if issqr(v) and isprime(sqrt(v)) then Res:= Res, sqrt(v); fi
fi
od;
od:
sort([Res]);
CROSSREFS
KEYWORD
nonn
AUTHOR
Will Gosnell and Robert Israel, Feb 05 2026
STATUS
approved
