OFFSET
0,4
FORMULA
a(n) = A214526(n*(n+1)/2 + 1).
EXAMPLE
Showing the Manhattan distance for a(4), that is, from the origin to the fourth triangular number T(4) = 10, as being 2:
+----15-----+-----+-----+ +
| | |
| | |
+ +-----3-----+ + 28
| | | | |
| | | | |
+ + 0-----1 10 +
| | ^---a(4)=2--^ |
| | | |
+ 6-----+-----+-----+ +
| |
| |
+----21-----+-----+-----+-----+
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Tamas Sandor Nagy, Jan 01 2024
STATUS
approved
