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.

A081134 Distance to nearest power of 3.

Table of values

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

List of values

[0, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 7]