login
A070082
Largest side of integer triangles [A070080(n) <= A070081(n) <= a(n)], sorted by perimeter, sides lexicographically ordered.
74
1, 2, 2, 3, 3, 3, 4, 4, 3, 4, 4, 5, 5, 5, 4, 5, 5, 4, 6, 6, 6, 5, 5, 6, 6, 6, 5, 7, 7, 7, 6, 7, 6, 5, 7, 7, 7, 6, 6, 8, 8, 8, 7, 8, 7, 7, 6, 8, 8, 8, 7, 8, 7, 6, 9, 9, 9, 8, 9, 8, 9, 8, 7, 7, 9, 9, 9, 8, 9, 8, 8, 7, 10, 10, 10, 9, 10, 9, 10, 9, 8, 9, 8, 7, 10, 10
OFFSET
1,2
FORMULA
a(n) = A070083(n) - A070080(n) - A070081(n).
MATHEMATICA
m = 55 (* max perimeter *);
sides[per_] := Select[Reverse /@ IntegerPartitions[per, {3}, Range[ Ceiling[per/2]]], #[[1]] < per/2 && #[[2]] < per/2 && #[[3]] < per/2&];
triangles = DeleteCases[Table[sides[per], {per, 3, m}], {}] // Flatten[#, 1]& // SortBy[Total[#] m^3 + #[[1]] m^2 + #[[2]] m + #[[1]]&];
triangles[[All, 3]] (* Jean-François Alcover, Jul 09 2017 *)
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, May 05 2002
STATUS
approved