Permutations of the first $n$ positive integers

156 Views Asked by At

What is the largest n such that there exists a permutation of the first n positive integers in which no two consecutive terms share any digit?