Denote U ( s ) as a function of the maximum number of unit squares that can be formed in a grid with semiperimeter s where s ∈ Z + ∖ { 1 } (for example, U ( 6 ) = 9 ).
It is known that U ( U ( x ) ) is a perfect square, which of the following cannot be a value of x ?
Clarification: Unit square is a square with side 1.
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.
U ( s ) = ⌊ 2 s ⌋ × ⌈ 2 s ⌉
here are facts
1- If 2 ∣ s , then U ( s ) = 4 s 2 is a perfect square.
2-If s is odd, it would be of form U ( s ) = n × ( n + 1 ) , for some integer n .
Now assume s is odd. Then U ( s ) = n × ( n + 1 ) and either n or n + 1 is even ( n × ( n + 1 ) = 2 k ). Therefore, U ( n × ( n + 1 ) ) = U ( 2 k ) = x 2 , according to fact (1).
If s is even, then U ( s ) = 4 s 2 . If 2 s is not further divisible by 2 , i.e. 4 ∤ s , then U ( U ( s ) ) = n × ( n + 1 ) , for some n (fact (2)). since two consecutive integers are coprimes, they cannot make perfect squares. On the other hand, if 4 ∣ s , then we use rule (1), two times, to deduce that U ( U ( s ) ) is a square.
Based on the above argument, U ( U ( s ) ) is a perfect square, if and only if either s is odd or s divisible by 4 .
Problem Loading...
Note Loading...
Set Loading...
First of all, I claim that U ( s ) = ⎩ ⎪ ⎨ ⎪ ⎧ 4 s 2 , if s is even 4 s 2 − 1 , if s is odd
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
Now, using the formula we have, we start by listing out some values to see if we can find any patterns:
x 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 U ( x ) 1 2 4 6 9 1 2 1 6 2 0 2 5 3 0 3 6 4 2 4 9 U ( U ( x ) ) undefinedillion = 1 0 0 0 undefined 1 4 9 2 0 3 6 6 4 1 0 0 1 5 6 2 2 5 3 2 4 4 4 1 6 0 0
Hey! We notice that if x = 4 k + 2 ( k ∈ Z + ) , then U ( U ( x ) ) breaks the perfect square pattern! Let's try to prove it!
For any integer x ⩾ 2 , x ≡ 0 , ± 1 , 2 ( m o d 4 ) , that means x can be expressed either as 4 k , 4 k ± 1 or 4 k + 2 .
If x = 4 k , then since 4 k is even, U ( 4 k ) = 4 ( 4 k ) 2 = 4 k 2 is even, thus U ( U ( 4 k ) ) = U ( 4 k 2 ) = 4 ( 4 k 2 ) 2 = ( 2 k 2 ) 2 is a perfect square.
If x = 4 k ± 1 , then since 4 k ± 1 is odd, U ( 4 k ± 1 ) = 4 ( 4 k ± 1 ) 2 − 1 = 4 k 2 ± 4 k = 4 k ( k ± 1 ) is even, thus U ( U ( 4 k ± 1 ) ) = U ( 4 k ( k ± 1 ) ) = 4 ( 4 k ( k ± 1 ) ) 2 = ( 2 k ( k ± 1 ) ) 2 is also a perfect square.
If x = 4 k + 2 , then since 4 k + 2 is even, U ( 4 k + 2 ) = 4 ( 4 k + 2 ) 2 = ( 2 k + 1 ) 2 is odd, thus U ( U ( 4 k + 2 ) ) = U ( ( 2 k + 1 ) 2 ) = 4 ( 2 k + 1 ) 2 − 1 = k 2 + k = k ( k + 1 ) is not a perfect square. Whoopsy daisy!
If x = sandwich , then... oh wait... nevermind.
Anyway, we've just showed that if x = 4 k + 2 , in other words if x ≡ 2 ( m o d 4 ) , then U ( U ( x ) ) cannot be a perfect square! Woohoo! Progress!
Let's now take a look at the answer options, we notice some repeated numbers that we can use for our advantage. Since 1 1 5 2 1 1 5 3 ≡ 0 ( m o d 4 ) 1 1 5 3 1 1 5 4 ≡ 1 1 1 5 4 = 1 ( m o d 4 ) 1 1 5 4 1 1 5 5 ≡ 0 ( m o d 4 ) 1 1 5 5 1 1 5 6 ≡ ( − 1 ) 1 1 5 6 = 1 ( m o d 4 ) 1 1 5 6 1 1 5 7 ≡ 0 ( m o d 4 )
The only option that gives a remainder of 2 when divided by 4 is 1 1 5 3 1 1 5 4 + 1 1 5 5 1 1 5 6 , because 1 1 5 3 1 1 5 4 + 1 1 5 5 1 1 5 6 ≡ 1 + 1 = 2 ( m o d 4 ) .
By the way, the option "sixteen", otherwise famously known as 1 6 , is obviously not the answer since 1 6 ≡ 0 ( m o d 4 ) .