Hero's area formula for any triangle with sides a, b, c is:
.
Heronian triangles are triangles having integral sides and integral area. Find Heronian triangles with consecutive sides. For example, H(1) would have sides 3,4,5 with area 6. Output the sum of the digits of the nth Heronian triangle's area. S(1)=6.
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers4
Suggested Problems
-
Combinations without using nchoosek
137 Solvers
-
Construct an index vector from two input vectors in vectorized fashion
449 Solvers
-
166 Solvers
-
Mysterious digits operation (easy)
316 Solvers
-
Convert a vector of Integers into a matrix of binaries
79 Solvers
More from this Author61
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!