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.

A005812 Weight of balanced ternary representation of n.

Table of values

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

List of values

[0, 1, 2, 1, 2, 3, 2, 3, 2, 1, 2, 3, 2, 3, 4, 3, 4, 3, 2, 3, 4, 3, 4, 3, 2, 3, 2, 1, 2, 3, 2, 3, 4, 3, 4, 3, 2, 3, 4, 3, 4, 5, 4, 5, 4, 3, 4, 5, 4, 5, 4, 3, 4, 3, 2, 3, 4, 3, 4, 5, 4, 5, 4, 3, 4, 5, 4, 5, 4, 3, 4, 3, 2, 3, 4, 3, 4, 3, 2, 3, 2, 1, 2, 3, 2, 3, 4, 3, 4, 3, 2, 3, 4, 3, 4, 5, 4, 5, 4, 3, 4, 5, 4, 5, 4, 3]