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.

A002121 a(0) = 1, a(1) = 0, a(2) = -1; for n >= 3, a(n) = - a(n-2) + Sum_{ primes p with 3 <= p <= n} a(n-p).

Table of values

n a(n)
0 1
1 0
2 -1
3 1
4 1
5 -1
6 0
7 2
8 0
9 -2
10 2
11 4
12 -3
13 -2
14 8
15 1
16 -8
17 8
18 12
19 -11
20 -4
21 25
22 4
23 -24
24 21
25 40
26 -31
27 -16
28 82
29 14
30 -81
31 71
32 131
33 -99
34 -48
35 258
36 46
37 -249
38 223
39 422
40 -303
41 -162
42 825
43 169
44 -791
45 714
46 1360
47 -955
48 -503
49 2641
50 573
51 -2479
52 2263
53 4365
54 -2941
55 -1592
56 8436
57 1978
58 -7830
59 7212
60 14083
61 -9133
62 -4992
63 26970
64 6688
65 -24590

List of values

[1, 0, -1, 1, 1, -1, 0, 2, 0, -2, 2, 4, -3, -2, 8, 1, -8, 8, 12, -11, -4, 25, 4, -24, 21, 40, -31, -16, 82, 14, -81, 71, 131, -99, -48, 258, 46, -249, 223, 422, -303, -162, 825, 169, -791, 714, 1360, -955, -503, 2641, 573, -2479, 2263, 4365, -2941, -1592, 8436, 1978, -7830, 7212, 14083, -9133, -4992, 26970, 6688, -24590]