OFFSET
0,8
COMMENTS
This sequence is a two-dimensional variant of Van Eck's sequence (A181391).
When working on a square spiral, we quickly end with all 1's:
1--1--1--1--1--1--1
| |
1 1--1--0-13--2 1
. | | |
. 1 1--0--1 0 1
. | | | | |
1 4 0--0 5 1
| | | |
1 0--2--0--1 1
| |
1--1--1--1--1--1
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..10010
Rémy Sigrist, C++ program
EXAMPLE
Square array begins:
n\k| 0 1 2 3 4 5 6 7 8 9
---+----------------------------------------
0| 0 1 1 4 1 10 2 4 1 5
1| 0 1 0 0 5 1 5 5 2 1
2| 0 5 13 1 5 0 4 1 1 0
3| 1 4 4 5 25 1 1 1 8 10
4| 0 5 1 2 2 1 1 0 5 1
5| 4 4 5 1 1 1 17 8 5 1
6| 0 1 1 1 1 4 13 1 1 29
7| 0 0 0 1 0 5 5 1 25 2
8| 16 106 0 49 13 1 1 2 5 20
9| 10 29 13 4 4 1 8 5 0 2
PROG
(C++) See Links section.
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Rémy Sigrist, Mar 27 2022
STATUS
approved