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.

A165110 a(n) = image of n under the base-9 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 0
3 0
4 0
5 0
6 0
7 0
8 0
9 8
10 0
11 8
12 16
13 24
14 32
15 40
16 48
17 56
18 16
19 8
20 0
21 8
22 16
23 24
24 32
25 40
26 48
27 24
28 16
29 8
30 0
31 8
32 16
33 24
34 32
35 40
36 32
37 24
38 16
39 8
40 0
41 8
42 16
43 24
44 32
45 40
46 32
47 24
48 16
49 8
50 0
51 8
52 16
53 24
54 48
55 40
56 32
57 24
58 16
59 8
60 0
61 8
62 16
63 56
64 48
65 40
66 32
67 24
68 16
69 8
70 0
71 8
72 64
73 56
74 48
75 40
76 32
77 24
78 16
79 8

List of values

[0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 8, 16, 24, 32, 40, 48, 56, 16, 8, 0, 8, 16, 24, 32, 40, 48, 24, 16, 8, 0, 8, 16, 24, 32, 40, 32, 24, 16, 8, 0, 8, 16, 24, 32, 40, 32, 24, 16, 8, 0, 8, 16, 24, 48, 40, 32, 24, 16, 8, 0, 8, 16, 56, 48, 40, 32, 24, 16, 8, 0, 8, 64, 56, 48, 40, 32, 24, 16, 8]