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.

A318706 For any n >= 0 with base-9 representation Sum_{k=0..w} d_k * 9^k, let g(n) = Sum_{k=0..w} s(d_k) * 3^k (where s(0) = 0, s(1+2*j) = i^j and s(2+2*j) = i^j * (1+i) for any j > 0, and i denotes the imaginary unit); a(n) is the imaginary part of g(n).

Table of values

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

List of values

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