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.

A336799 The numbers visited on a square spiral, with a(1)=1, a(2)=2, a(3) = 6, when stepping to an unvisited number as close as possible to the n = 1 starting position that has at least one common factor with the last visited number but none with the second last visited number. In case of a tie, choose the smallest number.

Table of values

n a(n)
1 1
2 2
3 6
4 15
5 35
6 14
7 12
8 33
9 77
10 28
11 10
12 45
13 21
14 56
15 20
16 55
17 99
18 18
19 34
20 85
21 75
22 24
23 22
24 143
25 39
26 30
27 46
28 161
29 63
30 36
31 40
32 95
33 57
34 42
35 26
36 65
37 105
38 48
39 38
40 247
41 117
42 69
43 115
44 70
45 44
46 187
47 51
48 54
49 52
50 91
51 119
52 68
53 60
54 87
55 203
56 98
57 62
58 93
59 129
60 86
61 76
62 133
63 175
64 50
65 78
66 141
67 235
68 80
69 58
70 261

List of values

[1, 2, 6, 15, 35, 14, 12, 33, 77, 28, 10, 45, 21, 56, 20, 55, 99, 18, 34, 85, 75, 24, 22, 143, 39, 30, 46, 161, 63, 36, 40, 95, 57, 42, 26, 65, 105, 48, 38, 247, 117, 69, 115, 70, 44, 187, 51, 54, 52, 91, 119, 68, 60, 87, 203, 98, 62, 93, 129, 86, 76, 133, 175, 50, 78, 141, 235, 80, 58, 261]