OFFSET
1,1
COMMENTS
The first term that corresponds to more than one value of the inradius is a(344) = 1915880, where the primitive Pythagorean triples (491208, 627655, 797017) and (627655, 491208, 797017) have perimeter 1915880 and inradii 160923 and 111867 respectively.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3) = 132 is a term because the primitive Pythagorean triple (11, 60, 61) has perimeter 132 and inradius 5, and 132 + 5 = 137, 132 - 5 = 127, 132 + 5^2 = 157 and 132 - 5^2 = 107 are all prime.
MAPLE
N:= 60000: # for terms <= N
S:= {}:
for x from 2 by 2 while 2*x^2<N do
for y from 1 by 2 to min(x-1, (N-2*x^2)/(2*x)) do
if igcd(x, y) > 1 then next fi;
p:= 2*x^2 + 2*x*y;
r:= x*y - y^2;
if andmap(isprime, [p+r^2, abs(p-r^2), p+r, abs(p-r)]) then S:= S union {p} fi
od od:
sort(convert(S, list));
CROSSREFS
KEYWORD
nonn
AUTHOR
Will Gosnell and Robert Israel, Jan 29 2026
STATUS
approved
