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.

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

List of values

[0, 0, 0, 0, 0, 4, 0, 4, 8, 12, 8, 4, 0, 4, 8, 12, 8, 4, 0, 4, 16, 12, 8, 4, 0, 24, 24, 48, 72, 96, 24, 0, 24, 48, 72, 48, 24, 24, 48, 72, 72, 48, 48, 48, 72, 96, 72, 72, 72, 72, 48, 48, 48, 72, 96, 48, 24, 24, 48, 72, 48, 24, 0, 24, 48, 72, 48, 24, 24, 48, 96, 72, 48, 48, 48, 72, 72, 72]