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.

A363962 a(1)=1; for n > 1, if n appears in the sequence then a(n) = lastindex(n), where lastindex(n) is the index of the last appearance of n. Otherwise a(n) = a(n-1) - n unless that result is already in the sequence or would be negative; otherwise, a(n) = a(n-1) * n.

Table of values

n a(n)
1 1
2 2
3 6
4 24
5 19
6 3
7 21
8 13
9 4
10 40
11 29
12 17
13 8
14 112
15 97
16 81
17 12
18 216
19 5
20 100
21 7
22 154
23 131
24 4
25 100
26 74
27 47
28 1316
29 11
30 330
31 299
32 267
33 234
34 200
35 165
36 129
37 92
38 54
39 15
40 10
41 410
42 368
43 325
44 281
45 236
46 190
47 27
48 1296
49 1247
50 1197
51 1146
52 1094
53 1041
54 38
55 2090
56 2034
57 1977
58 1919
59 1860
60 1800
61 1739
62 1677
63 1614

List of values

[1, 2, 6, 24, 19, 3, 21, 13, 4, 40, 29, 17, 8, 112, 97, 81, 12, 216, 5, 100, 7, 154, 131, 4, 100, 74, 47, 1316, 11, 330, 299, 267, 234, 200, 165, 129, 92, 54, 15, 10, 410, 368, 325, 281, 236, 190, 27, 1296, 1247, 1197, 1146, 1094, 1041, 38, 2090, 2034, 1977, 1919, 1860, 1800, 1739, 1677, 1614]