In
mathematics, the boustrophedon transform is a procedure which maps one
sequence
In mathematics, a sequence is an enumerated collection of objects in which repetitions are allowed and order matters. Like a set, it contains members (also called ''elements'', or ''terms''). The number of elements (possibly infinite) is called ...
to another. The transformed sequence is computed by an "addition" operation, implemented as if filling a
triangular array
In mathematics and computing, a triangular array of numbers, polynomials, or the like, is a doubly indexed sequence in which each row is only as long as the row's own index. That is, the ''i''th row contains only ''i'' elements.
Examples
Notable ...
in a
boustrophedon
Boustrophedon is a style of writing in which alternate lines of writing are reversed, with letters also written in reverse, mirror-style. This is in contrast to modern European languages, where lines always begin on the same side, usually the le ...
(
zigzag
A zigzag is a pattern made up of small corners at variable angles, though constant within the zigzag, tracing a path between two parallel lines; it can be described as both jagged and fairly regular.
In geometry, this pattern is described as a ...
- 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 an
"addition" operation.
Generally speaking, given a sequence:
, the boustrophedon transform yields another sequence:
, where
is likely defined equivalent to
. 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
In geometry, an isosceles triangle () is a triangle that has two sides of equal length. Sometimes it is specified as having ''exactly'' two sides of equal length, and sometimes as having ''at least'' two sides of equal length, the latter versio ...
(Figure 1), you start with the input sequence,
, and place one value (from the input sequence) per row, using the boustrophedon scan (
zigzag
A zigzag is a pattern made up of small corners at variable angles, though constant within the zigzag, tracing a path between two parallel lines; it can be described as both jagged and fairly regular.
In geometry, this pattern is described as a ...
- or
serpentine-like) approach.
The top vertex of the triangle will be the input value
, equivalent to output value
, 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
denote the number of the row currently being filled. These rows are constructed according to the row number (
) as follows:
* For all rows, numbered
, there will be exactly
values in the row.
* If
is odd, then put the value
on the right-hand end of the row.
** Fill-out the interior of this row from right-to-left, where each value (index:
) is the result of "addition" between the value to right (index:
) and the value to the upper right (index:
).
** The output value
will be on the left-hand end of an odd row (where
is
odd).
* If
is even, then put the input value
on the left-hand end of the row.
** Fill-out the interior of this row from left-to-right, where each value (index:
) is the result of "addition" between the value to its left (index:
) and the value to its upper left (index:
).
** The output value
will be on the right-hand end of an even row (where
is
even).
Refer to the arrows in Figure 1 for a visual representation of these "addition" operations.
For a given, finite input-sequence:
, of
values, there will be exactly
rows in the triangle, such that
is an integer in the range:
(exclusive). In other words, the last row is
k = N - 1.
Recurrence relation
A more formal definition uses a recurrence relation. Define the numbers
T_ (with ''k'' ≥ ''n'' ≥ 0) by
:
T_ = a_k
:
T_ = T_ + T_
:
\text
:
\quad k,n \in \mathbb
:
\quad k \ge n > 0.
Then the transformed sequence is defined by
b_n = T_ (for
T_ and greater indices).
Per this definition, note the following definitions for values outside the restrictions (from the relationship above) on
(k,n) pairs:
\begin
T_\, \overset& \, a_ \, \overset \, b_\\
\\
T_\, \overset& \, a_ \, \iff k \, \text\\
T_\, \overset& \, b_ \, \iff k \, \text\\
\\
T_\, \overset& \, b_ \, \iff k \, \text\\
T_\, \overset& \, a_ \, \iff k \, \text\\
\end
Special Cases
In the case ''a''
0 = 1, ''a''
''n'' = 0 (''n'' > 0), the resulting triangle is called the Seidel–Entringer–Arnold Triangle and the numbers
T_ are called Entringer numbers .
In this case the numbers in the transformed sequence ''b''
''n'' are called the Euler up/down numbers. This is sequence
A000111 on the On-Line Encyclopedia of Integer Sequences">oeis:A000111">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 (
a_i) to output values (
b_i) can be defined for different
algebras
In mathematics, an algebra over a field (often simply called an algebra) is a vector space equipped with a bilinear product. Thus, an algebra is an algebraic structure consisting of a set together with operations of multiplication and additio ...
("numeric domains").
Euclidean (Real) values
In the Euclidean (
\mathbb^) Algebra for Real (
\mathbb^)-valued scalars, the boustrophedon transformed
Real
Real may refer to:
Currencies
* Brazilian real (R$)
* Central American Republic real
* Mexican real
* Portuguese real
* Spanish real
* Spanish colonial real
Music Albums
* ''Real'' (L'Arc-en-Ciel album) (2000)
* ''Real'' (Bright album) (201 ...
-value is related to the input value, , as:
\begin
b_n &= \sum_^n \binom a_k E_ \\
\end,
with the reverse relationship (input from output) defined as:
\begin
a_n &= \sum_^n (-1)^ \binom b_k E_
\end,
where is the sequence of "up/down" numbers—also known as
secant or
tangent
In geometry, the tangent line (or simply tangent) to a plane curve at a given point is the straight line that "just touches" the curve at that point. Leibniz defined it as the line through a pair of infinitely close points on the curve. Mo ...
numbers.
Weisstein, Eric W.
"Boustrophedon Transform." Fro
MathWorld
-A Wolfram Web Resource. http://mathworld.wolfram.com/BoustrophedonTransform.html
The exponential generating function
The exponential generating function
In mathematics, a generating function is a way of encoding an infinite sequence of numbers () by treating them as the coefficients of a formal power series. This series is called the generating function of the sequence. Unlike an ordinary ser ...
of a sequence (''a''''n'') is defined by
: EG(a_n;x)=\sum _^ a_n \frac.
The exponential generating function of the boustrophedon transform (''b''''n'') is related to that of the original sequence (''a''''n'') by
: EG(b_n;x) = (\sec x + \tan x) \, EG(a_n;x).
The exponential generating function of the unit sequence is 1, so that of the up/down numbers is sec ''x'' + tan ''x''.
References
*
* {{cite book , author=Weisstein, Eric W. , title=CRC Concise Encyclopedia of Mathematics, Second Edition , publisher=Chapman & Hall/CRC , year=2002 , page=273 , isbn=1-58488-347-2
Integer sequences
Triangles of numbers
Permutations
Transforms