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.

A296069 a(1)=0; thereafter a(n) is the smallest number (in absolute value) not yet in the sequence such that the arithmetic mean of the first n terms a(1), a(2), ..., a(n) is a nonzero integer. Preference is given to positive values of a(n).

Table of values

n a(n)
1 0
2 2
3 1
4 5
5 -3
6 7
7 -5
8 9
9 -7
10 11
11 -9
12 13
13 -11
14 15
15 -13
16 17
17 -15
18 19
19 -17
20 21
21 -19
22 23
23 -21
24 25
25 -23
26 27
27 -25
28 29
29 -27
30 31
31 -29
32 33
33 -31
34 35
35 -33
36 37
37 -35
38 39
39 -37
40 41
41 -39
42 43
43 -41
44 45
45 -43
46 47
47 -45
48 49
49 -47
50 51
51 -49
52 53
53 -51

List of values

[0, 2, 1, 5, -3, 7, -5, 9, -7, 11, -9, 13, -11, 15, -13, 17, -15, 19, -17, 21, -19, 23, -21, 25, -23, 27, -25, 29, -27, 31, -29, 33, -31, 35, -33, 37, -35, 39, -37, 41, -39, 43, -41, 45, -43, 47, -45, 49, -47, 51, -49, 53, -51]