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.

A377371 a(n) = k*(a(n-1)+n), k=-1 for prime n, otherwise k=1 (a(1)=1).

Table of values

n a(n)
1 1
2 -3
3 0
4 4
5 -9
6 -3
7 -4
8 4
9 13
10 23
11 -34
12 -22
13 9
14 23
15 38
16 54
17 -71
18 -53
19 34
20 54
21 75
22 97
23 -120
24 -96
25 -71
26 -45
27 -18
28 10
29 -39
30 -9
31 -22
32 10
33 43
34 77
35 112
36 148
37 -185
38 -147
39 -108
40 -68
41 27
42 69
43 -112
44 -68
45 -23
46 23
47 -70
48 -22
49 27
50 77
51 128
52 180
53 -233
54 -179
55 -124
56 -68
57 -11

List of values

[1, -3, 0, 4, -9, -3, -4, 4, 13, 23, -34, -22, 9, 23, 38, 54, -71, -53, 34, 54, 75, 97, -120, -96, -71, -45, -18, 10, -39, -9, -22, 10, 43, 77, 112, 148, -185, -147, -108, -68, 27, 69, -112, -68, -23, 23, -70, -22, 27, 77, 128, 180, -233, -179, -124, -68, -11]