OFFSET
0,2
COMMENTS
The sequence {a(n}} gives the values as they are visited, while, say {b(n)}, gives the values as they are chosen; so:
- a "2" will account for two terms in {a(n)} and for one term in {b(n)},
- a "1" will account for one term in both sequences,
- {a(n)} = RUNS({b(n)}).
LINKS
Rémy Sigrist, PARI program for A331348
EXAMPLE
The central portion of the spiral is:
1---2---1---1---2---1---1
| |
1 2---1---1---2---2 2
| | | |
2 1 1---1---2 2 1
| | | | | |
2 2 2 1---2 2 2
| | | | |
1 1 1---2---2---1 2
| | |
1 2---2---2---1---2---1
|
2---1---1---2---1---1---2 ...
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Rémy Sigrist, Jan 14 2020
STATUS
approved