Solve 7 Digit Phone Number Combination Puzzle

In summary, the conversation discusses how to determine the number of possible combinations when only two digits in a seven digit phone number are interchanged. The brute force method would be to try every permutation, but a more efficient way is to switch each digit with every other digit, resulting in 21 possible combinations. However, this number decreases if there are repeated digits in the phone number. A helpful trick is that when a number has exactly two digits swapped, the difference between the original number and the swapped number is divisible by 9. This problem can also be solved using partition numbers.
  • #1
dipole
555
151
Suppose you have written down a seven digit phone number, but you realize you made a mistake and two of the digits are interchanged. For example, suppose the correct number is 345-6789, but you have on accident written down 348-6759.

Sticking to the general case though, where you have seven digits in a specific order, and only two of them are out of place - how many possible combinations must you try in order to find the correct number?

The brute force way would be to just try every permutation, 7! but that includes a huge number of combinations which are impossible to be correct - the correct combination must only switch two digits from the original set.

Any ideas how to solve this, or how to construct a procedure to actually generate the list of possibilities?
 
Mathematics news on Phys.org
  • #2
if you know it is only 2 numbers that are switched, then you have 7 things taken 2 at a time or 7!/(2!)(5!) or 21, 2 number combinations to switch.
 
  • #3
or how to construct a procedure to actually generate the list of possibilities?
Exchange digit 1 with 2, 1 with 3, ..., 1 with 7, 2 with 3, 2 with 4, ..., 2 with 7, ..., ..., 6 with 7.

For phone numbers where digits appear multiple times, some of those switches give the original number and reduce the number of possible phone numbers.
 
  • #4
One trick that may be helpful:

When a number x in decimal notation has exactly two digits swapped,with the swapped

number being x', then 9 divides the difference x-x'. In your case:

3486759-3456789=29970.

Basically, x-x'= an10n+ak10k- [ ak10n+ an10k]=

ak(10n-10k)+an(10k -10n)
 
Last edited:
  • #5
mfb said:
Exchange digit 1 with 2, 1 with 3, ..., 1 with 7, 2 with 3, 2 with 4, ..., 2 with 7, ..., ..., 6 with 7.

For phone numbers where digits appear multiple times, some of those switches give the original number and reduce the number of possible phone numbers.

Ah duh, this makes the problem easy. There are six possible pairs for each starting digit, and seven different digits giving 42 different swaps, but each swap is doubly degenerate, reducing the number by halve to give what coolul007 posted, which is 21.

For some reason I am just terrible at combinatorial stuff, but this is actually an easy question.

Bacle2 said:
One trick that may be helpful:

When a number x in decimal notation has exactly two digits swapped,with the swapped

number being x', then 9 divides the difference x-x'. In your case:

3486759-3456789=29970.

Basically, x-x'= an10n+ak10k- [ ak10n+ an10k]=

ak(10n-10k)+an(10k -10n)

That's a neat fact, thanks.
 
  • #6
Yes, 21 if the digits are all different, but fewer if there are repeated digits. So in general it breaks down into lots of cases: all different, 1 pair the same, 2 pairs the same, 3 the same, ... The number of cases is a partition number.
 

1. What is a 7 digit phone number combination puzzle?

A 7 digit phone number combination puzzle is a type of puzzle where the player must find the correct combination of numbers to unlock a phone. The numbers are typically arranged in a grid and the player must use logic and deduction to figure out the correct sequence.

2. How many possible combinations are there in a 7 digit phone number combination puzzle?

There are 10 million possible combinations in a 7 digit phone number combination puzzle, as there are 10 digits (0-9) that can be used in each of the 7 positions.

3. What strategies can be used to solve a 7 digit phone number combination puzzle?

There are several strategies that can be used to solve a 7 digit phone number combination puzzle. These include trying common number sequences, eliminating numbers that have already been used, and using process of elimination to narrow down the possible combinations.

4. How long does it typically take to solve a 7 digit phone number combination puzzle?

The length of time it takes to solve a 7 digit phone number combination puzzle can vary greatly depending on the player's skill level and the complexity of the puzzle. Some players may be able to solve it in a matter of minutes, while others may take longer.

5. Are there any tools or aids available to help solve a 7 digit phone number combination puzzle?

Yes, there are several tools and aids that can assist with solving a 7 digit phone number combination puzzle. These include phone number combination solvers, online generators, and puzzle-solving websites that offer tips and strategies for solving these types of puzzles.

Similar threads

  • General Math
Replies
2
Views
1K
Replies
20
Views
1K
Replies
8
Views
6K
  • Calculus and Beyond Homework Help
Replies
1
Views
589
Replies
5
Views
2K
  • General Math
Replies
4
Views
4K
Replies
4
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
14
Views
915
Back
Top