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.

A022831 a(n) = c(1)p(1) + ... + c(n)p(n), where c(i) = 1 if a(i-1) <= p(i) and c(i) = -1 if a(i-1) > p(i), for i = 1,...,n (p(i) = primes).

Table of values

n a(n)
1 2
2 5
3 10
4 3
5 14
6 1
7 18
8 37
9 14
10 43
11 12
12 49
13 8
14 51
15 4
16 57
17 116
18 55
19 122
20 51
21 124
22 45
23 128
24 39
25 136
26 35
27 138
28 31
29 140
30 27
31 154
32 23
33 160
34 21
35 170
36 19
37 176
38 13
39 180
40 7
41 186
42 5
43 196
44 3
45 200
46 1
47 212
48 435
49 208
50 437
51 204
52 443
53 202
54 453
55 196
56 459
57 190
58 461
59 184

List of values

[2, 5, 10, 3, 14, 1, 18, 37, 14, 43, 12, 49, 8, 51, 4, 57, 116, 55, 122, 51, 124, 45, 128, 39, 136, 35, 138, 31, 140, 27, 154, 23, 160, 21, 170, 19, 176, 13, 180, 7, 186, 5, 196, 3, 200, 1, 212, 435, 208, 437, 204, 443, 202, 453, 196, 459, 190, 461, 184]