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.

A248959 Number of ternary words of length n in which all digits 0..2 occur in every subword of 4 consecutive digits.

Table of values

n a(n)
0 1
1 3
2 9
3 27
4 36
5 72
6 132
7 240
8 444
9 816
10 1500
11 2760
12 5076
13 9336
14 17172
15 31584
16 58092
17 106848
18 196524
19 361464
20 664836
21 1222824
22 2249124
23 4136784
24 7608732
25 13994640
26 25740156
27 47343528
28 87078324
29 160162008
30 294583860
31 541824192
32 996570060
33 1832978112

List of values

[1, 3, 9, 27, 36, 72, 132, 240, 444, 816, 1500, 2760, 5076, 9336, 17172, 31584, 58092, 106848, 196524, 361464, 664836, 1222824, 2249124, 4136784, 7608732, 13994640, 25740156, 47343528, 87078324, 160162008, 294583860, 541824192, 996570060, 1832978112]