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.

A059774 Consider the line segment in R^n from the origin to the point P=(1,2,3,...,n); let d = squared distance to this line from the closest point of Z^n (excluding the endpoints). Sequence gives d times P.P.

Table of values

n a(n)
2 1
3 3
4 9
5 21
6 40
7 75
8 120
9 189
10 285
11 385
12 506
13 650
14 819
15 1015
16 1240
17 1496
18 1785
19 2109
20 2470
21 2870
22 3311
23 3795
24 4324
25 4900
26 5525
27 6201
28 6930
29 7714
30 8555
31 9455
32 10416
33 11440
34 12529
35 13685
36 14910
37 16206
38 17575
39 19019
40 20540
41 22140
42 23821
43 25585
44 27434
45 29370

List of values

[1, 3, 9, 21, 40, 75, 120, 189, 285, 385, 506, 650, 819, 1015, 1240, 1496, 1785, 2109, 2470, 2870, 3311, 3795, 4324, 4900, 5525, 6201, 6930, 7714, 8555, 9455, 10416, 11440, 12529, 13685, 14910, 16206, 17575, 19019, 20540, 22140, 23821, 25585, 27434, 29370]