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.

A078783 a(0) = 0; a(1)=1; for n>1, a(n) = least positive integer m not among a(1),...,a(n-1) such that |m-a(n-1)| > |a(n-1)-a(n-2)|.

Table of values

n a(n)
0 0
1 1
2 3
3 6
4 2
5 7
6 13
7 4
8 14
9 25
10 5
11 26
12 48
13 8
14 49
15 91
16 9
17 92
18 176
19 10
20 177
21 345
22 11
23 346
24 682
25 12
26 683
27 1355
28 15
29 1356
30 2698
31 16
32 2699
33 5383
34 17
35 5384
36 10752
37 18
38 10753
39 21489
40 19
41 21490
42 42962
43 20
44 42963
45 85907
46 21
47 85908
48 171796
49 22
50 171797

List of values

[0, 1, 3, 6, 2, 7, 13, 4, 14, 25, 5, 26, 48, 8, 49, 91, 9, 92, 176, 10, 177, 345, 11, 346, 682, 12, 683, 1355, 15, 1356, 2698, 16, 2699, 5383, 17, 5384, 10752, 18, 10753, 21489, 19, 21490, 42962, 20, 42963, 85907, 21, 85908, 171796, 22, 171797]