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.

A351830 Distance from the n-th square pyramidal number (sum of the first n positive squares) to the nearest square.

Table of values

n a(n)
0 0
1 0
2 1
3 2
4 5
5 6
6 9
7 4
8 8
9 4
10 15
11 22
12 25
13 22
14 9
15 15
16 25
17 21
18 7
19 30
20 46
21 53
22 49
23 32
24 0
25 49
26 40
27 41
28 30
29 91
30 46
31 12
32 9
33 15
34 4
35 26
36 77
37 114
38 25
39 91
40 61
41 105
42 15
43 122
44 129
45 66
46 22
47 1
48 1
49 24
50 76
51 157
52 170
53 37
54 131
55 141
56 91
57 139
58 165
59 15
60 174
61 247
62 150
63 80
64 39
65 29

List of values

[0, 0, 1, 2, 5, 6, 9, 4, 8, 4, 15, 22, 25, 22, 9, 15, 25, 21, 7, 30, 46, 53, 49, 32, 0, 49, 40, 41, 30, 91, 46, 12, 9, 15, 4, 26, 77, 114, 25, 91, 61, 105, 15, 122, 129, 66, 22, 1, 1, 24, 76, 157, 170, 37, 131, 141, 91, 139, 165, 15, 174, 247, 150, 80, 39, 29]