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.

A336830 The Sydney Opera House sequence: a(0) = 0, a(1) = 1; for n > 0, a(n) = min(a(n-1)/n if n|a(n-1), a(n-1)-n) where a(n) is nonnegative and not already in the sequence. Otherwise a(n) = min(a(n-1)+n, a(n-1)*n) where a(n) is not already in the sequence. Otherwise a(n) = a(n-1) + n.

Table of values

n a(n)
0 0
1 1
2 2
3 5
4 9
5 4
6 10
7 3
8 11
9 20
10 30
11 19
12 7
13 91
14 77
15 62
16 46
17 29
18 47
19 28
20 8
21 168
22 146
23 123
24 99
25 74
26 48
27 21
28 49
29 78
30 108
31 139
32 107
33 140
34 106
35 71
36 35
37 72
38 34
39 73
40 33
41 1353
42 1311
43 1268
44 1224
45 1179
46 1133
47 1086
48 1038
49 989
50 939
51 888
52 836
53 783
54 729
55 674
56 618
57 561
58 503
59 444
60 384
61 323
62 261

List of values

[0, 1, 2, 5, 9, 4, 10, 3, 11, 20, 30, 19, 7, 91, 77, 62, 46, 29, 47, 28, 8, 168, 146, 123, 99, 74, 48, 21, 49, 78, 108, 139, 107, 140, 106, 71, 35, 72, 34, 73, 33, 1353, 1311, 1268, 1224, 1179, 1133, 1086, 1038, 989, 939, 888, 836, 783, 729, 674, 618, 561, 503, 444, 384, 323, 261]