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.

A330166 Length of the longest run of 0's in the ternary expression of n.

Table of values

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

List of values

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