Discrete math, problem on combinations. there are 6 undercase letters in a password, how many passwords are there if you have to use at least one 'a'?? I have calculated the total number of passwords which is 26^6 and I have calculated the amount with just one 'a' which is 6*25^5, i just need don't know how to do it when it comes with the at least one.

wurpenxd

wurpenxd

Answered question

2022-09-06

Discrete math, problem on combinations
there are 6 undercase letters in a password, how many passwords are there if you have to use at least one 'a'?? I have calculated the total number of passwords which is 26 6 and I have calculated the amount with just one 'a' which is 6 25 5 , i just need don't know how to do it when it comes with the at least one.

Answer & Explanation

incibracy5x

incibracy5x

Beginner2022-09-07Added 21 answers

Step 1
Consider the complement in which the string has no a. How many such possible strings are there?
There are 25 6 possible strings with no a.
There are 26 6 possible strings with no restrictions.
Step 2
So 26 6 25 6 are the number of strings with at least one a. We removed all strings that have no a and are left with the desired result.

Do you have a similar question?

Recalculate according to your conditions!

New Questions in Discrete math

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?