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.

A132667 a(1)=1, a(n) = 3*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 3
3 2
4 6
5 5
6 4
7 12
8 11
9 10
10 9
11 8
12 7
13 21
14 20
15 19
16 18
17 17
18 16
19 15
20 14
21 13
22 39
23 38
24 37
25 36
26 35
27 34
28 33
29 32
30 31
31 30
32 29
33 28
34 27
35 26
36 25
37 24
38 23
39 22
40 66
41 65
42 64
43 63
44 62
45 61
46 60
47 59
48 58
49 57
50 56
51 55
52 54
53 53
54 52
55 51
56 50
57 49
58 48
59 47
60 46
61 45
62 44
63 43
64 42
65 41
66 40
67 120
68 119
69 118
70 117
71 116

List of values

[1, 3, 2, 6, 5, 4, 12, 11, 10, 9, 8, 7, 21, 20, 19, 18, 17, 16, 15, 14, 13, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 66, 65, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 120, 119, 118, 117, 116]