MathDB
complete and difference numbers (9digit)

Source: Dutch NMO 2019 p1

January 9, 2020
number theoryDigits

Problem Statement

A complete number is a 99 digit number that contains each of the digits 11 to 99 exactly once. The difference number of a number NN is the number you get by taking the differences of consecutive digits in NN and then stringing these digits together. For instance, the difference number of 2514325143 is equal to 34313431. The complete number 124356879124356879 has the additional property that its difference number, 1212121212121212, consists of digits alternating between 11 and 22. Determine all aa with 3a93 \le a \le 9 for which there exists a complete number NN with the additional property that the digits of its difference number alternate between 11 and aa.