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.

A343312 Lexicographically earliest sequence of distinct nonnegative integers such that for any n >= 0, the digits "-1" in the balanced ternary representation of a(n) correspond to digits "+1" in that of a(n+1).

Table of values

n a(n)
0 0
1 1
2 2
3 4
4 3
5 5
6 13
7 6
8 11
9 7
10 12
11 8
12 10
13 9
14 14
15 40
16 15
17 38
18 16
19 39
20 17
21 34
22 20
23 37
24 18
25 32
26 22
27 33
28 21
29 35
30 19
31 36
32 23
33 31
34 24
35 29
36 25
37 30
38 26
39 28
40 27
41 41
42 121
43 42
44 119
45 43
46 120
47 44
48 115
49 47
50 118
51 45
52 113
53 49
54 114
55 48
56 116
57 46
58 117
59 50
60 103
61 59
62 112
63 51
64 101

List of values

[0, 1, 2, 4, 3, 5, 13, 6, 11, 7, 12, 8, 10, 9, 14, 40, 15, 38, 16, 39, 17, 34, 20, 37, 18, 32, 22, 33, 21, 35, 19, 36, 23, 31, 24, 29, 25, 30, 26, 28, 27, 41, 121, 42, 119, 43, 120, 44, 115, 47, 118, 45, 113, 49, 114, 48, 116, 46, 117, 50, 103, 59, 112, 51, 101]