How many positive integers are there less than 1000000 (a million), such that:

  1. its digits are all distinct; (25% of the total score)
  2. it is even; (25% of the total score)
  3. have exactly 3 identical digits. (50% of the total score)

Handle each condition independently.

Updated: