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.

A381150 a(0) = 1, a(1) = 2, a(2) = 3; thereafter, a(n) = a(n-1) + (sum of prior prime terms or whose negatives are prime) - (sum of prior composite terms or whose negatives are composite).

Table of values

n a(n)
0 1
1 2
2 3
3 8
4 5
5 7
6 16
7 9
8 -7
9 -30
10 -23
11 -39
12 -16
13 23
14 85
15 62
16 -23
17 -131
18 -370
19 -239
20 -347
21 -802
22 -455
23 347
24 1496
25 1149
26 -347
27 -2190
28 -1843
29 347
30 2884
31 2537
32 -347
33 -3578
34 -3231
35 347
36 4272
37 3925
38 -347
39 -4966
40 -4619
41 347
42 5660
43 5313
44 -347
45 -6354
46 -6007
47 -11667
48 -5660

List of values

[1, 2, 3, 8, 5, 7, 16, 9, -7, -30, -23, -39, -16, 23, 85, 62, -23, -131, -370, -239, -347, -802, -455, 347, 1496, 1149, -347, -2190, -1843, 347, 2884, 2537, -347, -3578, -3231, 347, 4272, 3925, -347, -4966, -4619, 347, 5660, 5313, -347, -6354, -6007, -11667, -5660]