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.

A343766 Lexicographically earliest sequence of distinct integers such that a(0) = 0 and the balanced ternary expansions of two consecutive terms differ by a single digit, as far to the right as possible.

Table of values

n a(n)
0 0
1 -1
2 1
3 -2
4 -4
5 -3
6 3
7 2
8 4
9 -5
10 -7
11 -6
12 -12
13 -13
14 -11
15 -8
16 -10
17 -9
18 9
19 8
20 10
21 7
22 5
23 6
24 12
25 11
26 13
27 -14
28 -16
29 -15
30 -21
31 -22
32 -20
33 -17
34 -19
35 -18
36 -36
37 -37
38 -35
39 -38
40 -40
41 -39
42 -33
43 -34
44 -32
45 -23
46 -25
47 -24
48 -30
49 -31
50 -29
51 -26
52 -28
53 -27
54 27
55 26
56 28
57 25
58 23
59 24

List of values

[0, -1, 1, -2, -4, -3, 3, 2, 4, -5, -7, -6, -12, -13, -11, -8, -10, -9, 9, 8, 10, 7, 5, 6, 12, 11, 13, -14, -16, -15, -21, -22, -20, -17, -19, -18, -36, -37, -35, -38, -40, -39, -33, -34, -32, -23, -25, -24, -30, -31, -29, -26, -28, -27, 27, 26, 28, 25, 23, 24]