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.

A026166 For n >= 2, let h=floor((n-1)/2), L=n-h, R=n+h; then a(L)=n if a(L) not yet defined, otherwise a(R)=n; thus |a(n)-n| = floor((1/2)*(a(n)-1)).

Table of values

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

List of values

[1, 2, 4, 3, 8, 10, 5, 6, 16, 7, 20, 22, 9, 26, 28, 11, 12, 34, 13, 14, 40, 15, 44, 46, 17, 18, 52, 19, 56, 58, 21, 62, 64, 23, 24, 70, 25, 74, 76, 27, 80, 82, 29, 30, 88, 31, 32, 94, 33, 98, 100, 35, 36, 106, 37, 38, 112, 39, 116, 118, 41, 42]