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.

A164884 a(n) = image of n under the base-2 Kaprekar map n -> (n with digits sorted into descending order) - (n with digits sorted into ascending order).

Table of values

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

List of values

[0, 0, 1, 0, 3, 3, 3, 0, 7, 9, 9, 7, 9, 7, 7, 0, 15, 21, 21, 21, 21, 21, 21, 15, 21, 21, 21, 15, 21, 15, 15, 0, 31, 45, 45, 49, 45, 49, 49, 45, 45, 49, 49, 45, 49, 45, 45, 31, 45, 49, 49, 45, 49, 45, 45, 31, 49, 45, 45, 31, 45, 31, 31, 0, 63, 93, 93, 105, 93, 105, 105, 105, 93, 105, 105]