cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A302173 Lexicographically first sequence of distinct terms such that any set of three successive digits can be reordered as {d, d+1, d+2}, d being the smallest of the three digits.

Table of values

n a(n)
1 0
2 1
3 2
4 3
5 4
6 5
7 6
8 7
9 8
10 9
11 78
12 67
13 56
14 45
15 34
16 23
17 12
18 31
19 20
20 120
21 123
22 42
23 312
24 342
25 345
26 64
27 53
28 423
29 453
30 456
31 75
32 645
33 675
34 678
35 97
36 86
37 756
38 786
39 789
40 7867
41 89
42 7897
43 867
44 564
45 534
46 231
47 201
48 234
49 567
50 897
51 8675
52 6453
53 4231
54 2012
55 3120
56 1201
57 2312
58 3123
59 1231
60 2342
61 3423
62 1234
63 2345

List of values

[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 78, 67, 56, 45, 34, 23, 12, 31, 20, 120, 123, 42, 312, 342, 345, 64, 53, 423, 453, 456, 75, 645, 675, 678, 97, 86, 756, 786, 789, 7867, 89, 7897, 867, 564, 534, 231, 201, 234, 567, 897, 8675, 6453, 4231, 2012, 3120, 1201, 2312, 3123, 1231, 2342, 3423, 1234, 2345]