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.

A057594 Triangle T(n,k) giving floor( (2*p mod n-1)/2), where p = period of sequence k^i (i=0,1,2,...) mod n (n >= 2, 2<=k<=n).

Table of values

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

List of values

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