□ □ □ □ □ □ + + + + + + □ □ □ □ □ □ = = = = = = □ □ □ □ □ □ Is it possible to fill the above squares with all the integers from 1 to 18 (using each number only once), such that each equation holds true?
For example, if we had only 4 rows and 12 numbers from 1 to 12 available, we could do the following:
1
2
3
4
+
+
+
+
6
1
0
8
5
=
=
=
=
7
1
2
1
1
9
.
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.
Great discussion in the comments below. To summarize, we can fill the n equations with integers from 1 to 3 n if and only if n ≡ 0 , 1 ( m o d 4 ) .
Try your hand at proving this, before reading further.
To show that this is a necessary condition, we generalize Brian's argument.
To show that this is a sufficient condition, we have to find a construction, which is what Ben did.
You've shown that having an even sum is a necessary condition. Is it also a sufficient condition?
IE Since ∑ i = 1 3 n = 2 1 ( 3 n ) ( 3 n + 1 ) , for the sum to be even we either have 3 n ≡ 0 ( m o d 4 ) or 3 n + 1 ≡ 0 ( m o d 4 ) , which gives us n ≡ 0 , 1 ( m o d 4 ) .
For
n
=
1
, we have
1
+
2
=
3
.
For
n
=
4
, we have the example given in the problem.
I've also verified that
n
=
5
,
8
can work.
So, for small values, this seems to work. However, I had to do some trial and error to determine the equations, and don't see a quick generalization. Thoughts?
Log in to reply
I think I have a pattern that will work for 0 mod 4, but it is not very elegant. I will keep thinking about this and if I can't come up with something nicer I'll just post what I've got. (EDIT: Oh, it may also work for the 1 mod 4 case...)
Log in to reply
Great! That's exciting :)
Log in to reply
@Calvin Lin – The picture works for both cases, but I think putting it into symbols will not illuminate things. So here is just for n=0 mod 4, and 1 mod 4 is "similar". Put n=4k.
1 2 4 2 k − 2 2 k + 2 2 k + 4 4 k − 2 2 k 4 k 3 5 4 k − 1 + + + + + + + + + + + + 5 k 6 k 6 k − 1 5 k + 2 5 k − 1 5 k − 2 4 k + 1 8 k 6 k + 1 1 0 k − 1 1 0 k − 2 8 k + 1 = = = ⋮ = = = ⋮ = = = = = ⋮ = 5 k + 1 6 k + 2 6 k + 3 7 k 7 k + 1 7 k + 2 8 k − 1 1 0 k 1 0 k + 1 1 0 k + 2 1 0 k + 3 1 2 k .
Log in to reply
@Ben Reiniger – The pairing / pattern is great! Thanks for shedding light on this :)
Log in to reply
@Calvin Lin – Huh, evidently I should have recognized this. This is equivalent to the existence of Skolem sequences!
@Ben Reiniger – I quite didn't understand for n=4k, how you paired the summands? Would it be possible for you to explain in detail?
Log in to reply
@Vighnesh Raut – Let's take k = 10 :
1 + 50 = 51, 2 + 60 = 62, 4 + 59 = 63, 6 + 58 = 64, 8 + 57 = 65, 10 + 56 = 66, 12 + 55 = 67, 14 + 54 = 68, 16 + 53 = 69, 18 + 52 = 70, 22 + 49 = 71, 24 + 48 = 72, 26 + 47 = 73, 28 + 46 = 74, 30 + 45 = 75, 32 + 44 = 76, 34 + 43 = 77, 36 + 42 = 78, 38 + 41 = 79, 20 + 80 = 100, 40 + 61 = 101, 3 + 99 = 102, 5 + 98 = 103, 7 + 97 = 104, 9 + 96 = 105, 11 + 95 = 106, 13 + 94 = 107, 15 + 93 = 108, 17 + 92 = 109, 19 + 91 = 110, 21 + 90 = 111, 23 + 89 = 112, 25 + 88 = 113, 27 + 87 = 114, 29 + 86 = 115, 31 + 85 = 116, 33 + 84 = 117, 35 + 83 = 118, 37 + 82 = 119, 39 + 81 = 120.
Is this detailed enough, Vighnesh?
how have you gotten 18*19/2? (I am just self learning sums. Would appreciate a link or explanation.)
Log in to reply
Write out the sum of consecutive integers forwards and backwards as follows:
S = 1 + 2 + 3 + . . . . . + ( n − 2 ) + ( n − 1 ) + n
S = n + ( n − 1 ) + ( n − 2 ) + . . . . . + 3 + 2 + 1
Now add the corresponding terms in each of these sums of n elements. For example, the first corresponding pair sum is 1 + n , the next is 2 + ( n − 1 ) = n + 1 , the next is 3 + ( n − 2 ) = n + 1 , and so on down the line. Each of these n pairs sum to n + 1 , so we end up finding that
2 S = n ( n + 1 ) ⟹ S = 2 n ( n + 1 ) .
You also may have learned the sum formula for an arithmetic progression with n terms, first term a and common difference d , namely
S n = 2 n ( 2 a + ( n − 1 ) d ) .
By plugging in a = 1 , d = 1 we get S n = 2 n ( n + 1 ) as before.
How can you know that the sum of all 18 boxes must be 2 S ?
Log in to reply
Since for each of the 6 individual equations the sum of the 2 boxes on the left is equal to the sum of the 1 box on the right, the sum of all 12 of the boxes on the left must equal the sum of all 6 boxes on the right. So if the sum of all 12 boxes on the left is S , then the sum of all 6 boxes on the right must be S as well, making the sum of all 18 boxes 2 S .
(mod 2) the only possibilities are:
In each row either two, or no odd numbers must occur. So the total number of odd numbers will be even. However, there are 9 odd numbrrs in the range 1-18.
There are 3 ways to fill squares in each equation depending on the parity of numbers used:
even + even = even - using 3 even numbers; odd + even = odd - using 1 even and 2 odd numbers; odd + odd = even - again, using 1 even and 2 odd numbers;
So, for each equation we need to use either no odd numbers at all, or two odd numbers, meaning that the we need to use odd numbers an even number of times :) However, there are 9 odd numbers from 1 to 18 which tells us that squares can't be filled this way.
Was going to propose the exact same solution! 👍🏻
The solution Brian Charlesworth posted is an elegant one. My solution is not that good but, I'm gonna post it nonetheless.
The right hand side (RHS) contains 6 empty boxes. Let's assume n numbers that appear in RHS are even. So, 6 − n numbers are odd. The crucial fact is an even number can be written as a sum of either 2 even numbers or 2 odd numbers. On the other hand, odd numbers can be written as a sum of one even and one odd number.
Now, assume that k even numbers on the RHS are written as a sum of two even numbers. So, the number of even numbers in those equations becomes n + 1 × ( 6 − n ) + 2 × k = 6 + 2 k . Clearly 6 + 2 k is even.
There are 9 even numbers from 1 to 18. (Or in other words, we have odd numbers of even numbers!) But, 6 + 2 k = 9 where k ∈ N and this is a contradiction. Therefore, the answer to this question is NO.
That's a nice observation!
The even-odd counting that you have is similar to the idea in Brian's solution. As you found, each equation must have an even number of odd terms, which in Brian's solution translates to "sum of terms in each equation is even".
Your solution is good too! My approach is similar to yours :)
Problem Loading...
Note Loading...
Set Loading...
For this to be possible, the sum S of the 12 boxes on the LHS of the equations must equal the sum of the 6 boxes on the RHS of the equations. So the sum of all 18 boxes must be 2 S , i.e., an even number.
But since the 18 boxes must be filled by the integers 1 to 1 8 , their sum must be
n = 1 ∑ 1 8 n = 2 1 8 × 1 9 = 9 × 1 9 = 1 7 1 ,
which is odd, and thus cannot equal 2 S for any integer S . The answer is therefore N o .