OFFSET
1,1
COMMENTS
Equivalently the number immediately below n in a counterclockwise spiral of the positive integers with the first step to the right.
This is a permutation of the positive integers. A334752 is the inverse permutation.
LINKS
EXAMPLE
For n = 1, a(1) = 8 because 8 is immediately above one in the clockwise square spiral with first step to the right:
21--22--23--24--25--26
| |
20 7---8---9---10 27
| | | |
19 6 1---2 11 28
| | | | |
18 5---4---3 12 29
| | |
17--16--15--14--13 30
|
36--35--34--33--32--31
CROSSREFS
KEYWORD
nonn
AUTHOR
Peter Kagey, May 10 2020
STATUS
approved