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.

A180019 Difference of sums of digits of n in decimal and in ternary representation.

Table of values

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

List of values

[0, 0, 0, 2, 2, 2, 4, 4, 4, 8, -1, -1, 1, 1, 1, 3, 3, 3, 7, 7, -2, 0, 0, 0, 2, 2, 2, 8, 8, 8, 1, 1, 1, 3, 3, 3, 7, 7, 7, 9, 0, 0, 2, 2, 2, 6, 6, 6, 8, 8, -1, 1, 1, 1, 7, 7, 7, 9, 9, 9, 2, 2, 2, 6, 6, 6, 8, 8, 8, 10, 1, 1, 5, 5, 5, 7, 7, 7, 9, 9, 0, 8, 8, 8, 10, 10, 10, 12, 12, 12, 7, 7, 7, 9, 9, 9, 11, 11, 11]