login
A340256
Lexicographically earliest sequence of distinct nonnegative terms such that for any n >= 0, a(n+1) is obtained by altering the leftmost digit (which is not a leading zero) in the primorial base representation of a(n) or if this is not possible by altering the rightmost leading zero in the primorial base representation of a(n).
2
0, 1, 3, 5, 4, 2, 8, 14, 20, 26, 24, 6, 12, 18, 22, 10, 16, 28, 29, 11, 17, 23, 19, 7, 13, 25, 27, 9, 15, 21, 51, 81, 111, 141, 171, 201, 183, 33, 63, 93, 123, 153, 159, 39, 69, 99, 129, 189, 195, 45, 75, 105, 135, 165, 177, 57, 87, 117, 147, 207, 205, 55, 85
OFFSET
0,3
COMMENTS
This sequence appears to be a permutation of the nonnegative integers.
EXAMPLE
The first terms, alongside their representation in primorial base, are:
n a(n) prim(a(n))
---- ---- ----------
0 0 0
1 1 1
2 3 11
3 5 21
4 4 20
5 2 10
6 8 110
7 14 210
8 20 310
9 26 410
10 24 400
11 6 100
12 12 200
13 18 300
14 22 320
15 10 120
16 16 220
PROG
(PARI) See Links section.
CROSSREFS
See A340250 for similar sequences.
Sequence in context: A196771 A266121 A340255 * A354247 A349943 A243296
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jan 02 2021
STATUS
approved