login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A367914
Movement sequence in the counter-clockwise undulating spiral, whereby 1, 2, 3, 4 represent moves to the right, down, left and up.
0
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,2
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
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.
CROSSREFS
KEYWORD
nonn,walk
AUTHOR
Hans G. Oberlack, Dec 04 2023
STATUS
approved