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.

A319556 a(n) gives the alternating sum of length n, starting at n: n - (n+1) + (n+2) - ... + (-1)^(n+1) * (2n-1).

Table of values

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

List of values

[1, -1, 4, -2, 7, -3, 10, -4, 13, -5, 16, -6, 19, -7, 22, -8, 25, -9, 28, -10, 31, -11, 34, -12, 37, -13, 40, -14, 43, -15, 46, -16, 49, -17, 52, -18, 55, -19, 58, -20, 61, -21, 64, -22, 67, -23, 70, -24, 73, -25, 76, -26, 79, -27, 82, -28, 85, -29, 88, -30]