A120131 Longest side of primitive Heronian triangles, sorted.
5, 6, 8, 13, 13, 15, 15, 17, 17, 17, 20, 20, 21, 21, 24, 25, 25, 25, 26, 26, 28, 29, 29, 30, 30, 30, 35, 35, 36, 37, 37, 37, 37, 37, 39, 39, 39, 39, 40, 40, 40, 41, 41, 41, 41, 42, 44, 44, 45, 48, 48, 50, 50, 51, 51, 51, 51, 52, 52, 52, 52, 52, 52, 53, 53, 53, 53, 55, 55, 56
Offset: 1
Keywords
Links
- Giovanni Resta, Table of n, a(n) for n = 1..10000
- Michael Somos, Heronian Triangle Table
- P. Yiu, Heron triangles with sides < 100, Recreational Mathematics, Appendix Chap. 9.3 pp. 81/360. (This is a download of 360 pages.)
Programs
-
Mathematica
hQ[a_,b_,c_] := IntegerQ@ Sqrt@ Block[{s = (a+b+c)/2}, s (s-a) (s-b) (s-c)]; Reap[Do[If[ GCD[a, b, c] == 1 && hQ[a, b, c], Sow@ a], {a, 60}, {b, a}, {c, a-b+1, b}]][[2, 1]] (* Giovanni Resta, May 21 2016 *)