Boustrophedon transform explained

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.

Definition

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)

, the boustrophedon transform yields another sequence:

(b0,b1,b2,\ldots)

, where

b0

is likely defined equivalent to

a0

. The entirety of the transformation itself can be visualized (or imagined) as being constructed by filling-out the triangle as shown in Figure 1.

Boustrophedon Triangle

To fill-out the numerical Isosceles triangle (Figure 1), you start with the input sequence,

(a0,a1,a2,\ldots)

, and place one value (from the input sequence) per row, using the boustrophedon scan (zigzag- or serpentine-like) approach.

The top vertex of the triangle will be the input value

a0

, equivalent to output value

b0

, and we number this top row as row 0.

The subsequent rows (going down to the base of the triangle) are numbered consecutively (from 0) as integers—let

k

denote the number of the row currently being filled. These rows are constructed according to the row number (

k

) as follows:

k\inN

, there will be exactly

(k+1)

values in the row.

k

is odd, then put the value

ak

on the right-hand end of the row.

(k,j)

) is the result of "addition" between the value to right (index:

(k,j+1)

) and the value to the upper right (index:

(k-1,j+1)

).

bk

will be on the left-hand end of an odd row (where

k

is odd).

k

is even, then put the input value

ak

on the left-hand end of the row.

(k,j)

) is the result of "addition" between the value to its left (index:

(k,j-1)

) and the value to its upper left (index:

(k-1,j-1)

).

bk

will be on the right-hand end of an even row (where

k

is even).

Refer to the arrows in Figure 1 for a visual representation of these "addition" operations.

For a given, finite input-sequence:

(a0,a1,...aN)

, of

N

values, there will be exactly

N

rows in the triangle, such that

k

is an integer in the range:

[0,N)

(exclusive). In other words, the last row is

k=N-1

.

Recurrence relation

A more formal definition uses a recurrence relation. Define the numbers

Tk,n

(with k ≥ n ≥ 0) by

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

(for

T2,2

and greater indices).

Per this definition, note the following definitions for values outside the restrictions (from the relationship above) on

(k,n)

pairs:

\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}

Special Cases

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

are called Entringer numbers .

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.

Algebraic definition(s)

Building from the geometric design of the boustrophedon transform, algebraic definitions of the relationship from input values (

ai

) to output values (

bi

) can be defined for different algebras ("numeric domains").

Euclidean (Real) values

In the Euclidean (

En

) Algebra for Real (

R1

)-valued scalars, the boustrophedon transformed Real-value is related to the input value,, as:

\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

The exponential generating function of a sequence (an) is defined by

EG(an;x)=\sum

infty
n=0

an

xn
n!

.

The exponential generating function of the boustrophedon transform (bn) is related to that of the original sequence (an) by

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.

References

Notes and References

  1. http://mathworld.wolfram.com/about/author.html Weisstein, Eric W.
  2. http://mathworld.wolfram.com/about/author.html Weisstein, Eric W.
  3. http://mathworld.wolfram.com/about/author.html Weisstein, Eric W.