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.

A348516 a(n) is the least positive integer k such that the base 3 representation of n^k contains equally many 1's and 2's, or 0 if no k with this property exists.

Table of values

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

List of values

[1, 0, 7, 0, 16, 1, 7, 1, 22, 0, 16, 1, 16, 6, 2, 1, 8, 6, 7, 1, 4, 1, 66, 9, 22, 3, 2, 0, 15, 1, 16, 2, 32, 1, 6, 9, 16, 2, 11, 6, 19, 13, 2, 13, 1, 1, 10, 22, 8, 2, 1, 6, 1, 159, 7, 1, 20, 1, 3, 6, 4, 2, 15, 1, 11, 3, 66, 6, 1, 9, 1, 6, 22, 2, 4, 3, 1, 2, 2, 2, 6]