3Â years, 5Â months ago
3Â years, 5Â months ago
My bad. 1,2,3 is not a triangle. And for other numbers, we have to take nearest integer not greatest integer.
3Â years, 5Â months ago
For 7, and 8, it'll be 0. You can even verify it manually, and through the formula.
For p=9, you'll get 0.75 through the formula. Rounded off to 1.
Even if you try manually, you'll get 2,3,4 as the only scalene triangle.
3Â years, 5Â months ago
1,2,3 cannot be a scalene triangle as it doesn't satisfy the triangle inequality theorem. For the cases of perimeter as 7 and 9 the formulae changes
when p is odd (p-3)^2/48
3Â years, 5Â months ago
Even for perimeter=7,8,9. I am not getting the right answer. Can someone please clarify.