The number N is a string of decimal digits in which every digit is a difference between two other digits.
Examples: 333012 is such a number. So is 1278990.
What is the smallest pandigital number that possesses the above feature?
I assume pandigital means it must contain all the digits from 0 through 9.
So we could start with 1023456789. This satisfies the puzzle condition for all of the digits except the 0 and 9. For the zero we just need to duplicate one of the digits, and the only way a 9 can be supported is by the presence of another 9 and a 0. So all we need to do is add a 9 to the above starting point, and obviously to remain minimal we'd want to add it to the right, so we end up with:
10234567899

Posted by tomarken
on 20160504 10:15:36 