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.

A254221 Number of length 4 1..(n+2) arrays with no leading or trailing partial sum equal to a prime and no consecutive values equal.

Table of values

n a(n)
1 0
2 2
3 4
4 22
5 24
6 96
7 168
8 388
9 490
10 1024
11 1168
12 2138
13 3000
14 4554
15 5084
16 7872
17 8570
18 12358
19 15532
20 20538
21 22120
22 30338
23 35972
24 45928
25 54068
26 66830
27 71348
28 90658
29 95374
30 115162
31 132074
32 156726
33 177542
34 212556
35 221796
36 258292
37 289706
38 334554
39 349466

List of values

[0, 2, 4, 22, 24, 96, 168, 388, 490, 1024, 1168, 2138, 3000, 4554, 5084, 7872, 8570, 12358, 15532, 20538, 22120, 30338, 35972, 45928, 54068, 66830, 71348, 90658, 95374, 115162, 132074, 156726, 177542, 212556, 221796, 258292, 289706, 334554, 349466]