Exercise: Counting integers
How many positive integers are there less than 1000000 (a million), such that:
- its digits are all distinct;
- it is even;
- have exactly 3 identical digits.
Handle each condition independently.
How many positive integers are there less than 1000000 (a million), such that:
Handle each condition independently.