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.

A357928 a(n) is the smallest c for which (s+c)^2-n is a square, where s = floor(sqrt(n)), or -1 if no such c exists.

Table of values

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

List of values

[0, 0, -1, 1, 0, 1, -1, 2, 1, 0, -1, 3, 1, 4, -1, 1, 0, 5, -1, 6, 2, 1, -1, 8, 1, 0, -1, 1, 3, 10, -1, 11, 1, 2, -1, 1, 0, 13, -1, 2, 1, 15, -1, 16, 6, 1, -1, 18, 1, 0, -1, 3, 7, 20, -1, 1, 2, 4, -1, 23, 1, 24, -1, 1, 0, 1, -1, 26, 10, 5, -1, 28, 1, 29, -1, 2, 12, 1, -1, 32]