is a 9-digit number which contains all the digits 1 to 9.
Any two adjacent digits in the number--in that order--form an integer which is divisible by either 6 or 7.
What is
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
We may first list all the possible 2-digit sequence, with cancellation of numbers containing '0' or repeated digits (repeated numbers are cancelled as well):
1 2 , 1 8 , 2 4 , 3 0 , 3 6 , 4 2 , 4 8 , 5 4 , 6 0 , 6 6 , 7 2 , 7 8 , 8 4 , 9 0 , 9 6
1 2 , 2 1 , 2 8 , 3 5 , 4 2 , 4 9 , 56, 6 3 , 7 0 , 7 7 , 8 4 , 9 1 , 9 8 .
From the list, we know that
(i) '7' must be the first digit,
(ii) the sequence 3 5 , 4 9 , 6 3 must be selected;
(iii) from (ii), 6 3 5 form a 'block' of the 9-digit number.
If '5' is not the last digit, by (iii), the block 6 3 5 will be extended to 6 3 5 4 (as we cant choose 56). This follows by the block 6 3 5 4 9 . Since by (i), 6 is not the first digit of the number, there must be a digit in front of digit 6. Note that there are only three such possibilities, namely 3, 5 and 9. However we can't use any of these because of the block 6 3 5 4 9 . Hence '5' must be the last digit.
Using the previous argument, the block 6 3 5 will be extended to 4 9 6 3 5 . Now we left with the digits 1, 2, 7 and 8. The previous list is now become
1 2 , 1 8 , 2 4 , 3 0 , 3 6 , 4 2 , 4 8 , 5 4 , 6 0 , 6 6 , 7 2 , 7 8 , 8 4 , 9 0 , 9 6
1 2 , 2 1 , 2 8 , 3 5 , 4 2 , 4 9 , 5 6 , 6 3 , 7 0 , 7 7 , 8 4 , 9 1 , 9 8 .
By (i), the number is either 7 2 ∗ ∗ 4 9 6 3 5 or 7 8 ∗ ∗ 4 9 6 3 5 . It is clear that 7 8 ∗ ∗ 4 9 6 3 5 is impossible, as there is no connection between the digits 8 and 4. So the only possibility is 7 2 1 8 4 9 6 3 5 .