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.

A374834 Start the sequence with a(1) = 3. From now on iterate: if |a(n)| is prime, subtract from a(n) the |a(n)|-th prime of the list of primes A000040 and if |a(n)| is nonprime, add to a(n) the |a(n)|-th nonprime of the list of nonprimes A018252.

Table of values

n a(n)
1 3
2 -2
3 -5
4 -16
5 9
6 24
7 59
8 -218
9 58
10 138
11 316
12 709
13 -4672
14 708
15 1563
16 3408
17 7364
18 15779
19 33601
20 -363046
21 33600
22 71181
23 150103
24 315315
25 660199
26 -9268542
27 660198
28 1378289
29 2870170
30 5963401
31 12365326
32 25593793
33 52887805
34 109127470
35 224867446
36 462788654
37 951362304
38 1953684017
39 -43964452250
40 1953684016

List of values

[3, -2, -5, -16, 9, 24, 59, -218, 58, 138, 316, 709, -4672, 708, 1563, 3408, 7364, 15779, 33601, -363046, 33600, 71181, 150103, 315315, 660199, -9268542, 660198, 1378289, 2870170, 5963401, 12365326, 25593793, 52887805, 109127470, 224867446, 462788654, 951362304, 1953684017, -43964452250, 1953684016]