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.

A080776 Oscillating sequence which rises to 2^(k-1) in k-th segment (k>=1) then falls back to 0.

Table of values

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

List of values

[0, 0, 1, 0, 1, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 31, 30]