A positive integer n is called a regular number, if and only if there exist a non-negative integer k, such that
. For some reason, such a number is also refered to as an ugly number. Below are the first few regular numbers:
We say that an integer-sided rectangle is a "regular" rectangle if its area is a regular number. In the figure below, the red-colored rectanges are regular, while the blue ones are not.
All
regular rectangles whose areas are less than equal to
are listed below:
And their total area is:
For a given area limit a, find the total area of all regular rectangles with areas less than equal a.
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers6
Suggested Problems
-
It dseon't mettar waht oedrr the lrettes in a wrod are.
2171 Solvers
-
Decrypt the cypher using XOR encryption (for beginners)
73 Solvers
-
Given a square and a circle, please decide whether the square covers more area.
1896 Solvers
-
Find two triangular numbers whose sum is input.
103 Solvers
-
Compute the arithmetic derivative of integers
28 Solvers
More from this Author116
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!