To be honest, I never managed to solve it. I thought about it for a day or two but just couldn't really make any headway. And I'm not sure who eventually showed me how to do it - probably Nick Sheridan or Zhihong Chen, or both. But here it is, in all its unadulterated vexatiousness:
Problem sheet 3, question 19 (official rating: Very
Prove that, for any 1993 integers, there is a subset whose sum is divisible by 1993.
Okay, well, you can see that this version of the question is a bit outdated. Like, twenty years outdated. So let's solve it, but with 1993 changed to 2013. =P
Now, you might think this changing of numbers is just some general frivolousness on my part, but there's something to it: I've just hinted that this property isn't specific to the number 1993 - which is prime, but also applies to 2013 - which certainly isn't. So, whatever strategy that we try had better not need prime-factor-based arguments (**).
Now, let's call these integers a1,a2,a3,…,a2013 and consider the following related integers:b1=a1,b2=a1+a2,b3=a1+a2+a3,⋮b2013=a1+a2+a3+…+a2013.
Now, if any of these bis is a multiple of 2013, then we're done - because each bi is the sum of some subset of the ajs.
On the other hand, if none of the bis are a multiple of 2013, then their remainders when divided by 2013 are going to be integers between 1 and 2012. So, we've got 2013 bis, and their remainders could be one of 2012 different numbers; by the pigeonhole principle (try squeezing 2013 pigeons into 2012 holes), two of these numbers bn and bn+m must have the same remainder. But this means that bn+m−bn=an+1+an+2+…+an+m is a multiple of 2013. And we're done!
Okay, I admit that looked pretty easy, and in some sense...it was pretty easy. But to someone who hasn't done very much recreational or puzzly maths (or just maths), there's a stunning idea there - that in reorganising things you can sometimes observe the patterns more easily. Orrite orrite, it sounds even more trivial and trite and obvious when I put it like that, but I think that you get the point. So much of mathematics is based on organising things neatly. E.G.: matrices arise from wanting to organise linear equations neatly, and anyone who's done and understood a course in linear algebra can tell you how amazing matrices are.
So ugh...yea...totes do the "Very hard" questions in the exercise book guys...guuuuuys? =P
*: I don't know why, but it'd taken me years to learn how to spell "exercise". I guess I always used to chuck an extra "c" after the "x". Shrug
**: If you think about it, it's kinda weird that the difficulty of the question is somehow hugely affected by what number you give. And that in this case, giving a "nicer" number - a prime, actually makes the problem way harder. Just coz you get distracted by it.
Thanks for taking the time to write up these posts, Yi. Always an interesting read :)
ReplyDeleteMy pleasure James, w00t! First comment. :P
Delete