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.

A371268 If the ternary expansion of n starts with a 1, replace 1's by 2's, 2's by 0's, 0's by 1's, if it starts with a 2, replace 2's by 1's, 1's by 0's, 0's by 2's.

Table of values

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

List of values

[0, 2, 1, 7, 8, 6, 5, 3, 4, 22, 23, 21, 25, 26, 24, 19, 20, 18, 17, 15, 16, 11, 9, 10, 14, 12, 13, 67, 68, 66, 70, 71, 69, 64, 65, 63, 76, 77, 75, 79, 80, 78, 73, 74, 72, 58, 59, 57, 61, 62, 60, 55, 56, 54, 53, 51, 52, 47, 45, 46, 50, 48, 49, 35, 33, 34, 29, 27]