Special Parity

Denote U ( s ) U(s) as a function of the maximum number of unit squares that can be formed in a grid with semiperimeter s s where s Z + { 1 } s\in \mathbb Z^+\setminus\{1\} (for example, U ( 6 ) = 9 U(6)=9 ).

If s 1 + s 2 s_1+s_2 and s 1 s 2 |s_1-s_2| are both odd multiples of 2, then what is the parity of U ( s 1 ) U ( s 2 ) |U(s_1)-U(s_2)| ?

Clarification:

  • Unit square is a square with side 1.

This is one part of Quadrilatorics .
Sometimes odd, sometimes even It must be even Cannot be determined It must be odd

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.

2 solutions

Kenneth Tan
Jul 12, 2018

First of all, I claim that U ( s ) = { s 2 4 , if s is even s 2 1 4 , if s is odd U(s)=\begin{cases}\dfrac{s^2}{4},\quad\text{if }s\text{ is even} \\ \dfrac{s^2-1}{4},\quad\text{if }s\text{ is odd}\end{cases}

Here is a sketch of the proof, you can find the full details of this proof in my solution to I Want Me More Unit Squares , if you've already seen it, you can safely skip this part. :D

Proof:

Suppose the width of the grid is a a , the height of the grid is b b , and the semiperimeter of the grid is s = a + b s=a+b . Then the number of unit squares in this a × b a\times b grid is a b ab .

If s s is even , either a s 2 a\geqslant\frac{s}{2} , b s 2 b\leqslant\frac{s}{2} or a s 2 a\leqslant\frac{s}{2} , b s 2 b\geqslant\frac{s}{2} . Without loss of generality, let's suppose that a = s 2 + d a=\frac{s}{2}+d , b = s 2 d b=\frac{s}{2}-d ( d < s 2 , d Z + { 0 } ) (d<\frac{s}{2},\,d\in\mathbb{Z^+}\cup\{0\}) . Then a b = ( s 2 + d ) ( s 2 d ) = s 2 4 d 2 s 2 4 ab=\left(\frac{s}{2}+d\right)\left(\frac{s}{2}-d\right)=\frac{s^2}{4}-d^2\leqslant\frac{s^2}{4} .

If s s is odd , either a s + 1 2 a\geqslant\frac{s+1}{2} , b s 1 2 b\leqslant\frac{s-1}{2} or a s 1 2 a\leqslant\frac{s-1}{2} , b s + 1 2 b\geqslant\frac{s+1}{2} . Without loss of generality, let's suppose that a = s + 1 2 + d a=\frac{s+1}{2}+d , b = s 1 2 d b=\frac{s-1}{2}-d ( d < s 1 2 , d Z + { 0 } ) (d<\frac{s-1}{2},\,d\in\mathbb{Z^+}\cup\{0\}) . Then a b = ( s + 1 2 + d ) ( s 1 2 d ) = s 2 1 4 d 2 s 2 1 4 ab=\left(\frac{s+1}{2}+d\right)\left(\frac{s-1}{2}-d\right)=\frac{s^2-1}{4}-d^2\leqslant\frac{s^2-1}{4} .

Therefore, U ( s ) = { s 2 4 , if s is even s 2 1 4 , if s is odd U(s)=\begin{cases}\dfrac{s^2}{4},\quad\text{if }s\text{ is even} \\ \dfrac{s^2-1}{4},\quad\text{if }s\text{ is odd}\end{cases} . _\square

Now, since s 1 s 2 |s_1-s_2| is an odd multiple of 2, let s 1 s 2 = 2 ( 2 k 1 ) s_1-s_2=2(2k-1) where k k is an integer. Then s 1 + s 2 = 2 ( 2 k 1 ) + 2 s 2 = 2 ( 2 k 1 + s 2 ) s_1+s_2=2(2k-1)+2s_2=2(2k-1+s_2)

Since s 1 + s 2 s_1+s_2 is an odd multiple of 2, we know that 2 ( 2 k 1 + s 2 ) 2(2k-1+s_2) is also an odd multiple of 2 and 2 k 1 + s 2 2k-1+s_2 must be odd, thus we conclude that s 2 s_2 must be even.

And since s 2 s_2 is even and s 1 = s 2 + 2 ( 2 k 1 ) s_1=s_2+2(2k-1) is even, we conclude that s 1 s_1 is also even.

Hence let s 1 = 2 s 3 s_1=2s_3 , s 2 = 2 s 4 s_2=2s_4 , we have U ( s 1 ) U ( s 2 ) = s 1 2 s 2 2 4 = s 3 2 s 4 2 = ( s 3 + s 4 ) ( s 3 s 4 ) \begin{aligned}|U(s_1)-U(s_2)|&=\left|\frac{s_1^2-s_2^2}{4}\right| \\ &=|s_3^2-s_4^2| \\ &=|(s_3+s_4)(s_3-s_4)|\end{aligned}

Meanwhile, from s 1 s 2 = 2 ( 2 k 1 ) s 3 s 4 = 2 k 1 s_1-s_2=2(2k-1)\implies s_3-s_4=2k-1 , we know that one of s 3 s_3 , s 4 s_4 must be odd and the other must be even, we conclude that s 3 + s 4 s_3+s_4 and s 3 s 4 s_3-s_4 are both odd.

Therefore, we can conclude that U ( s 1 ) U ( s 2 ) = ( s 3 + s 4 ) ( s 3 s 4 ) |U(s_1)-U(s_2)|=|(s_3+s_4)(s_3-s_4)| must be indeed odd.

I wasn't able to drive this formula but noticed something interesting nonetheless, U ( s ) + U ( s 1 ) = r = 1 s 1 r U(s)+ U(s-1)= \displaystyle{\sum_{r=1}^{s-1}r}

Piero Sarti - 2 years, 10 months ago
Zee Ell
Jul 23, 2018

1.) We will show that both s 1 and s 2 are even. \text {1.) We will show that both } s_1 \text { and } s_2 \text { are even. }

Due to symmetry, we may assume (without the loss of generality), that s 1 s 2 \text {Due to symmetry, we may assume (without the loss of generality), that } s_1\geq s_2

Then:

s 1 + s 2 = 4 m + 2 s_1 + s_2 = 4m + 2

and

s 1 s 2 = 4 n + 2 s_1 ﹰ- s_2 = 4n + 2

where m , n N \text { where } m, n \in \mathbb {N}

We can get the values of s 1 and s 2 by adding / subtracting the two equations above, respectively. \text {We can get the values of } s_1 \text { and } s_2 \text { by adding / subtracting the two equations above, respectively. }

2 s 1 = 4 m + 4 n + 4 2s_1= 4m +4n + 4

s 1 = 2 ( m + n + 1 ) s_1= 2(m + n + 1)

and

2 s 2 = 4 m 4 n 2s_2 = 4m - 4n

s 2 = 2 ( m n ) s_2 = 2(m - n)

Hence both s 1 and s 2 are even. \text { Hence both } s_1 \text { and } s_2 \text { are even. }

2.) Now it is easy to see, that one of s 1 s_1 and s 2 s_2 has to be an even multiple of 2, and the other has to be an odd multiple of 2

(that is the only way, that we can get an odd multiple as a sum, since even + odd = odd + even = odd, but odd + odd = even and even + even = even.)

3.) Here we will show, that if s is even, then:

U ( s ) = s 2 4 U(s) = \frac {s^2}{4}

Let l be the length and w be the width of the rectangle. Then s = l + w and U(s) = max (l × w).

According to the AM - GM inequality:

l × w l + w 2 \sqrt { l × w } \leq \frac {l + w}{2}

l × w s 2 \sqrt { l × w } \leq \frac {s}{2}

After squaring both sides:

l × w s 2 4 l × w \leq \frac {s^2}{4}

Therefore:

U ( s ) = s 2 4 U(s) = \frac {s^2}{4}

At this point, it is easy to find that if:

a) s is an even multiple of 2 (divisible by 4, so its square is divisible by 16 and then U(s) will be divisible by 4 (it will be an even square number)

b) s is an odd multiple of 2 (so its square is divisible by 4 but not divisible by 8), which means that U(s) will be an odd square number)

4.) Based on our findings above, our expression:

U ( s 1 ) U ( s 2 ) | U(s_1) - U(s_2) | will be a difference of an even and an odd square number, which is:

Always odd. \boxed { \text {Always odd. } }

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...