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.

A164831 a(n) is the number of values taken by cos(2*Pi/k) mod n for all k in 1..n-1.

Table of values

n a(n)
1 0
2 1
3 3
4 4
5 7
6 12
7 12
8 19
9 22
10 29
11 25
12 40
13 29
14 48
15 59
16 85
17 42
18 83
19 53
20 93
21 99
22 96
23 64
24 175
25 144
26 113
27 159
28 161
29 97
30 235
31 100
32 297
33 187
34 165
35 231
36 274
37 111
38 200
39 224
40 386
41 156
42 398
43 149
44 303
45 425
46 248
47 152
48 733
49 450
50 513
51 332
52 359
53 181
54 572
55 448
56 648
57 384
58 361
59 221
60 786

List of values

[0, 1, 3, 4, 7, 12, 12, 19, 22, 29, 25, 40, 29, 48, 59, 85, 42, 83, 53, 93, 99, 96, 64, 175, 144, 113, 159, 161, 97, 235, 100, 297, 187, 165, 231, 274, 111, 200, 224, 386, 156, 398, 149, 303, 425, 248, 152, 733, 450, 513, 332, 359, 181, 572, 448, 648, 384, 361, 221, 786]