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.

A316658 For any n >= 0 with base-5 expansion Sum_{k=0..w} d_k * 5^k, let f(n) = Sum_{k=0..w} [d_k > 0] * (2 + i)^k * i^(d_k - 1) (where [] is an Iverson bracket and i denotes the imaginary unit); a(n) equals the imaginary part of f(n).

Table of values

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

List of values

[0, 0, 1, 0, -1, 1, 1, 2, 1, 0, 2, 2, 3, 2, 1, -1, -1, 0, -1, -2, -2, -2, -1, -2, -3, 4, 4, 5, 4, 3, 5, 5, 6, 5, 4, 6, 6, 7, 6, 5, 3, 3, 4, 3, 2, 2, 2, 3, 2, 1, 3, 3, 4, 3, 2, 4, 4, 5, 4, 3, 5, 5, 6, 5, 4, 2, 2, 3, 2, 1, 1, 1, 2, 1, 0, -4, -4, -3, -4, -5, -3]