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.

A254212 Number of length n 1..(2+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 2
2 0
3 1
4 2
5 2
6 2
7 2
8 2
9 5
10 4
11 5
12 8
13 31
14 64
15 83
16 66
17 60
18 104
19 158
20 240
21 846
22 2990
23 6296
24 8440
25 10213
26 14034
27 16843
28 15538
29 20339
30 57766
31 202098
32 751354
33 2575608
34 6730882
35 12332861
36 15945860
37 15602393
38 13432584
39 12250132
40 12687426
41 23661609
42 144529800

List of values

[2, 0, 1, 2, 2, 2, 2, 2, 5, 4, 5, 8, 31, 64, 83, 66, 60, 104, 158, 240, 846, 2990, 6296, 8440, 10213, 14034, 16843, 15538, 20339, 57766, 202098, 751354, 2575608, 6730882, 12332861, 15945860, 15602393, 13432584, 12250132, 12687426, 23661609, 144529800]