All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Just Math
Find a subset (Posted on 2005-08-24) Difficulty: 3 of 5
Given N integers a1, a2, ... aN prove there exists a (non empty) subset whose sum is a multiple of N. (Allow repeated numbers in both the original set and its subsets.)

See The Solution Submitted by Federico Kereki    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
Some Thoughts No Subject | Comment 3 of 6 |

oops, this is garbage, ignore it.  I pushed post comment instead of view source...

 

Let B = {b1, ..., bN}, such that for each i,  bi = ai % N (ie. the remainder when ai is divided by N).  Assume there is no subset of B that sums to 0 % N.  Clearly, this means bi can't be 0 for any i.

Let n(i) be the number of times i appears in B for each positive integer i < N.  Thus, n(1)+n(2)+...+n(N-1) = N.  [note: from here on, all arithmentic is done mod N]

For each i between 0 and N; i, 2i, ... , n(i)*i are all possible sums of subsets of B.  Let Si = {i, 2i, ... , n(i)*i}. 

This forces n(N-s)=0 for all s in Si.  It follows that either the elements of Si are distinct, or one of them is 0.  This means, for each i, there are n(i) distinct j's such that n(j) = 0.  

Since there are only N-1 distinct values that could populate the Si's, the sets Si can't be mutually disjoint.  This means there's

 

Edited on August 24, 2005, 10:20 pm

Edited on August 24, 2005, 10:31 pm
  Posted by Josh70679 on 2005-08-24 22:19:51

Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (8)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information