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.

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

List of values

[0, 0, 0, 0, 0, 0, 5, 0, 5, 10, 15, 20, 10, 5, 0, 5, 10, 15, 15, 10, 5, 0, 5, 10, 20, 15, 10, 5, 0, 5, 25, 20, 15, 10, 5, 0, 35, 35, 70, 105, 140, 175, 35, 0, 35, 70, 105, 140, 70, 35, 35, 70, 105, 140, 105, 70, 70, 70, 105, 140, 140, 105, 105, 105, 105, 140, 175, 140, 140, 140]