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.

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

List of values

[0, 0, 0, 0, 0, 0, 0, 6, 0, 6, 12, 18, 24, 30, 12, 6, 0, 6, 12, 18, 24, 18, 12, 6, 0, 6, 12, 18, 24, 18, 12, 6, 0, 6, 12, 30, 24, 18, 12, 6, 0, 6, 36, 30, 24, 18, 12, 6, 0, 48, 48, 96, 144, 192, 240, 288, 48, 0, 48, 96, 144, 192, 240, 96, 48, 48, 96, 144, 192, 240, 144, 96, 96, 96]