Let S be the set of all passwords which are six to eight characters long, where each character is either an alphabet from or a number from with the repetition of characters allowed. If the number of passwords in S whose at least one character is a number from is , then is equal to ____.
Answer: 7073
Solution
Total characters available: 10 (5 alphabets + 5 numbers).
Total passwords = (for lengths 6, 7, 8).
Passwords with only alphabets = .
Passwords with at least one number =
Therefore .
Total passwords = (for lengths 6, 7, 8).
Passwords with only alphabets = .
Passwords with at least one number =
Therefore .
JEE Main · 2022 · 28 Jul 2022 · Shift 1 · Integer answer