Denote u ( s ) as a function of the minimum number of unit squares that can be formed in a rectangular grid with semiperimeter s where s ∈ Z + ∖ { 1 } (for example, u ( 6 ) = 5 ). Find u ( 1 1 5 3 ) .
Clarification:
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
In general, suppose the width of the grid is a , the height of the grid is b , and the semiperimeter of the grid is s = a + b . Then the number of unit squares in this a × b grid is a b . Without loss of generality, let's assume that a > b .
We have a b = 4 ( a + b ) 2 − ( a − b ) 2 = 4 s 2 − ( a − b ) 2
So, to make a b as small as possible, ( a − b ) 2 has to be as small as possible, which means a − b has to be as small as possible, which in turn means that a has to be as large as possible and b to be as small as possible. This can be achieved with a = s − 1 , b = 1 , making a b = 4 s − ( s − 2 ) 2 = s − 1 .
Therefore,
u ( s ) = s − 1
Now, evaluating u ( 1 1 5 3 ) , we get 1 1 5 2 .
Problem Loading...
Note Loading...
Set Loading...
Let the two sides of the grid (rectangle) be a and b , then the semiperimeter s = a + b and the number of unit squares n = a b . Without loss of generality, let us assume b ≥ a and their difference b − a = d , so that d ≥ 0 . Then, we have:
s ⟹ a ⟹ b ⟹ n = a + b = a + a + d = 2 a + d = 2 s − d = 2 s + d = a b = 2 s − d × 2 s + d = 4 s 2 − d 2 = 4 s 2 − ( b − a ) 2
This means that for a particular s the smaller the difference d = b − a , the largest the n . The largest d occurs when a is smallest, that is a = 1 . Since s = a + b ⟹ b = s − 1 and d = b − a = s − 2 when n is minimum. Therefore, n m i n = u ( s ) = 4 s 2 − ( s − 2 ) 2 = s − 1 .
Therefore, u ( 1 1 5 3 ) = 1 1 5 3 − 1 = 1 1 5 2 .