7 kyu
Recurring Rectangle Ratio
52 of 113dfhwze
Description:
Disclaimer
If you're not into math, you might want to skip this kata.
Property
Some rectangles have a recurring ratio of side lengths (the most famous example is A-series paper). For some of them, when removing a number of inner squares (each such square must have the side length of the smallest side of the rectangle), the ratio a / b
is the same as b / c
.
Example (n = 1)
Task
Given the number of inner squares to remove from such rectangle n
, what is value of the ratio of the longer side over the smaller side? Don't round your result.
1 ≤ n ≤ 1000
Puzzles
Mathematics
Geometry
Similar Kata:
Stats:
Created | Feb 29, 2024 |
Published | Feb 29, 2024 |
Warriors Trained | 670 |
Total Skips | 37 |
Total Code Submissions | 331 |
Total Times Completed | 113 |
JavaScript Completions | 52 |
Python Completions | 74 |
Total Stars | 12 |
% of votes with a positive feedback rating | 90% of 30 |
Total "Very Satisfied" Votes | 25 |
Total "Somewhat Satisfied" Votes | 4 |
Total "Not Satisfied" Votes | 1 |
Total Rank Assessments | 7 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |