Worked solution
Count the settings of a four-wheel lock
Do you know the total number of combinations possible on a combination lock which contains 4 wheels each numbered 0–9?
Expand diagramFit diagram to page
Use the scrollbars or arrow keys to inspect details.
CJC · Lecture · Opening lock question (unnumbered)
Define the outcome as four labelled wheel positions
Each wheel can show one of the ten digits 0–9. The wheels are different positions, digits may repeat and a leading 0 is allowed. The word combination here means a lock setting; swapping different wheel digits changes the setting.
Multiply the choices at all four positions
There are settings, from 0000 through 9999. This supplies the count invited by the opening question; the source itself leaves it as a motivating question.
Common mistakes
A lock code is an ordered string, even though everyday language calls it a combination. Do not exclude a leading zero or disallow repeated digits.