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.

A350742 Sisyphus with squares: a(1) = 1; thereafter, if a(n-1) is even, a(n) = a(n-1)/2; otherwise a(n) = a(n-1) + k^2, where k^2 is the smallest square (starting from 1) that has not yet been added.

Table of values

n a(n)
1 1
2 2
3 1
4 5
5 14
6 7
7 23
8 48
9 24
10 12
11 6
12 3
13 39
14 88
15 44
16 22
17 11
18 75
19 156
20 78
21 39
22 139
23 260
24 130
25 65
26 209
27 378
28 189
29 385
30 610
31 305
32 561
33 850
34 425
35 749
36 1110
37 555
38 955
39 1396
40 698
41 349
42 833
43 1362
44 681
45 1257
46 1882
47 941
48 1617
49 2346
50 1173
51 1957
52 2798
53 1399
54 2299
55 3260
56 1630

List of values

[1, 2, 1, 5, 14, 7, 23, 48, 24, 12, 6, 3, 39, 88, 44, 22, 11, 75, 156, 78, 39, 139, 260, 130, 65, 209, 378, 189, 385, 610, 305, 561, 850, 425, 749, 1110, 555, 955, 1396, 698, 349, 833, 1362, 681, 1257, 1882, 941, 1617, 2346, 1173, 1957, 2798, 1399, 2299, 3260, 1630]