- #1
AvgStudent
- 7
- 0
A farmer wishes to build a rectangular chicken coop with as close to, but not greater than N square units. He wants to purchase the least amount of fencing possible, but fencing can only be purchase by the integer foot. How does he do this?
P = 2x+2y
N = xy
y=N/x
P = 2x + 2(N/x)
P' = 2 - (2N)/x^2
0 = 2-(2N)/x^2
x = sqrt(N)
y = sqrt(N)
We obviously don't want to just make N a perfect square because the difference between high numbers won't make the square feet near N. Any suggestions to get the integer foot?
P = 2x+2y
N = xy
y=N/x
P = 2x + 2(N/x)
P' = 2 - (2N)/x^2
0 = 2-(2N)/x^2
x = sqrt(N)
y = sqrt(N)
We obviously don't want to just make N a perfect square because the difference between high numbers won't make the square feet near N. Any suggestions to get the integer foot?