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.

A072998 To get a(n), write n in balanced ternary notation (using only digits -1, 0, 1, -1), then change -1's to 0's, 0's to 1's, and 1's to 2's.

Table of values

n a(n)
0 1
1 2
2 20
3 21
4 22
5 200
6 201
7 202
8 210
9 211
10 212
11 220
12 221
13 222
14 2000
15 2001
16 2002
17 2010
18 2011
19 2012
20 2020
21 2021
22 2022
23 2100
24 2101
25 2102
26 2110
27 2111
28 2112
29 2120
30 2121
31 2122
32 2200
33 2201
34 2202
35 2210
36 2211
37 2212
38 2220
39 2221
40 2222
41 20000
42 20001
43 20002
44 20010

List of values

[1, 2, 20, 21, 22, 200, 201, 202, 210, 211, 212, 220, 221, 222, 2000, 2001, 2002, 2010, 2011, 2012, 2020, 2021, 2022, 2100, 2101, 2102, 2110, 2111, 2112, 2120, 2121, 2122, 2200, 2201, 2202, 2210, 2211, 2212, 2220, 2221, 2222, 20000, 20001, 20002, 20010]