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.

A037841 a(n)=Sum{|d(i)-d(i-1)|: i=1,...,m}, where Sum{d(i)*9^i: i=0,1,...,m} is the base 9 representation of n.

Table of values

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

List of values

[0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 2, 3, 4, 5, 6, 7, 2, 1, 0, 1, 2, 3, 4, 5, 6, 3, 2, 1, 0, 1, 2, 3, 4, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 4, 3, 2, 1, 0, 1, 2, 3, 6, 5, 4, 3, 2, 1, 0, 1, 2, 7, 6, 5, 4, 3, 2, 1, 0, 1, 8, 7, 6, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1]