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.

A059959 Distance of 2^n from its nearest prime neighbor and in case of a tie, choose the smaller.

Table of values

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

List of values

[-1, 0, 1, 1, -1, 1, 3, 1, -1, 3, 3, -5, 3, 1, 3, -3, -1, 1, -3, 1, 3, 9, 3, -9, 3, -35, 5, -29, -3, 3, -3, 1, 5, 9, -25, 31, 5, -9, -7, 7, -15, 21, 11, -29, -7, 55, -15, -5, -21, -69, 27, -21, -21, -5, 33, -3, 5, -9, 27, 55, -33, 1, 57, 25, -13, 49, 5, -3, 23, 19, -25, -11, -15, -29, 35, -33, 15, -11, -7, -23, -13, -17, -9, 55, -3, 19]