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.

A346524 Write n in ternary, replace each 2 with -1, interpret each "-" as a subtraction operator, and evaluate the resulting expression in ternary.

Table of values

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

List of values

[0, 1, -1, 3, 4, 0, -3, -4, -2, 9, 10, 2, 12, 13, 3, -2, -3, -1, -9, -10, -4, -12, -13, -5, -4, -5, -3, 27, 28, 8, 30, 31, 9, 0, -1, 1, 36, 37, 11, 39, 40, 12, 1, 0, 2, -8, -9, -3, -11, -12, -4, -3, -4, -2, -27, -28, -10, -30, -31, -11, -6, -7, -5, -36, -37]