Paragraph

This is just the multiplicative principle. There are 7 digits which we can select for each of the 5 positions, so we have \(7^5 = 16807\) such numbers.

in-context