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.

A322522 a(n) is the minimal absolute difference between n and each of the powers of the previous terms; a(1) = 1.

Table of values

n a(n)
1 1
2 1
3 2
4 0
5 1
6 2
7 1
8 0
9 1
10 2
11 3
12 3
13 3
14 2
15 1
16 0
17 1
18 2
19 3
20 4
21 5
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 3
40 4
41 5
42 6
43 7
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

List of values

[1, 1, 2, 0, 1, 2, 1, 0, 1, 2, 3, 3, 3, 2, 1, 0, 1, 2, 3, 4, 5, 3, 2, 1, 0, 1, 0, 1, 2, 2, 1, 0, 1, 2, 3, 4, 5, 6, 3, 4, 5, 6, 7, 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]