Suppose that a password for a computer system must have at least 8, but not more than 12, characters, where each character in the password is a lowercase English letter, an uppercase English letter, a digit, or one of the six special characters *, >, <, !, +, and =.
(a) How many different passwords are available for this computer system?
(b) How many of these passwords contain at least one occurrence of at least one of the six special characters?
My attempt:
lowercase = $26$ chances
uppercase = $26$ chances
digits = $10$ chances
characters = $6$ chances
$26 + 26 + 10 + 6 = 68$
$68^{12} - 68^8 = 21,381,376$ combinations.
Another attempt of mine, I dunno which is correct:
$$ {68\choose 12} - {68\choose 8} = 7,282,025,622,664 - 7,392,009,768 = 7.2746\times 10^{12} $$