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.

A248960 Number of ternary words of length n in which all digits 0..2 occur in every 5 consecutive digits.

Table of values

n a(n)
0 1
1 3
2 9
3 27
4 81
5 150
6 366
7 870
8 2022
9 4686
10 10974
11 25614
12 59742
13 139398
14 325350
15 759198
16 1771590
17 4134126
18 9647262
19 22512342
20 52533750
21 122590422
22 286071414
23 667563054
24 1557794622
25 3635198310
26 8482932318
27 19795382454
28 46193598486
29 107795266974
30 251546100558
31 586996465758
32 1369788083022

List of values

[1, 3, 9, 27, 81, 150, 366, 870, 2022, 4686, 10974, 25614, 59742, 139398, 325350, 759198, 1771590, 4134126, 9647262, 22512342, 52533750, 122590422, 286071414, 667563054, 1557794622, 3635198310, 8482932318, 19795382454, 46193598486, 107795266974, 251546100558, 586996465758, 1369788083022]