A338367 Square spiral of nonnegative integers built by greedy algorithm such that for any (i, j) <> (0, 0) there is at most one position, say (n, k), such that the values at (n, k) and at (n+i, k+j) are the same.
0, 0, 0, 1, 0, 2, 1, 3, 4, 1, 3, 2, 3, 4, 5, 6, 2, 7, 4, 6, 5, 7, 8, 9, 5, 6, 7, 9, 8, 10, 7, 11, 9, 12, 8, 13, 10, 11, 14, 15, 12, 13, 10, 14, 11, 15, 16, 17, 12, 4, 13, 14, 18, 15, 6, 17, 1, 16, 19, 18, 20, 21, 22, 16, 17, 19, 20, 23, 18, 21, 24, 25, 19, 20
Offset: 0
Keywords
Examples
The spiral begins: 10--13---8--12---9--11---7 | | 11 2---6---5---4---3 10 | | | | 14 7 0---1---0 2 8 | | | | | | 15 4 2 0---0 3 9 | | | | | 12 6 1---3---4---1 7 | | | 13 5---7---8---9---5---6 | 10--14--11--15--16--17--12
Links
- Rémy Sigrist, Table of n, a(n) for n = 0..9800
- Rémy Sigrist, PARI program for A338367
- Rémy Sigrist, Colored scatterplot of (x, y) such that T(n, k) = T(n+y, k+x) with -250 <= n, n+y, k, k+x <= 250 (where the hue is function of T(n, o))
- Rémy Sigrist, Colored representation of the spiral for -250 <= x, y <= 250 (where the hue is function of T(y, x))
- Rémy Sigrist, Scatterplot of the points (x, y) introducing a new value for -250 <= x, y <= 250
Programs
-
PARI
See Links section.
Comments