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.

A369862 a(n) is the smallest error in trying to solve n^2 = x^2 + y^2: given n >= 2, find positive integers x <= y < n such that |n^2 - x^2 - y^2| is minimal and let a(n) = n^2 - x^2 - y^2. In case of a tie, choose the value with the smallest y.

Table of values

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

List of values

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