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.

A357616 Lexicographically earliest sequence of distinct nonnegative integers such that for any n >= 0, the number of 1's in the ternary expansion of n equals the number of 2's in the ternary expansion of a(n) and vice versa.

Table of values

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

List of values

[0, 2, 1, 6, 8, 5, 3, 7, 4, 18, 20, 11, 24, 26, 17, 15, 23, 14, 9, 19, 10, 21, 25, 16, 12, 22, 13, 54, 56, 29, 60, 62, 35, 33, 47, 32, 72, 74, 51, 78, 80, 53, 59, 71, 44, 45, 61, 34, 65, 77, 50, 38, 52, 41, 27, 55, 28, 57, 69, 42, 30, 46, 31, 63, 73, 48, 75, 79]