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

Home > Probability
Never 0 mod 3 (Posted on 2016-03-17) Difficulty: 3 of 5
Let k be a positive integer. Suppose that the integers 1, 2, 3, ...3k, 3k + 1 are written down in random order.

What is the probability that at no time during this process, the sum of the integers that have been written up to that time is divisible by 3?

Source: Putnam competition

No Solution Yet Submitted by Ady TZIDON    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution Solution | Comment 1 of 7
The first integer must be congruent to 1 or 2 mod 3.  After that subsequent integers must be either a multiple of 3 or congruent to the running sum mod 3.  The next number which is 1 or 2 mod 3 must be the same parity as the first number, then all subsequent numbers 1 or 2 mod 3 strictly alternate 1 mod 3 and 2 mod 3.

If the first number is 1 mod 3 then the sequence will always have 1 or 2 more numbers of that form more than those of 2 mod 3, and vice versa.  Because there are k+1 numbers 1 mod 3 and only k numbers 2 mod 3, the first number must be 1 mod 3.

The multiples of three can occur anywhere except the first number, then there are ((3k)!)P(k!) = (3k)!/(2k)! ways out of (3k+1)! to choose how to put the multiples of 3 in the sequence.  There are (k+1)! ways to place the 1 mod 3 numbers and k! ways to place the 2 mod 3 numbers.

Then in total there are k!*(k+1)!*(3k)!/(2k)! ways to create a desires sequence out of all (3k+1)! possible sequences.  Then the probability is ((k+1)!*(3k)!/((2k)!)) / ((3k+1)!) = (k!*(k+1)!)/((2k)!*(3k+1))

Edited to fix mistake found by Charlie.

Edited on March 17, 2016, 11:34 pm
  Posted by Brian Smith on 2016-03-17 14:05:35

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

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

Copyright © 2002 - 2018 by Animus Pactum Consulting. All rights reserved. Privacy Information