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.

A355642 Lexicographically earliest sequence of distinct nonnegative integers such that for any n >= 0, the balanced ternary expansion of n * a(n) contains as many negative trits as positive trits.

Table of values

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

List of values

[0, 2, 1, 6, 4, 12, 3, 8, 7, 16, 13, 14, 5, 10, 11, 26, 9, 24, 23, 28, 20, 22, 21, 18, 17, 32, 15, 46, 19, 30, 29, 40, 25, 42, 34, 48, 36, 38, 37, 44, 31, 52, 33, 54, 39, 58, 27, 74, 35, 56, 55, 68, 41, 70, 43, 50, 49, 64, 45, 66, 60, 72, 63, 62, 57, 76, 59, 80]