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.

A379719 a(0) = 0, and for any n > 0, a(n) is the least integer (in absolute value) not yet in the sequence such that the absolute difference of a(n-1) and a(n) is a power of 2; in case of a tie, preference is given to the positive value.

Table of values

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

List of values

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