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?

  Submitted by Tristan    
Rating: 4.5000 (4 votes)
Solution: (Hide)
Solution to part 1:
They can have 10^9 clients. This works if, for example, the sum of all the digits mod 10 is zero for each code.

This is provably the maximum number of clients. Given any ten digit code, there are 90 codes that differ by exactly one digit. Let's call these 90 codes "adjacent" to the first chosen code. Of these adjacent codes, only 10 can be given to clients at most. Since every used code is adjacent to 90 unused codes, and every unused code is adjacent to at most 10 used codes, then the highest ratio of used to unused codes is 9:1. Therefore, the most clients they can have is 1/10 of all possible codes, or 10^9.

Comments: ( You must be logged in to post comments.)
  Subject Author Date
partial answerK Sengupta2007-09-24 10:30:11
re(2): 3+ digits?Tristan2006-02-26 02:02:53
Solutionre: 3+ digits?goFish2006-02-25 18:04:31
3+ digits?Tristan2006-02-02 19:22:51
Proof?goFish2005-12-02 07:42:48
re(2): SpoilerLeming2005-12-01 12:34:52
re: Clarification requiredTristan2005-11-30 19:05:14
Clarification requiredgoFish2005-11-30 05:32:24
re: SpoilerCharlie2005-11-29 14:11:02
SolutionSpoilerLeming2005-11-29 12:00:04
Hints/TipsBig, big hinte.g.2005-11-29 11:02:27
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 (3)
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