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.

A151949 a(n) = image of n under the 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 0
10 9
11 0
12 9
13 18
14 27
15 36
16 45
17 54
18 63
19 72
20 18
21 9
22 0
23 9
24 18
25 27
26 36
27 45
28 54
29 63
30 27
31 18
32 9
33 0
34 9
35 18
36 27
37 36
38 45
39 54
40 36
41 27
42 18
43 9
44 0
45 9
46 18
47 27
48 36
49 45
50 45
51 36
52 27
53 18
54 9
55 0
56 9
57 18
58 27
59 36
60 54
61 45
62 36
63 27
64 18
65 9
66 0
67 9
68 18
69 27
70 63
71 54
72 45
73 36
74 27
75 18
76 9
77 0
78 9
79 18
80 72
81 63
82 54
83 45
84 36
85 27
86 18
87 9
88 0
89 9
90 81
91 72
92 63
93 54
94 45
95 36
96 27
97 18
98 9
99 0
100 99
101 99
102 198
103 297
104 396
105 495
106 594
107 693
108 792
109 891
110 99
111 0
112 99
113 198
114 297
115 396
116 495
117 594
118 693
119 792

List of values

[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 9, 18, 27, 36, 45, 54, 63, 72, 18, 9, 0, 9, 18, 27, 36, 45, 54, 63, 27, 18, 9, 0, 9, 18, 27, 36, 45, 54, 36, 27, 18, 9, 0, 9, 18, 27, 36, 45, 45, 36, 27, 18, 9, 0, 9, 18, 27, 36, 54, 45, 36, 27, 18, 9, 0, 9, 18, 27, 63, 54, 45, 36, 27, 18, 9, 0, 9, 18, 72, 63, 54, 45, 36, 27, 18, 9, 0, 9, 81, 72, 63, 54, 45, 36, 27, 18, 9, 0, 99, 99, 198, 297, 396, 495, 594, 693, 792, 891, 99, 0, 99, 198, 297, 396, 495, 594, 693, 792]