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.

A381668 Ternary modular Gray code for n written in base 3.

Table of values

n a(n)
0 0
1 1
2 2
3 12
4 10
5 11
6 21
7 22
8 20
9 120
10 121
11 122
12 102
13 100
14 101
15 111
16 112
17 110
18 210
19 211
20 212
21 222
22 220
23 221
24 201
25 202
26 200
27 1200
28 1201
29 1202
30 1212
31 1210
32 1211
33 1221
34 1222
35 1220
36 1020
37 1021
38 1022
39 1002
40 1000
41 1001
42 1011
43 1012
44 1010
45 1110
46 1111
47 1112
48 1122
49 1120
50 1121

List of values

[0, 1, 2, 12, 10, 11, 21, 22, 20, 120, 121, 122, 102, 100, 101, 111, 112, 110, 210, 211, 212, 222, 220, 221, 201, 202, 200, 1200, 1201, 1202, 1212, 1210, 1211, 1221, 1222, 1220, 1020, 1021, 1022, 1002, 1000, 1001, 1011, 1012, 1010, 1110, 1111, 1112, 1122, 1120, 1121]