# Calculating total number of possible passwords with rules regarding amount of certain characters

I'm new to this so hope this is the right place to ask!

I'm currently in the process of compiling a custom wordlist/password list and would like to know how many possible words can be produced.

All of the words will abide by the following rules:

• Exactly 10 characters long
• Will contain exactly 6 letters (a-f, all lowercase)
• Will contain exactly 4 numbers (2-9)
• The letters and numbers can appear anywhere in the word

I read in a forum somewhere that this problem could be solved using the following formula:

(6^6)*(8^4)*10

which is

(6 possible letters ^ 6 letters) * (8 possible numbers * 4 numbers) * password length

This results in: 1,911,029,760 combinations. Which seems low?

Any help with this would be greatly appreciated as it is for my Computer Science Dissertation!

$$(6^6) \times (8^4) \times \binom{10}{4} = 40,131,624,960$$