A339611 Pick any digit d; there are exactly d digits between d and the closest duplicate of d (either before or after) in the sequence.
1, 2, 13, 20, 0, 3, 4, 5, 6, 7, 8, 41, 51, 61, 71, 81, 9, 12, 14, 21, 31, 49, 32, 54, 23, 62, 53, 17, 16, 15, 18, 37, 25, 324, 68, 27, 42, 36, 24, 371, 91, 28, 121, 34, 59, 38, 46, 52, 73, 29, 63, 45, 72, 84, 251, 213, 48, 93, 64, 131, 57, 69
Offset: 1
Examples
There is 1 digit between the first 1 [of a(1) = 1] and its closest duplicate [the 1 of a(3) = 13]; There are 2 digits between the first 2 [of a(2) = 2] and its closest duplicate [the 2 of a(4) = 20]; There are 3 digits between the first 3 [of a(3) = 13] and its closest duplicate [the 3 of a(6) = 3]; There is no digit between the first 0 [of a(4) = 20] and its closest duplicate [the 0 of a(5) = 0]; There is no contradiction when picking the 1 of a(13) = 51 as there is 1 digit between it and the 1 of a(12) = 41 and 1 digit between it and the 1 of a(14) = 61; etc.
Links
- Kevin Ryde, Table of n, a(n) for n = 1..10064
- Kevin Ryde, Perl program generating terms of the sequence
Crossrefs
Cf. A339803 (strings).
Comments