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:
, the boustrophedon transform yields another sequence:
The entirety of the transformation itself can be visualized (or imagined) as being constructed by filling-out the triangle as shown in Figure 1.
To fill-out the numerical Isosceles triangle (Figure 1), you start with the input sequence,
, 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
, equivalent to output value
The subsequent rows (going down to the base of the triangle) are numbered consecutively (from 0) as integers—let
denote the number of the row currently being filled.
) as follows: Refer to the arrows in Figure 1 for a visual representation of these "addition" operations.
For a given, finite input-sequence:
rows in the triangle, such that
A more formal definition uses a recurrence relation.
Define the numbers
(with k ≥ n ≥ 0) by Then the transformed sequence is defined by
Per this definition, note the following definitions for values outside the restrictions (from the relationship above) on
In the case a0 = 1, an = 0 (n > 0), the resulting triangle is called the Seidel–Entringer–Arnold Triangle[1] and the numbers
are called Entringer numbers (sequence A008281 in the OEIS).
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 (
) can be defined for different algebras ("numeric domains").
)-valued scalars, the boustrophedon transformed Real-value (bn) is related to the input value, (an), as:
, with the reverse relationship (input from output) defined as:
, where (En) 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 The exponential generating function of the boustrophedon transform (bn) is related to that of the original sequence (an) by The exponential generating function of the unit sequence is 1, so that of the up/down numbers is sec x + tan x.