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.

A361945 If the ternary expansion of n starts with the digit 1, then replace 2's by 0's and vice versa; if the ternary expansion of n starts with the digit 2, then replace 1's by 0's and vice versa; a(0) = 0.

Table of values

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

List of values

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