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.

A132666 a(1)=1, a(n) = 2*a(n-1) if the minimal positive integer not yet in the sequence is greater than a(n-1), else a(n) = a(n-1)-1.

Table of values

n a(n)
1 1
2 2
3 4
4 3
5 6
6 5
7 10
8 9
9 8
10 7
11 14
12 13
13 12
14 11
15 22
16 21
17 20
18 19
19 18
20 17
21 16
22 15
23 30
24 29
25 28
26 27
27 26
28 25
29 24
30 23
31 46
32 45
33 44
34 43
35 42
36 41
37 40
38 39
39 38
40 37
41 36
42 35
43 34
44 33
45 32
46 31
47 62
48 61
49 60
50 59
51 58
52 57
53 56
54 55
55 54
56 53
57 52
58 51
59 50
60 49
61 48
62 47
63 94
64 93
65 92
66 91
67 90
68 89
69 88
70 87
71 86
72 85

List of values

[1, 2, 4, 3, 6, 5, 10, 9, 8, 7, 14, 13, 12, 11, 22, 21, 20, 19, 18, 17, 16, 15, 30, 29, 28, 27, 26, 25, 24, 23, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52, 51, 50, 49, 48, 47, 94, 93, 92, 91, 90, 89, 88, 87, 86, 85]