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.

A355697 a(0) = 0, a(1) = 1; for n > 1, a(n) = a(n-1) + g - 1 if a(n-1) is prime, otherwise a(n) = a(n-1) + g + 1, where g = a(n-1) - a(n-2).

Table of values

n a(n)
0 0
1 1
2 3
3 4
4 6
5 9
6 13
7 16
8 20
9 25
10 31
11 36
12 42
13 49
14 57
15 66
16 76
17 87
18 99
19 112
20 126
21 141
22 157
23 172
24 188
25 205
26 223
27 240
28 258
29 277
30 295
31 314
32 334
33 355
34 377
35 400
36 424
37 449
38 473
39 498
40 524
41 551
42 579
43 608
44 638
45 669
46 701
47 732
48 764
49 797
50 829
51 860
52 892
53 925
54 959
55 994
56 1030
57 1067
58 1105
59 1144
60 1184

List of values

[0, 1, 3, 4, 6, 9, 13, 16, 20, 25, 31, 36, 42, 49, 57, 66, 76, 87, 99, 112, 126, 141, 157, 172, 188, 205, 223, 240, 258, 277, 295, 314, 334, 355, 377, 400, 424, 449, 473, 498, 524, 551, 579, 608, 638, 669, 701, 732, 764, 797, 829, 860, 892, 925, 959, 994, 1030, 1067, 1105, 1144, 1184]