A070101 Number of obtuse integer triangles with perimeter n.
0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 2, 0, 2, 2, 3, 2, 3, 3, 5, 3, 7, 4, 8, 5, 9, 7, 10, 8, 11, 9, 14, 11, 16, 12, 18, 14, 19, 17, 21, 18, 23, 21, 27, 22, 30, 24, 32, 27, 34, 30, 37, 33, 40, 35, 44, 37, 47, 40, 50, 44, 53, 49, 56, 52, 60, 55, 64, 57, 68
Offset: 1
Keywords
Examples
For n=14 there are A005044(14)=4 integer triangles: [2,6,6], [3,5,6], [4,4,6] and [4,5,5]; two of them are obtuse, as 3^2+5^2<36=6^2 and 4^2+4^2<36=6^2, therefore a(14)=2.
Links
- Seiichi Manyama, Table of n, a(n) for n = 1..1000
- Eric Weisstein's World of Mathematics, Obtuse Triangle.
- R. Zumkeller, Integer-sided triangles
Programs
-
Mathematica
Table[Sum[Sum[(1 - Sign[Floor[(i^2 + k^2)/(n - i - k)^2]]) Sign[Floor[(i + k)/(n - i - k + 1)]], {i, k, Floor[(n - k)/2]}], {k, Floor[n/3]}], {n, 100}] (* Wesley Ivan Hurt, May 12 2019 *)
Comments