OFFSET
1,2
COMMENTS
Draw a square spiral growing by a unit line segment on each step, and at the same time, draw another square spiral in the opposite direction (again using a unit line segment) that turns after the first step (see example). a(n) is the number of unit line segments remaining after the n-th step. Note that overlapping line segments are counted once.
EXAMPLE
__ ____ ____ ____ ____ ____
__ __| __| __| | __| | __| | __| | __|
| __| ____| |____| |____| |____| |____|
n=1 n=2 n=3 n=4 n=5 n=6 n=7 n=8
--
__ __ __
________ ____ __ ____ __ ____ __| ____ __| ____ __|
| __| | __| | | __| | | __| | | __| | | __| |
|____|__ |____|__| |____|__| |____|__| |____|__| |____|__|
| __| __ __|
n=9 n=10 n=11 n=12 n=13 n=14
CROSSREFS
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Dec 25 2016
STATUS
approved