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.

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

List of values

[0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 7, 14, 21, 28, 35, 42, 14, 7, 0, 7, 14, 21, 28, 35, 21, 14, 7, 0, 7, 14, 21, 28, 28, 21, 14, 7, 0, 7, 14, 21, 35, 28, 21, 14, 7, 0, 7, 14, 42, 35, 28, 21, 14, 7, 0, 7, 49, 42, 35, 28, 21, 14, 7, 0, 63, 63, 126, 189, 252, 315, 378, 441, 63, 0, 63, 126, 189]