0
$\begingroup$

(i) Passwords must be 2 characters long, and (ii) each character must be a lower-case letter(a-z) or a digit(0-9). (iii) Each password must contain at least one letter.

Letter: 26, Digits: 10

Should it be 26x26-10x10?

Can someone explain this to me, I confuse myself way to much.

$\endgroup$
  • $\begingroup$ How many choices exist for the first character? Is it 26 possible or 36 possible? With this in mind, how many possible two-character passwords exist if we don't care about the third condition where each password must contain at least one letter? How many of those passwords were "bad" and violated the third condition? $\endgroup$ – JMoravitz May 8 '16 at 3:05
1
$\begingroup$

Since there are $26$ letters and $10$ digits, there are $26 + 10 = 36$ choices for each character. The number of two-character passwords that contain at least one letter is found by subtracting the number of passwords that contain only digits from the total number of possible passwords, which yields $36^2 - 10^2 = 1296 - 100 = 1196$.

$\endgroup$
  • $\begingroup$ Ohhh, I see. Thank you! Can I ask you one more question about counting, it's been bothering me. $\endgroup$ – Kono Dio Da May 8 '16 at 3:10
  • $\begingroup$ Sure. What is the question? $\endgroup$ – N. F. Taussig May 8 '16 at 9:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.