The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A216191 Triangle T read by rows: T(n,k) equals the Manhattan distance between n and k when integers are arranged in a spiral. 0
0, 1, 0, 2, 1, 0, 1, 2, 1, 0, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 2, 3, 2, 1, 0, 2, 1, 2, 3, 4, 3, 2, 1, 0, 3, 2, 3, 4, 5, 4, 3, 2, 1, 0, 2, 1, 2, 3, 4, 3, 4, 3, 2, 1, 0, 3, 2, 1, 2, 3 (list; table; graph; refs; listen; history; text; internal format)
OFFSET
0,4
COMMENTS
Spiral begins (0 at the center):
.
42--43--44--45--46--47--48
|
41 20--21--22--23--24--25
| | |
40 19 6---7---8---9 26
| | | | |
39 18 5 0---1 10 27
| | | | | |
38 17 4---3---2 11 28
| | | |
37 16--15--14--13--12 29
| |
36--35--34--33--32--31--30
LINKS
FORMULA
T(n,n) = 0, T(n+1,n) = 1, T(n+2,n) = 2, T(n,k) <= n-k.
EXAMPLE
Triangle begins, 0 <= k <= n:
0
1, 0
2, 1, 0
1, 2, 1, 0
2, 3, 2, 1, 0
1, 2, 3, 2, 1, 0
2, 3, 4, 3, 2, 1, 0
1, 2, 3, 2, 3, 2, 1, 0
2, 1, 2, 3, 4, 3, 2, 1, 0
3, 2, 3, 4, 5, 4, 3, 2, 1, 0
2, 1, 2, 3, 4, 3, 4, 3, 2, 1, 0
3, 2, 1, 2, 3, 4, 5, 4, 3, 2, 1, 0
4, 3, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1, 0
3, 2, 1, 2, 3, 4, 5, 4, 3, 4, 3, 2, 1, 0
2, 3, 2, 1, 2, 3, 4, 3, 4, 5, 4, 3, 2, 1, 0
3, 4, 3, 2, 1, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1, 0
CROSSREFS
Sequence in context: A106262 A025870 A104276 * A268834 A285914 A096875
KEYWORD
nonn,tabl
AUTHOR
Philippe Deléham, Mar 11 2013
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 4 10:52 EDT 2024. Contains 373096 sequences. (Running on oeis4.)