1998 USAMO P1

Problem:

Suppose that the set {1,2,,1998} has been partitioned into disjoint pairs {ai,bi} (1i999) so that for all i, |aibi| equals 1 or 6. Prove that the sum|a1b1|+|a2b2|++|a999b999|ends in the digit 9.


Easy Solution:

Let there be x six-pairs (ai,bi) such that |aibi|=6. Then, there are 999x one-pairs such that |aibi|=1. The given expression evaluates to6x+(999x)=5x+999 Since this is already 4(mod5), it is enough to show that it is also 1(mod2). Note that |a1b1|+|a2b2|++|a999b999|a1b1+a2b2++a999b999a1+b1+a2+b2++a999+b9991+2++19981(mod2), as desired.

Overkill Solution:

Let there be x six-pairs (ai,bi) such that |aibi|=6. Then, there are 999x one-pairs such that |aibi|=1. The given expression evaluates to6x+(999x)=5x+999For this to be 9(mod10), it suffices to show that x is even.Note that along with any six-pair (n,n+6), in order to make successful pairings, we must have either exactly one of the six-pairs(n+1,n+7),(n+3,n+9),(n+5,n+11),or one of the following sets of three six-pairs{(n+1,n+7),(n+2,n+8),(n+3,n+9)}{(n+1,n+7),(n+2,n+8),(n+5,n+11)}{(n+1,n+7),(n+4,n+10),(n+5,n+11)}Each option generates an even number of six-pairs, so x is even, as desired  

Comments