Problem 2024. Triangle sequence
A sequence of triangles is constructed in the following way:
1) the first triangle is Pythagoras' 3-4-5 triangle
2) the second triangle is a right-angle triangle whose second longest side is the hypotenuse of the first triangle, and whose shortest side is the same length as the second longest side of the first triangle
3) the third triangle is a right-angle triangle whose second longest side is the hypotenuse of the second triangle, and whose shortest side is the same length as the second longest side of the second triangle etc.
Each triangle in the sequence is constructed so that its second longest side is the hypotenuse of the previous triangle and its shortest side is the same length as the second longest side of the previous triangle.
What is the area of a square whose side is the hypotenuse of the nth triangle in the sequence?
Solution Stats
Problem Comments
-
35 Comments
Show
32 older comments
Mohit
on 16 Aug 2022
very good problem
Sharathchandra Prakash Reddy
on 14 Apr 2023
Modified fibonacci sequence
Kirk Roffi
on 11 Dec 2023
Advised to carefully read the problem description and notice that the second to last sentence offers a code structure. -KR
Solution Comments
Show commentsGroup

Basics on Vectors
- 11 Problems
- 7937 Finishers
- Find the sum of all the numbers of the input vector
- Select every other element of a vector
- Arrange Vector in descending order
- Inner product of two vectors
- Get the length of a given vector
- Find max
- Whether the input is vector?
- Flip the vector from right to left
- Create a vector
- Doubling elements in a vector
- Vector creation
Problem Recent Solvers5276
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!