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.

A038586 Write n in ternary then sort the digits.

Table of values

n a(n)
0 0
1 1
2 2
3 1
4 11
5 12
6 2
7 12
8 22
9 1
10 11
11 12
12 11
13 111
14 112
15 12
16 112
17 122
18 2
19 12
20 22
21 12
22 112
23 122
24 22
25 122
26 222
27 1
28 11
29 12
30 11
31 111
32 112
33 12
34 112
35 122
36 11
37 111
38 112
39 111
40 1111
41 1112
42 112
43 1112
44 1122
45 12
46 112
47 122
48 112
49 1112
50 1122
51 122
52 1122
53 1222
54 2
55 12
56 22
57 12
58 112

List of values

[0, 1, 2, 1, 11, 12, 2, 12, 22, 1, 11, 12, 11, 111, 112, 12, 112, 122, 2, 12, 22, 12, 112, 122, 22, 122, 222, 1, 11, 12, 11, 111, 112, 12, 112, 122, 11, 111, 112, 111, 1111, 1112, 112, 1112, 1122, 12, 112, 122, 112, 1112, 1122, 122, 1122, 1222, 2, 12, 22, 12, 112]