MathDB
Integer has 1994 digits from 1 to 5, next digit is 1 away

Source: Baltic Way 1994

December 22, 2011
absolute valuenumber theory proposednumber theory

Problem Statement

How many positive integers satisfy the following three conditions:
a) All digits of the number are from the set {1,2,3,4,5}\{1,2,3,4,5\}; b) The absolute value of the difference between any two consecutive digits is 11; c) The integer has 19941994 digits?