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.

A340867 a(n) = (prime(n) - a(n-1)) mod 4; a(0)=0.

Table of values

n a(n)
0 0
1 2
2 1
3 0
4 3
5 0
6 1
7 0
8 3
9 0
10 1
11 2
12 3
13 2
14 1
15 2
16 3
17 0
18 1
19 2
20 1
21 0
22 3
23 0
24 1
25 0
26 1
27 2
28 1
29 0
30 1
31 2
32 1
33 0
34 3
35 2
36 1
37 0
38 3
39 0
40 1
41 2
42 3
43 0
44 1
45 0
46 3
47 0
48 3
49 0
50 1
51 0
52 3
53 2
54 1
55 0
56 3
57 2
58 1
59 0
60 1
61 2
62 3
63 0
64 3
65 2
66 3
67 0
68 1
69 2
70 3
71 2
72 1
73 2
74 3
75 0
76 3
77 2
78 3
79 2
80 3
81 0
82 1
83 2
84 3
85 0

List of values

[0, 2, 1, 0, 3, 0, 1, 0, 3, 0, 1, 2, 3, 2, 1, 2, 3, 0, 1, 2, 1, 0, 3, 0, 1, 0, 1, 2, 1, 0, 1, 2, 1, 0, 3, 2, 1, 0, 3, 0, 1, 2, 3, 0, 1, 0, 3, 0, 3, 0, 1, 0, 3, 2, 1, 0, 3, 2, 1, 0, 1, 2, 3, 0, 3, 2, 3, 0, 1, 2, 3, 2, 1, 2, 3, 0, 3, 2, 3, 2, 3, 0, 1, 2, 3, 0]