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.

A247556 Exact differential base (a B_2 sequence) constructed as follows: Start with a(0)=0. For n>=1, let S be the set of all differences a(j)-a(i) for 0 <= i < j <= n-1, and let d be the smallest positive integer not in S. If, for every i in 1..n-1, a(n-1) + d - a(i) is not in S, then a(n) = a(n-1) + d. Otherwise, let r be the smallest positive integer such that, for every i in 1..n-1, neither a(n-1) + r - a(i) nor a(n-1) + r + d - a(i) is in S; then a(n) = a(n-1) + r and a(n+1) = a(n) + d.

Table of values

n a(n)
0 0
1 1
2 3
3 7
4 12
5 20
6 30
7 44
8 65
9 80
10 96
11 143
12 165
13 199
14 224
15 306
16 332
17 415
18 443
19 591
20 624
21 678
22 716
23 934
24 973
25 1134
26 1174
27 1449
28 1491
29 1674
30 1720
31 2113
32 2161
33 2468
34 2517
35 2855
36 2906
37 2961
38 3245
39 3302
40 3711
41 3772
42 4081
43 4148
44 4603
45 4673
46 5557
47 5628
48 5917
49 5989

List of values

[0, 1, 3, 7, 12, 20, 30, 44, 65, 80, 96, 143, 165, 199, 224, 306, 332, 415, 443, 591, 624, 678, 716, 934, 973, 1134, 1174, 1449, 1491, 1674, 1720, 2113, 2161, 2468, 2517, 2855, 2906, 2961, 3245, 3302, 3711, 3772, 4081, 4148, 4603, 4673, 5557, 5628, 5917, 5989]