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.

A037873 (1/2)*Sum{|d(i)-e(i)|}, where Sum{d(i)*5^i} is base 5 representation of n and e(i) are digits d(i) in nonincreasing order, for i=0,1,...,m.

Table of values

n a(n)
1 0
2 0
3 0
4 0
5 1
6 0
7 0
8 0
9 0
10 2
11 1
12 0
13 0
14 0
15 3
16 2
17 1
18 0
19 0
20 4
21 3
22 2
23 1
24 0
25 1
26 1
27 1
28 1
29 1
30 1
31 0
32 0
33 0
34 0
35 2
36 1
37 0
38 0
39 0
40 3
41 2
42 1
43 0
44 0
45 4
46 3
47 2
48 1
49 0
50 2
51 2
52 2
53 2
54 2
55 2
56 1
57 1
58 1
59 1
60 2
61 1
62 0
63 0
64 0
65 3
66 2
67 1
68 0
69 0
70 4
71 3
72 2
73 1
74 0
75 3
76 3
77 3
78 3
79 3
80 3
81 2
82 2
83 2
84 2
85 3
86 2
87 1
88 1
89 1
90 3

List of values

[0, 0, 0, 0, 1, 0, 0, 0, 0, 2, 1, 0, 0, 0, 3, 2, 1, 0, 0, 4, 3, 2, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 2, 1, 0, 0, 0, 3, 2, 1, 0, 0, 4, 3, 2, 1, 0, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 2, 1, 0, 0, 0, 3, 2, 1, 0, 0, 4, 3, 2, 1, 0, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 3, 2, 1, 1, 1, 3]