112k views
1 vote
Find the smallest evan number that contains every digit once

User Cacau
by
6.0k points

1 Answer

3 votes

Answer:

  • The smallest even number that contains every digit once is 1023456798.

============================

Conditions we need to meet:

  • Use every digit once,
  • Even number,
  • Smallest possible number.

To get the smallest number we'd use all 10 digits in the ascending order:

  • 0123456789

Here we can't have zero in the beginning as the number becomes 9-digit.

So swapping zero with the closest digit, 1.

Our number should be even, so we should swap 9 with one even digit.

Again it should be the closest one to 9, so it is 8.

We get the following number as a result:

  • 1023456798

To test you may swap digits, any number you get will be greater than this number.

User Xofer
by
7.1k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.