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.

A318707 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 square of the modulus of g(n).

Table of values

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

List of values

[0, 1, 2, 1, 2, 1, 2, 1, 2, 9, 16, 17, 10, 5, 4, 5, 10, 17, 18, 25, 32, 25, 20, 13, 8, 13, 20, 9, 10, 17, 16, 17, 10, 5, 4, 5, 18, 13, 20, 25, 32, 25, 20, 13, 8, 9, 4, 5, 10, 17, 16, 17, 10, 5, 18, 13, 8, 13, 20, 25, 32, 25, 20, 9, 10, 5, 4, 5, 10, 17, 16, 17]