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.

A274601 a(n) = 2*3^(s-1) - n, where s is the number of trits of n in balanced ternary form.

Table of values

n a(n)
1 1
2 4
3 3
4 2
5 13
6 12
7 11
8 10
9 9
10 8
11 7
12 6
13 5
14 40
15 39
16 38
17 37
18 36
19 35
20 34
21 33
22 32
23 31
24 30
25 29
26 28
27 27
28 26
29 25
30 24
31 23
32 22
33 21
34 20
35 19
36 18
37 17
38 16
39 15
40 14
41 121
42 120
43 119
44 118
45 117
46 116
47 115
48 114
49 113
50 112
51 111
52 110
53 109
54 108
55 107
56 106
57 105
58 104
59 103
60 102
61 101
62 100

List of values

[1, 4, 3, 2, 13, 12, 11, 10, 9, 8, 7, 6, 5, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 121, 120, 119, 118, 117, 116, 115, 114, 113, 112, 111, 110, 109, 108, 107, 106, 105, 104, 103, 102, 101, 100]