Skip to main content
added 864 characters in body
Source Link
Carlo Beenakker
  • 188.2k
  • 18
  • 448
  • 651

$$a_n=\{Y_n,X_n\}$$

where $X_n$ is sequence A319572 and $Y_n$ is sequence A319573 in the OEIS database. These are the coordinates of the stripe enumeration of $N \times N$ where $N = \{0, 1, 2, \ldots\}$. A "Stripe Enumeration" function to produce these sequences is provided here.

Here is some Mathematica code to test for this:

f[{a_, b_}] := (1/2)*(1 - (-1)^(a + b))*{Max[0, a - 1], 
b + 1} + (1/2)*(1 + (-1)^(a + b))*{a + 1, Max[0, b - 1]}

RecurrenceTable[{a[n + 1] == f[a[n]], a[0] == {0, 0}}, a, {n, 0, 30}]

The output for $a_n$ is

{{0, 0}, {1, 0}, {0, 1}, {0, 2}, {1, 1}, {2, 0}, {3, 0}, {2, 1}, {1, 2}, {0, 3}, {0, 4}, {1, 3}, {2, 2}, {3, 1}, {4, 0}, {5, 0}, {4, 1}, {3, 2}, {2, 3}, {1, 4}, {0, 5}, {0, 6}, {1, 5}, {2, 4}, {3, 3}, {4, 2}, {5, 1}, {6, 0}, {7, 0}, {6, 1}, {5, 2}}

Compare with

$$Y_n=0, 1, 0, 0, 1, 2, 3, 2, 1, 0, 0, 1, 2, 3, 4, 5, 4, 3, 2, 1, 0, 0, 1, 2, 3, 4, 5, 6, 7, 6, 5$$ $$X_n=0, 0, 1, 2, 1, 0, 0, 1, 2, 3, 4, 3, 2, 1, 0, 0, 1, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1, 0, 0, 1, 2$$

$$a_n=\{Y_n,X_n\}$$

where $X_n$ is sequence A319572 and $Y_n$ is sequence A319573 in the OEIS database. These are the coordinates of the stripe enumeration of $N \times N$ where $N = \{0, 1, 2, \ldots\}$.

$$a_n=\{Y_n,X_n\}$$

where $X_n$ is sequence A319572 and $Y_n$ is sequence A319573 in the OEIS database. These are the coordinates of the stripe enumeration of $N \times N$ where $N = \{0, 1, 2, \ldots\}$. A "Stripe Enumeration" function to produce these sequences is provided here.

Here is some Mathematica code to test for this:

f[{a_, b_}] := (1/2)*(1 - (-1)^(a + b))*{Max[0, a - 1], 
b + 1} + (1/2)*(1 + (-1)^(a + b))*{a + 1, Max[0, b - 1]}

RecurrenceTable[{a[n + 1] == f[a[n]], a[0] == {0, 0}}, a, {n, 0, 30}]

The output for $a_n$ is

{{0, 0}, {1, 0}, {0, 1}, {0, 2}, {1, 1}, {2, 0}, {3, 0}, {2, 1}, {1, 2}, {0, 3}, {0, 4}, {1, 3}, {2, 2}, {3, 1}, {4, 0}, {5, 0}, {4, 1}, {3, 2}, {2, 3}, {1, 4}, {0, 5}, {0, 6}, {1, 5}, {2, 4}, {3, 3}, {4, 2}, {5, 1}, {6, 0}, {7, 0}, {6, 1}, {5, 2}}

Compare with

$$Y_n=0, 1, 0, 0, 1, 2, 3, 2, 1, 0, 0, 1, 2, 3, 4, 5, 4, 3, 2, 1, 0, 0, 1, 2, 3, 4, 5, 6, 7, 6, 5$$ $$X_n=0, 0, 1, 2, 1, 0, 0, 1, 2, 3, 4, 3, 2, 1, 0, 0, 1, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1, 0, 0, 1, 2$$
Source Link
Carlo Beenakker
  • 188.2k
  • 18
  • 448
  • 651

$$a_n=\{Y_n,X_n\}$$

where $X_n$ is sequence A319572 and $Y_n$ is sequence A319573 in the OEIS database. These are the coordinates of the stripe enumeration of $N \times N$ where $N = \{0, 1, 2, \ldots\}$.