2007 AIME II Problem 8
Problem 8 of 15IntermediateAlgebraNumber TheoryProblem-Solving Techniques
A rectangular piece of paper measures units by units. Several lines are drawn parallel to the edges of the paper. A rectangle determined by the intersections of some of these lines is called basic if (i) all four sides of the rectangle are segments of drawn line segments, and (ii) no segments of drawn lines lie inside the rectangle.
Given that the total length of all lines drawn is exactly units, let be the maximum possible number of basic rectangles determined. Find the remainder when is divided by
Your answer
Integer from 0 to 999
Show solution
Solution
Suppose of the drawn lines have length and have length so A basic rectangle is bounded by two adjacent lines in each direction, so the lines determine basic rectangles. Setting and we must maximize subject to
As a function of the product is a downward parabola with vertex at For to be an integer we need i.e. The nearest candidates are (giving and product ) and (giving and product ).
So and the remainder upon division by is
Tagged: optimization · quadratic · modular arithmetic