2005 AIME I Problem 4
Problem 4 of 15EasierAlgebraNumber Theory
The director of a marching band wishes to place the members into a formation that includes all of them and has no unfilled positions. If they are arranged in a square formation, there are members left over. The director finds that if they are arranged in a rectangular formation with more rows than columns, the desired result can be obtained. Find the maximum number of members this band can have.
Your answer
Integer from 0 to 999
Show solution
Solution
Let the band have members, with for the square formation and for the rectangular formation with columns. Multiplying by and completing the square gives so
Writing with the larger factor second: from we get and so and From we get and so and
The maximum is achieved by a rectangle.
Tagged: Diophantine Equation · completing the square · difference of squares