OFFSET
1,1
COMMENTS
The only Pythagorean triple whose inradius is equal to r and such that its long leg and its hypotenuse are consecutive is (2r+1,2r^2+2r,2r^2+2r+1).
REFERENCES
El Libro de las Ternas Pitagóricas, Miguel Ángel Pérez García-Ortega, José Manuel Sánchez Muñoz y José Miguel Blanco Casado, Preprint, 2025.
LINKS
Miguel-Ángel Pérez García-Ortega, El libro de las ternas pitagóricas
FORMULA
For n >= 1, a(3*n+1) = a(3*n-2)*a(3*n-1)+1, a(3*n-1) = (a(3*n-2)^2-1)/2, and a(3*n) = a(3*n-1)+1. - Pontus von Brömssen, Feb 04 2025
EXAMPLE
Triples begin:
3, 4, 5;
13, 84, 85;
1093, 597324, 597325;
652875133, 213122969644883844, 213122969644883845;
MATHEMATICA
{a0, b0, c0}={3, 4, 5}; f[n_]:=Module[{fn0=a0 b0+1, fn1=((a0 b0+1)^2-1)/2}, Do[{fn0, fn1}={fn1 fn0+1, ((fn1 fn0+1)^2-1)/2}, {n}]; fn0]; t[n_]:= {f[n-1], (f[n-1]^2-1)/2, (f[n-1]^2+1)/2}; ternas={a0, b0, c0}; For[i=1, i<=5, i++, ternas=Join[ternas, t[i]]]; ternas
CROSSREFS
KEYWORD
nonn,tabf,easy
AUTHOR
Miguel-Ángel Pérez García-Ortega, Jan 19 2025
STATUS
approved
