Problem 58244. Easy Sequences 113: Almost Golden Integer Rectangles 2
A golden rectangle is a rectangle whose side lengths are in the golden ratio, , where: .
The ancient Greeks consider the golden rectangle as the most aesthetically pleasing rectangular shape. Unfortunately for the ancients this ratio cannot be achieved if the sides are rational numbers let alone integers.
We define as a function that calculates the perimeter of the rectangle with integer sides with area equal to A, and in which the side ratio is as close as possible to the golden ratio, that is the absolute value, , is minimized.
For example, if , the correct dimensions should be , since the ratio is the closest we can get to ϕ for rectangle with area of (see below code). Therefore, .
In this problem, we are asked to evaluate the following summation:
that is, the sum of perimeter of all almost golden integer rectangles with areas from 1 to A.
For example, for , summation output should be :
Solution CommentsShow comments
Problem Recent Solvers1