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.

A371635 For any number k >= 0, let T_k be the triangle with values in {-1, 0, +1} whose base corresponds to the balanced ternary expansion of k (without leading zeros) and other values, say t above u and v, satisfy t+u+v = 0 mod 3; the balanced ternary expansion of a(n) corresponds to the left border of T_n (the most significant digit being at the bottom left corner).

Table of values

n a(n)
0 0
1 1
2 3
3 2
4 4
5 10
6 8
7 9
8 6
9 7
10 5
11 11
12 12
13 13
14 30
15 29
16 31
17 24
18 23
19 25
20 27
21 26
22 28
23 18
24 17
25 19
26 21
27 20
28 22
29 15
30 14
31 16
32 33
33 32
34 34
35 36
36 35
37 37
38 39
39 38
40 40
41 91
42 89
43 90
44 86
45 87
46 88
47 93
48 94
49 92
50 73
51 71
52 72
53 68
54 69
55 70
56 75
57 76
58 74
59 82
60 80
61 81
62 77
63 78
64 79
65 84
66 85
67 83

List of values

[0, 1, 3, 2, 4, 10, 8, 9, 6, 7, 5, 11, 12, 13, 30, 29, 31, 24, 23, 25, 27, 26, 28, 18, 17, 19, 21, 20, 22, 15, 14, 16, 33, 32, 34, 36, 35, 37, 39, 38, 40, 91, 89, 90, 86, 87, 88, 93, 94, 92, 73, 71, 72, 68, 69, 70, 75, 76, 74, 82, 80, 81, 77, 78, 79, 84, 85, 83]