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.

A373712 a(n) is the least m >= 0 with the same number of ternary digits as n such that for some permutation p of 0..2, applying p to the ternary digits of n yields the ternary digits of m.

Table of values

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

List of values

[0, 1, 1, 3, 4, 3, 3, 3, 4, 9, 10, 11, 12, 13, 12, 11, 10, 9, 9, 11, 10, 11, 9, 10, 12, 12, 13, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 27, 29, 28, 33, 35, 34, 30, 32, 31, 35, 33, 34, 29, 27]