I still want to party with you!
I still want to party with you!
I am saying that 26 letters, less one vowel is 25 characters; nothing more.Are you suggesting that there are 25 non-vowels in a 26 character alphabet?
Then a contradiction exists. One, or both, of your premises must be false.I am saying that 26 letters, less one vowel is 25 characters; nothing more.
...
If 2&3 are not vowels, the combinations are:
5 x 25 x 24 x 4 = 12,500
...
Ok, I think there's a flaw in my analysis of the options available for the fourth character. My approach may result in some duplicates.djsfantasi, you started so well, I had high hopes, but you faded before the line. Sorry.
Why?Each option has 5 x 25 x 24 combinations in common...
We've picked 1 character out of five vowels. In the entire alphabet, that leaves 25 characters.Then a contradiction exists. One, or both, of your premises must be false.
But you said, in option 1, 2&3 are not vowels. Shouldn't you take that fact into account?We've picked 1 character out of five vowels. In the entire alphabet, that leaves 25 characters.
We then pick any letter from those 25 characters, which leaves 24 characters
We then pick any letter from those 4 characters...
and so on.
VLLVNN is legal (provided no character is used more than once)djsfantasi, you started so well, I had high hopes, but you faded before the line. Sorry.
Joey
The password must be
1 Any vowel
2 Any remaining letter after 1 is picked (vowel or consonant)
3 Any remaining letter after 2 is picked (vowel or consonant)
4 Any remaining vowel after 3 is picked
5 Any digit from 1 to 9 inclusive
6 Any remaining digit after 5 is picked
So (1) and (4) cannot be the same vowel.
And yes order does matter
VLLVNN is not the same as VVLLNN since the options are different depending upon which order is used.
If they are not vowels, then they must be consonants, agree? In either case, the selected character is a member of the set of remaining letters and whose selection reduces the set by one - regardless of its sub-set membership.But you said, in option 1, 2&3 are not vowels. Shouldn't you take that fact into account?
WBahn, I was not commenting upon the legality of VVLLNN wrt the original specification. What I was trying to say is that the answer is the same regardless of the order in which the analysis is done, which I think you agreed with....VVLLNN is not necessarily legal...
In your option 1, the number of possible characters for the 2nd position is the number of consonants (i.e. the number of non-vowels) in the alphabet, not one less than the number of letters. I was hoping you'd recognize this for yourself.If they are not vowels, then they must be consonants, agree? In either case, the selected character is a member of the set of remaining letters and whose selection reduces the set by one - regardless of its sub-set membership.
You are contradicting yourself when you say "if 2&3 are not vowels" because you allowed for the possibility that they were vowels when you allowed for 25 and 24 possible choices for those slots. In other words,Here's my shot...
Ok, I have assumptions beyond the explicitly stated requirements, which are that the second and third positions can also be a vowel as long as there is no repetition of characters. This is important, as it affects the options/combinations for the second and third characters. Someone not operating on this assumption may think there are only 21 or less choices for the second and third characters.
Secondly, the characters are picked in order of their position within the password. I.e., the fourth character will not be picked before the second and third characters are picked.
Now on to the problem.
It's easy to agree that we have 5 options for the first password character. (Assuming that we are not considering 'y' to be a vowel).
For the second, we have 25 options (26 less the first character chosen). Some people reduce this further, since we need another vowel for the fourth position, but there are 4 vowels left and we can pick any vowel for the second (and third) position and still satisfy the requirements.
The same logic applies to the third character, except we have one less option, given that we picked a character for the second position. Hence, we have 24 options.
The fourth character is a little tricky. Depending on the second and third charaxters, we have anywhere from 2 to 4 options. So lets calculate the combinations based on what we know so far and the various scenarios for the fourth character.
If 2&3 are not vowels, the combinations are:
5 x 25 x 24 x 4 = 12,500
If 2&3 has one vowel amongst them, the combinations are:
5 x 25 x 24 x 3 = 9,375
If 2&3 are both vowels, the combinations are:
5 x 25 x 24 x 2 = 6,250
Summing the combinations in each of the three scenarios, we get 28,125 combinations.
The combinations of the last two digits is 72 (9x8). Multiplying 28,125 x 72, we get a total number of combinations equal to 2,025,000
I was responding to studiot, not you. I'm agree with you. The exception would be if the rules meant that you a character can appear more than once, as long as they aren't next to each other. This is a stupid password rule that quite a few real systems impose.WBahn, I was not commenting upon the legality of VVLLNN wrt the original specification. What I was trying to say is that the answer is the same regardless of the order in which the analysis is done, which I think you agreed with.
Put another way, any specification that includes two vowels, two letters, and two numbers will always have the same number of permutations.
I believe this is a general rule, and I am unaware of any exceptions, as I indicated by my question to you.
Well, then I think he will need to show how the toy problem I used earlier only has 9 possible passwords and then split the list of 18 into two sets that are duplicates.Well, studiot might say that answer is exactly twice the correct answer.
I found the original site where studiot was helping someone with this problem (I didn't 'cheat' with it. )
http://www.scienceforums.net/topic/86467-help-with-permutation-problem-grade-11/
import string
vowels = 'AEIOU';
letters = string.ascii_uppercase;
digits = '123456789'
combinations = 0;
for c1 in vowels:
pass1 = c1;
for c2 in letters:
if c2 not in pass1:
pass2 = pass1 + c2;
for c3 in letters:
if c3 not in pass2:
pass3 = pass2 + c3;
for c4 in vowels:
if c4 not in pass3:
pass4 = pass3 + c4;
for c5 in digits:
if c5 not in pass4:
pass5 = pass4 + c5
for c6 in digits:
if c6 not in pass5:
password = pass5 + c6;
combinations = combinations + 1;
print(combinations);
I've noticed a lot of members here use computer simulation to check their designs.I just threw together a simple Python script...
by Aaron Carman
by Jake Hertz
by Jake Hertz
by Aaron Carman