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.

A226940 a(0)=0; if a(n-1) is odd, a(n) = n + a(n-1), otherwise a(n) = n - a(n-1).

Table of values

n a(n)
0 0
1 1
2 3
3 6
4 -2
5 7
6 13
7 20
8 -12
9 21
10 31
11 42
12 -30
13 43
14 57
15 72
16 -56
17 73
18 91
19 110
20 -90
21 111
22 133
23 156
24 -132
25 157
26 183
27 210
28 -182
29 211
30 241
31 272
32 -240
33 273
34 307
35 342
36 -306
37 343
38 381
39 420
40 -380
41 421
42 463
43 506
44 -462
45 507
46 553
47 600
48 -552
49 601
50 651
51 702
52 -650
53 703
54 757

List of values

[0, 1, 3, 6, -2, 7, 13, 20, -12, 21, 31, 42, -30, 43, 57, 72, -56, 73, 91, 110, -90, 111, 133, 156, -132, 157, 183, 210, -182, 211, 241, 272, -240, 273, 307, 342, -306, 343, 381, 420, -380, 421, 463, 506, -462, 507, 553, 600, -552, 601, 651, 702, -650, 703, 757]