If I’m trying to find the number of unique different combinations for 8 numbers why isn’t the answer all 99999999 excluding all zero.

466 views

I think the number is 40,320.

Edit: Background…For work we need to create a unique code for fraud detection and the code can be no longer than 8 numerical digits. The generation of this number is another story. This is just for my own understanding.

In: 0

7 Answers

Anonymous 0 Comments

What you are looking for is actually permutations, or number of ways of arranging something.

Combinations are something different in math. In a combination order doesn’t matter. So 12345678 and 87654321 are considered the same combination of numbers. You see this in the LOTTO. it doesn’t matter which order the numbers are drawn only that you match the numbers chosen.

Permutations are ways of arranging things in order. So if you had say A B and C how many ways can you order them? ABC, ACB, BAC, BCA, CAB, CBA. Six, there are six permutations of three letters (or numbers or colors, etc.). For N unique objects (where N is the number of objects) you can calculate this by using the simple formula of N! (said N factorial). N! just means to multiple like this: N * N-1 * N-2 * N-3 *… * 2 * 1. For 3 this is just 3 * 2 * 1 = 6, just like we saw above. For 8 this is 8 * 7 * 6 * 5 * 4 * 3 * 2 * 1 = 40,320.

You are viewing 1 out of 7 answers, click here to view all answers.