Skip to the page

Counting: question 9 of 14

An ACT® Math practice question. Pick an answer to check it, or open the answer and the worked explanation.

The question

CountingMedium

A password for a school library account must be exactly 5 characters long: 2 letters followed by 3 digits. Each letter is one of the 26 lowercase letters a through z, and the 2 letters must be different from each other. Each digit is one of the digits 0 through 9, and digits may repeat. Which expression gives the number of possible passwords?
  1. A262⋅10326^2 \cdot 10^3
  2. B262⋅10⋅9⋅826^2 \cdot 10 \cdot 9 \cdot 8
  3. C26⋅25⋅10⋅9⋅826 \cdot 25 \cdot 10 \cdot 9 \cdot 8
  4. D26⋅25⋅10326 \cdot 25 \cdot 10^3

Choose an answer, then open the answer below to check it.

A place to start

Count the choices for one position at a time. Which positions are affected by the rule that the letters must be different?

Another hint

The first letter has 26 choices. Decide how many choices the second letter has if it must be different, and how many choices each digit has if repeats are allowed.

One more hint

The letters give 26 choices and then 25. Each of the 3 digit positions has 10 choices, because 0 counts as a digit and repeats are allowed. Multiply the five factors together.

Show the answer and explanation

Answer: D.26⋅25⋅10326 \cdot 25 \cdot 10^3

Why D works

  1. Count the choices one position at a time. The first letter can be any of the 26 letters.
  2. The second letter must be different from the first, so it has 25 choices.
  3. Each of the 3 digits can be any of the 10 digits from 0 through 9, and repeats are allowed, so the digits contribute 10×10×10=10310 \times 10 \times 10 = 10^3.
  4. Multiply the choices for all five positions: the number of possible passwords is 26⋅25⋅10326 \cdot 25 \cdot 10^3.

Why the other choices are wrong

  • A. This gives the second letter all 26 choices, which would be right if letters could repeat. The two letters must be different, so the second letter has only 25 choices; the digit part, 10310^3, is fine.
  • B. This switches the two rules: it lets the letters repeat and makes the digits all different. The problem says the opposite, so the letters should count down (26, then 25) while each digit keeps all 10 choices.
  • C. The letters are counted correctly, but the digits count down as 10, 9, 8, which applies the no-repeat rule to them as well. Digits may repeat, so every digit position has 10 choices.

The rule

Multiply the number of choices for each position; when repeats are not allowed, each new position loses the choices already used, and when repeats are allowed, every position keeps the full number.

Spot it next time

Read the repeat rule for each kind of character separately: "must be different" makes the factors count down, and "may repeat" keeps them the same.