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

Home > Numbers
Easily distinguished codes (Posted on 2005-11-29) Difficulty: 4 of 5
A certain company gives each of its clients a 10 digit number as a sort of identification code. As a precaution, any pair of used codes should differ by at least two digits so no one accidentally gives someone else's code.

How many clients can they have before adding digits? Give an example of a set of codes they might use. What if each pair of codes must differ by at least 3 digits? 4? More?

See The Solution Submitted by Tristan    
Rating: 4.5000 (4 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
3+ digits? | Comment 8 of 11 |

I haven't solved this one myself, beyond the first question, so I have to wait for someone to solve the rest of it before I can post an official solution.

Finding 10^9 codes that differ by 2 digits each is relatively easy.  However having all codes abcdefghXX doesn't work, because, just as Charlie pointed out, 1234567899 differs from 0234567899 by only one digit.  Leming has already fixed his solution so that it still has 10^9 codes, and now works properly.  Nobody's posted a proof of the maximum, but I didn't really ask for a proof anyway.

Finding as many codes as possible that differ by 3 digits is harder.  Several comments have proposed that there are 10^8 codes, but I'm not so sure.  I've tried thinking of sets of 10^8, but each time I find a counterexample.

For example, I proposed abcdefghXX where X is equal to the sum of a through h mod 10.
Counterexample:
1000000011
0100000011
2 digits differ

Prove me wrong.


  Posted by Tristan on 2006-02-02 19:22:51
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (1)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (16)
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