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.

A022836 a(n) = c(1)*p(0) + ... + c(n)*p(n-1), where c(i) = 1 if a(i-1) <= p(i-1) and c(i) = -1 if a(i-1) > p(i-1) (with p(0) = 1 and p(i) a prime for i >= 1).

Table of values

n a(n)
0 1
1 3
2 6
3 1
4 8
5 19
6 6
7 23
8 4
9 27
10 56
11 25
12 62
13 21
14 64
15 17
16 70
17 11
18 72
19 5
20 76
21 3
22 82
23 165
24 76
25 173
26 72
27 175
28 68
29 177
30 64
31 191
32 60
33 197
34 58
35 207
36 56
37 213
38 50
39 217
40 44
41 223
42 42
43 233
44 40
45 237
46 38
47 249
48 26
49 253
50 24
51 257
52 18
53 259
54 8
55 265
56 2
57 271
58 542
59 265
60 546
61 263
62 556

List of values

[1, 3, 6, 1, 8, 19, 6, 23, 4, 27, 56, 25, 62, 21, 64, 17, 70, 11, 72, 5, 76, 3, 82, 165, 76, 173, 72, 175, 68, 177, 64, 191, 60, 197, 58, 207, 56, 213, 50, 217, 44, 223, 42, 233, 40, 237, 38, 249, 26, 253, 24, 257, 18, 259, 8, 265, 2, 271, 542, 265, 546, 263, 556]