OFFSET
0,4
EXAMPLE
Terms are written in square boxes radiating spirally (cf. Ulam prime spiral). a(0) = 0, a(1) = 1 and a(2) = 1, so write 0, then 1 to its right, and another 1 below the first 1. The next unfilled box forms a square with the three filled boxes, so a(3) = a(0) + a(1) + a(2) = 0 + 1 + 1 = 2.
.
8--13--14--28
|
5 0---1
| |
3---2---1
.
a(4) = 2 because a(0) + a(1) + a(2) = 0 + 1 + 1 = 2.
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Michael Joseph Halm, Apr 02 2004; corrected Apr 05 2004
STATUS
approved