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.

A308831 Start with generation 0, which is the empty sequence. For generation N>=1, extend the existing sequence into a non-cyclic ternary de Bruijn sequence of order N. If more than one extension is possible, choose the lexicographically earliest.

Table of values

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

List of values

[0, 1, 2, 0, 0, 2, 2, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 2, 1, 0, 2, 0, 2, 1, 2, 2, 2, 0, 1, 0, 0, 1, 1, 0, 1, 0, 2, 1, 0, 0, 2, 0, 0, 0, 0, 2, 1, 1, 1, 1, 0, 2, 2, 0, 0, 1, 2, 1, 1, 2, 0, 1, 1, 2, 2, 0, 2, 0, 1, 2, 2, 1, 2, 1, 2, 0, 2, 2, 2, 2, 1, 0, 1, 2]