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.

A367914 Movement sequence in the counter-clockwise undulating spiral, whereby 1, 2, 3, 4 represent moves to the right, down, left and up.

Original entry on oeis.org

1, 4, 3, 4, 3, 2, 3, 2, 1, 2, 1, 2, 1, 4, 1, 4, 1, 4, 3, 4, 3, 4, 3, 4, 3, 2, 3, 2, 3, 2, 3, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4
Offset: 1

Views

Author

Hans G. Oberlack, Dec 04 2023

Keywords

Comments

y ^
|
4 | 2---3
| | |
3 | 2---3 4---3
| | |
2 | 2---3 2---3 4---3
| | | | |
1 | 2---3 2---3 4---3 4---3
| | | | |
0 | 1---2 1---2 1---4 1---4
| | | | |
-1 | 1---2 1-- 2 1---4 1---4
| | | | |
-2 | 1---2 1---4 1---4
| | |
-3 | 1---2 1---4
| | |
-4 | 1---4
+------------------------------------>
-4 -3 -2 -1 0 1 2 3 4 x

Crossrefs

Formula

a(k1)=1 with k1=i^2*8+i*0+2*j+1 with i,j >= 0 and j<=4i.
a(k2)=2 with k2=i^2*8+i*12+2*j+6 with i,j >= 0 and j<=4*i+3.
a(k3)=3 with k3=i^2*8+i*8+2*j+3 with i,j >= 0 and j<=4*i+2.
a(k4)=4 with k4=i^2*8+i*4+2*j+2 with i,j >= 0 and j<=4*i+1.