Take a test Sign in 中文
← Exercise 451 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
Contents · by chapter
Basic Counting (147)
Balls in Boxes (6)
Probability (142)

Exercises and their solutions

Exercise 451
A $5$-digit passcode has exactly one even digit, exactly one (possibly different) prime digit, and no digit $0$. How many such passcodes are there?
← Back to Problem 451
Solution
  1. Digits are from $1$ to $9$. The even digits are $2,4,6,8$ and the primes are $2,3,5,7$, so the odd non-primes are $1$ and $9$.
  2. Even digit $2$ (also the prime): $5$ positions, and the other four digits are $1$ or $9$: $5\cdot2^4=80$.
  3. Even digit $4,6,8$: $5$ positions $\cdot\,3$ digits; then one of the other four positions is an odd prime ($4\cdot3$) and the last three are $1$ or $9$ ($2^3$): $15\cdot12\cdot8=1440$.
  4. Total: $80+1440=\boxed{1520}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year