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.

A332939 The number of steps to return to the origin for a walk on a 2D square grid where the walk changes direction to move as close as possible toward the origin after it has taken a prime number of steps; backtracking on its previous step is not allowed.

Table of values

n a(n)
0 0
1 6
2 18
3 74
4 110
5 200
6 268
7 380
8 574
9 662
10 828
11 932
12 1020
13 1134
14 1440
15 1614
16 1734
17 1760
18 1878
19 1954
20 2142
21 2252
22 2394
23 2560
24 2622
25 2672
26 2694
27 2720
28 2802
29 2862
30 3534
31 3702
32 3802
33 3934
34 4020
35 4104
36 4250
37 4462
38 4798
39 5070
40 5530
41 5698
42 5850
43 5870
44 5940
45 6132
46 6222
47 6316
48 6372

List of values

[0, 6, 18, 74, 110, 200, 268, 380, 574, 662, 828, 932, 1020, 1134, 1440, 1614, 1734, 1760, 1878, 1954, 2142, 2252, 2394, 2560, 2622, 2672, 2694, 2720, 2802, 2862, 3534, 3702, 3802, 3934, 4020, 4104, 4250, 4462, 4798, 5070, 5530, 5698, 5850, 5870, 5940, 6132, 6222, 6316, 6372]