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.

A240860 a(n) = Sum_{i=1..n} (-1)^{i+1} prime(i)^2, where prime(k) denotes the k-th prime: alternating sum of the squares of the first n primes.

Table of values

n a(n)
1 4
2 -5
3 20
4 -29
5 92
6 -77
7 212
8 -149
9 380
10 -461
11 500
12 -869
13 812
14 -1037
15 1172
16 -1637
17 1844
18 -1877
19 2612
20 -2429
21 2900
22 -3341
23 3548
24 -4373
25 5036
26 -5165
27 5444
28 -6005
29 5876
30 -6893
31 9236
32 -7925
33 10844
34 -8477
35 13724
36 -9077
37 15572
38 -10997
39 16892
40 -13037
41 19004
42 -13757

List of values

[4, -5, 20, -29, 92, -77, 212, -149, 380, -461, 500, -869, 812, -1037, 1172, -1637, 1844, -1877, 2612, -2429, 2900, -3341, 3548, -4373, 5036, -5165, 5444, -6005, 5876, -6893, 9236, -7925, 10844, -8477, 13724, -9077, 15572, -10997, 16892, -13037, 19004, -13757]