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.

A327898 a(n) is the nearest integer to the reciprocal of the difference between the square root of n and the nearest integer to this square root unless n is a perfect square, in which case a(n) equals 0.

Table of values

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

List of values

[0, 2, -4, 0, 4, 2, -3, -6, 0, 6, 3, 2, -3, -4, -8, 0, 8, 4, 3, 2, -2, -3, -5, -10, 0, 10, 5, 3, 3, 2, -2, -3, -4, -6, -12, 0, 12, 6, 4, 3, 2, 2, -2, -3, -3, -5, -7, -14, 0, 14, 7, 5, 4, 3, 2, 2, -2, -3, -3, -4, -5, -8, -16, 0, 16, 8, 5, 4, 3, 3, 2, 2, -2, -3]