A user must choose $ n $ characters password using:
- uppercase letters $ A-Z (size=26)$
- lowercase letters $ a-z (size=26)$
- digits $ 0-9 (size=10)$
Each password must contain at least an uppercase and a digit.
What should be the formula to calculate number of valid passwords of size $ n $, give $ n >= 1$ ?
I have calculated it to be:
Uppercase x Digit x combination of all 3 types = $ 26\times10\times(26\times26 \times10)^{n}$