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.

A318438 For any n >= 0 with binary expansion Sum_{k=0..w} b_k * 2^k, let h(n) = Sum_{k=0..w} b_k * (i-1)^k (where i denotes the imaginary unit); a(n) is the real part of h(n).

Table of values

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

List of values

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