Text
A combination lock has wheels, each showing the digits from to . How many distinct combinations does it allow?
Solution
Each wheel is set independently by choosing one of digits; digits may repeat and order matters. These are arrangements with repetition of elements taken at a time: