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.

A117966 Balanced ternary enumeration (based on balanced ternary representation) of integers; write n in ternary and then replace 2's with (-1)'s.

Table of values

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

List of values

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