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.

A231354 Least k such that n - triangular(k) is a square, or -1 if no such k exists.

Table of values

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

List of values

[0, 0, 1, 2, 0, 1, 3, 2, -1, 0, 1, 4, 2, -1, 4, 3, 0, 1, -1, 2, -1, 6, 3, -1, 5, 0, 1, -1, 2, 7, 6, 3, 7, -1, -1, 4, 0, 1, -1, 2, 5, -1, 3, -1, 7, 8, 4, -1, -1, 0, 1, 5, 2, 7, 9, 3, 10, 6, -1, 4, -1, 8, -1, -1, 0, 1, 11, 2, -1, -1, 3, 10, 8, -1, 4, 11, -1, 7, 12, 5, 10, 0]