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.

A318705 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 real part of g(n).

Table of values

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

List of values

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