A331989 Lexicographically earliest sequence of distinct positive integers such that five successive digits are always distinct.
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 23, 41, 50, 24, 13, 52, 40, 15, 26, 30, 12, 43, 51, 20, 34, 16, 25, 31, 42, 53, 14, 27, 35, 18, 29, 36, 17, 28, 39, 45, 21, 37, 46, 19, 32, 47, 56, 38, 49, 57, 60, 48, 59, 61, 70, 54, 62, 71, 58, 63, 72, 80, 64, 73, 81, 65, 74, 82, 67, 90, 83, 69, 75, 84, 91, 68, 79, 102, 76, 85
Offset: 1
Examples
The 5 digits 1, 0, 2, 3, 4 of a(10), a(11) and the 1st digit of a(12) are distinct; the 5 digits 0, 2, 3, 4, 1 of the 2nd digit of a(10), a(11) and a(12) are distinct; the 5 digits 2, 3, 4, 1, 5 of a(11), a(12) and the 1st digit of a(13) are distinct; the 5 digits 3, 4, 1, 5, 0 of the 2nd digit of a(11), a(12) and a(13) are distinct; the 5 digits 4, 1, 5, 0, 2 of a(12), a(13) and the 1st digit of a(14) are distinct, etc.
Links
- Carole Dubois, Table of n, a(n) for n = 1..5000