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.

A330405 a(1) = 0; thereafter a(n) = (a(n-1)^2+1) mod n.

Table of values

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

List of values

[0, 1, 2, 1, 2, 5, 5, 2, 5, 6, 4, 5, 0, 1, 2, 5, 9, 10, 6, 17, 17, 4, 17, 2, 5, 0, 1, 2, 5, 26, 26, 5, 26, 31, 17, 2, 5, 26, 14, 37, 17, 38, 26, 17, 20, 33, 9, 34, 30, 1, 2, 5, 26, 29, 17, 10, 44, 23, 58, 5, 26, 57, 37, 26, 27, 4, 17, 18, 49, 22, 59, 26, 20, 31, 62, 45, 24]