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.

A112867 Greater of two ternary (base 3) numbers (each using only 0's and 1's, the latter's positions never coinciding) such that the decimal representation of their difference is n.

Table of values

n a(n)
0 0
1 1
2 10
3 10
4 11
5 100
6 100
7 101
8 100
9 100
10 101
11 110
12 110
13 111
14 1000
15 1000
16 1001
17 1000
18 1000
19 1001
20 1010
21 1010
22 1011
23 1000
24 1000
25 1001
26 1000
27 1000
28 1001
29 1010
30 1010
31 1011
32 1100
33 1100
34 1101
35 1100
36 1100
37 1101
38 1110
39 1110
40 1111
41 10000
42 10000
43 10001
44 10000

List of values

[0, 1, 10, 10, 11, 100, 100, 101, 100, 100, 101, 110, 110, 111, 1000, 1000, 1001, 1000, 1000, 1001, 1010, 1010, 1011, 1000, 1000, 1001, 1000, 1000, 1001, 1010, 1010, 1011, 1100, 1100, 1101, 1100, 1100, 1101, 1110, 1110, 1111, 10000, 10000, 10001, 10000]