In mathematics, the boustrophedon transform is a procedure which maps one sequence to another. The transformed sequence is computed by an "addition" operation, implemented as if filling a triangular array in a boustrophedon (zigzag- or serpentine-like) manner—as opposed to a "Raster Scan" sawtooth-like manner.
The boustrophedon transform is a numerical, sequence-generating transformation, which is determined by a binary operation such as addition.
Generally speaking, given a sequence:
(a0,a1,a2,\ldots)
(b0,b1,b2,\ldots)
b0
a0
To fill-out the numerical Isosceles triangle (Figure 1), you start with the input sequence,
(a0,a1,a2,\ldots)
The top vertex of the triangle will be the input value
a0
b0
The subsequent rows (going down to the base of the triangle) are numbered consecutively (from 0) as integers—let
k
k
k\inN
(k+1)
k
ak
(k,j)
(k,j+1)
(k-1,j+1)
bk
k
k
ak
(k,j)
(k,j-1)
(k-1,j-1)
bk
k
Refer to the arrows in Figure 1 for a visual representation of these "addition" operations.
For a given, finite input-sequence:
(a0,a1,...aN)
N
N
k
[0,N)
k=N-1
A more formal definition uses a recurrence relation. Define the numbers
Tk,n
Tk,0=ak
Tk,n=Tk,n-1+Tk-1,k-n
with
k,n\inN
k\gen>0
Then the transformed sequence is defined by
bn=Tn,n
T2,2
Per this definition, note the following definitions for values outside the restrictions (from the relationship above) on
(k,n)
\begin{align} T0,0\overset{\Delta}{=}&a0\overset{\Delta}{=}b0\\ \\ Tk,0\overset{\Delta}{=}&ak\iffkiseven\\ Tk,0\overset{\Delta}{=}&bk\iffkisodd\\ \\ T0,k\overset{\Delta}{=}&bk\iffkiseven\\ T0,k\overset{\Delta}{=}&ak\iffkisodd\\ \end{align}
In the case a0 = 1, an = 0 (n > 0), the resulting triangle is called the Seidel - Entringer - Arnold Triangle[1] and the numbers
Tk,n
In this case the numbers in the transformed sequence bn are called the Euler up/down numbers.[2] This is sequence A000111 on the On-Line Encyclopedia of Integer Sequences. These enumerate the number of alternating permutations on n letters and are related to the Euler numbers and the Bernoulli numbers.
Building from the geometric design of the boustrophedon transform, algebraic definitions of the relationship from input values (
ai
bi
In the Euclidean (
En
R1
\begin{align} bn&=
n | |
\sum | |
k=0 |
\binom{n}{k}akEn-k\\ \end{align}
with the reverse relationship (input from output) defined as:
\begin{align} an&=
n | |
\sum | |
k=0 |
(-1)n-k\binom{n}{k}bkEn-k\end{align}
where is the sequence of "up/down" numbers—also known as secant or tangent numbers.[3]
The exponential generating function of a sequence (an) is defined by
EG(an;x)=\sum
infty | |
n=0 |
an
xn | |
n! |
.
EG(bn;x)=(\secx+\tanx)EG(an;x).
The exponential generating function of the unit sequence is 1, so that of the up/down numbers is sec x + tan x.