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.

A301296 Smallest distance from n to a prime power (as defined in A246547).

Table of values

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

List of values

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