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.)
Solution Spoiler | Comment 2 of 11 |

With 10 digits available and no constraints, the maximum number of employees is 10^10.

When the constraint of 2 digits in every number combination being different is added, then one digit becomes dependant on a second digit.  For every change in one place, another must change. 

Simplistically, I would arrange the numbers as follows:
x_ _ _ _ _ _ _ _x for x = 0 to 9 

This will give 10^8 possibilities for the interior numbers and 10 possibilities for the “x”

Therefore the total will be 10^9 for 2 digits differ.

Following the same logic:

3 digits differ = 10^8 maximum
4 digits differ = 10^7 maximum
. . .
10 digits differ = 10 maximum


  Posted by Leming on 2005-11-29 12:00:04
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