How many combinations can be created with 2 letters, 2 numbers, and 2 letters?

  • Context: High School 
  • Thread starter Thread starter reldridge
  • Start date Start date
  • Tags Tags
    Combination Random
Click For Summary

Discussion Overview

The discussion revolves around calculating the total number of possible combinations for a code consisting of 2 letters, 2 numbers, and 2 letters, specifically focusing on the implications of combinations versus permutations. The context includes generating unique codes for a client using a random generator.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant seeks clarification on the terminology of "combinations" versus "permutations" in the context of generating a code.
  • Another participant calculates the total number of possible codes as 21,233,664 based on the formula: 24 * 24 * 8 * 8 * 24 * 24.
  • A participant expresses concern about the potential for duplicate codes when using a random generator and discusses the need to remove duplicates to achieve a target of 2.5 million unique codes.
  • There is a question raised about the nature of "true" randomness and whether it would inherently avoid duplicates.
  • A comparison is made to programming techniques for generating random sequences, specifically in the context of shuffling a deck of cards.

Areas of Agreement / Disagreement

Participants express differing views on the implications of randomness and the potential for duplicates in generated codes. There is no consensus on the best approach to ensure uniqueness in the codes.

Contextual Notes

Participants discuss the need for clarification on terminology and the mathematical approach to calculating combinations versus permutations, as well as the implications of using a random generator for code creation.

reldridge
Messages
5
Reaction score
0
I am creating a random combination(code) for a client. I need to see what the total number of combinations there can be.

Please let me know if I am using the wrong word Combination vs Permutations.

Formula:
2 letters + 2 numbers + 2 letters
example: TR12FR

The random letters are taken from 24 values:
ABCDEFGHJKLMNPQRSTUVWXYZ

The random Numbers are taken from 8 Values:
23456789

Any help would be greatly appreciated.

Thanks
Ryan.
 
Last edited by a moderator:
Physics news on Phys.org


combination is right you're selecting letters, numbers and more letters:

Choices for each character of your 6 charcter code:

24 * 24 * 8 * 8 * 24 * 24 = total number of codes possible

Now if these could be rearranged then you'd have to worry about permutations to elimnate repeats in your counts.
 


Thank you -

So de-duping these down to create 2.5 million unique codes using this formula will not be an issue, sense there are 21,233,664 possibilities.
 
Last edited:


Well sense this is just a random generator out of excel the possibility of it creating a duplicate is there, so i will need to just remove dupes, or nth select down to 2.5 million unique codes.

Just needed to make sure that the 6 digit using that formula could create that many unique codes.
 


reldridge said:
Well sense this is just a random generator out of excel the possibility of it creating a duplicate is there ...

So you have a belief that "true" random would not include any dupes?

How would you create 100000 consecutive random numbers from 1 to 100 ?
 


this reminds of how new programmers used to construct a deck of randomly sorted cards.

generate a number from 0-51 check if its present in the crd deck array if so then generate another.

The better approach is to generate a sorted sequence of cards into an array and then to randomly shuffle two cards by selecting two indexes at random and swapping the cards.
 


phinds said:
So you have a belief that "true" random would not include any dupes?

No belief, was just stating that there could be duplicate codes during the random selection and i would need to remove the duplicates until reaching my goal of 2.5 unique codes...
 


Thanks for the help.
 

Similar threads

  • · Replies 20 ·
Replies
20
Views
3K
Replies
1
Views
7K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 8 ·
Replies
8
Views
1K
Replies
4
Views
7K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
782
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K