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.

A231353 Least k>=0 such that n - k^2 is a triangular number, or -1 if no such k exists.

Table of values

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

List of values

[0, 0, 1, 0, 1, 2, 0, 1, -1, 3, 0, 1, 3, -1, 2, 0, 1, 4, -1, 2, -1, 0, 1, -1, 3, 2, 4, -1, 0, 1, 3, 4, 2, -1, -1, 5, 0, 1, -1, 6, 2, -1, 6, -1, 4, 0, 1, -1, -1, 2, 7, 6, 4, 5, 3, 0, 1, 6, -1, 2, -1, 4, -1, -1, 3, 8, 0, 1, -1, -1, 2, 4, 6, -1, 8, 3, -1, 7, 0, 1, 5, 6, 2]