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.

A268938 Number of length-n 0..2 arrays with no repeated value unequal to the previous repeated value plus one mod 2+1.

Table of values

n a(n)
1 3
2 9
3 24
4 63
5 159
6 396
7 969
8 2349
9 5640
10 13455
11 31911
12 75348
13 177225
14 415557
15 971808
16 2267631
17 5281359
18 12280860
19 28518153
20 66147165
21 153274488
22 354861711
23 820976631
24 1898144676
25 4386240393
26 10131006069
27 23390390544
28 53984735343

List of values

[3, 9, 24, 63, 159, 396, 969, 2349, 5640, 13455, 31911, 75348, 177225, 415557, 971808, 2267631, 5281359, 12280860, 28518153, 66147165, 153274488, 354861711, 820976631, 1898144676, 4386240393, 10131006069, 23390390544, 53984735343]