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.

A379057 a(0) = 0; thereafter a(n) is the least integer (in absolute value) not yet in the sequence such that the absolute difference between a(n-1) and a(n) is a square > 1; in case of a tie, preference is given to the positive value.

Table of values

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

List of values

[0, 4, -5, -1, 3, -6, -2, 2, 6, -3, 1, 5, -4, -8, 8, 12, -13, -9, 7, 11, -14, -10, 15, 19, 10, 14, -11, -7, 9, 13, -12, -16, 20, 16, -20, -24, -15, -19, 17, 21, 25, 29, 33, 24, -25, -21, -17, -26, -22, -18, 18, 22, 26, -23, -27, -31, -35, -39, -30, 34, 30, -34]