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.

A302558 For any n > 0 and m > 1, let d_m(n) be the distance from n to the nearest power of a number <= m (i.e., the distance to the nearest number of the form x^k with x <= m and k >= 0); a(n) = Sum_{i > 1} d_i(n).

Table of values

n a(n)
1 0
2 0
3 1
4 0
5 3
6 7
7 5
8 0
9 1
10 9
11 18
12 28
13 30
14 23
15 13
16 0
17 15
18 31
19 48
20 66
21 73
22 64
23 50
24 33
25 11
26 29
27 5
28 29
29 54
30 55
31 29
32 0
33 31
34 63
35 41
36 16
37 51
38 87
39 124
40 162
41 201
42 241
43 252
44 231
45 207
46 180
47 150
48 117
49 73
50 113
51 152
52 192
53 233
54 275
55 318
56 362
57 364
58 321
59 275
60 226
61 174
62 119
63 61

List of values

[0, 0, 1, 0, 3, 7, 5, 0, 1, 9, 18, 28, 30, 23, 13, 0, 15, 31, 48, 66, 73, 64, 50, 33, 11, 29, 5, 29, 54, 55, 29, 0, 31, 63, 41, 16, 51, 87, 124, 162, 201, 241, 252, 231, 207, 180, 150, 117, 73, 113, 152, 192, 233, 275, 318, 362, 364, 321, 275, 226, 174, 119, 61]