# Meander (mathematics)

In mathematics, a meander or closed meander is a self-avoiding closed curve which crosses a given line a number of times, meaning that it intersects the line while passing from one side to the other. Intuitively, a meander can be viewed as a meandering river with a straight road crossing the river over a number of bridges. The points where the line and the curve cross are therefore referred to as "bridges".

## Meander

Given a fixed line L in the Euclidean plane, a meander of order n is a self-avoiding closed curve in the plane that crosses the line at 2n points. Two meanders are equivalent if one meander can be continuously deformed into the other while maintaining its property of being a meander and leaving the order of the bridges on the road, in the order in which they are crossed, invariant.

### Examples

The single meander of order 1 intersects the line twice:
This meander intersects the line four times and thus has order 2:
There are two meanders of order 2. Flipping the image vertically produces the other.
Here are two non-equivalent meanders of order 3, each intersecting the line six times:

### Meandric numbers

The number of distinct meanders of order n is the meandric number M$_n$. The first fifteen meandric numbers are given below (sequence A005315 in the OEIS).
    M$_1$ = 1
    M$_2$ = 2
    M$_3$ = 8
    M$_4$ = 42
    M$_5$ = 262
    M$_6$ = 1828
    M$_7$ = 13820
    M$_8$ = 110954
    M$_9$ = 933458
    M$_{10}$ = 8152860
    M$_{11}$ = 73424650
    M$_{12}$ = 678390116
    M$_{13}$ = 6405031050
    M$_{14}$ = 61606881612
    M$_{15}$ = 602188541928

### Meandric permutations

A meandric permutation of order n is defined on the set {1, 2, ..., 2n} and is determined as follows:
* With the line oriented from left to right, each intersection of the meander is consecutively labelled with the integers, starting at 1.
* The curve is oriented upward at the intersection labelled 1.
* The cyclic permutation with no fixed points is obtained by following the oriented curve through the labelled intersection points.
In the diagram on the right, the order 4 meandric permutation is given by (1 8 5 4 3 6 7 2). This is a permutation written in cyclic notation and not to be confused with one-line notation.
If π is a meandric permutation, then π$^2$ consists of two cycles, one containing all the even symbols and the other all the odd symbols. Permutations with this property are called alternate permutations, since the symbols in the original permutation alternate between odd and even integers. However, not all alternate permutations are meandric because it may not be possible to draw them without introducing a self-intersection in the curve. For example, the order 3 alternate permutation, (1 4 3 6 5 2), is not meandric.

## Open meander

Given a fixed line L in the Euclidean plane, an open meander of order n is a non-self-intersecting curve in the plane that crosses the line at n points. Two open meanders are equivalent if one can be continuously deformed into the other while maintaining its property of being an open meander and leaving the order of the bridges on the road, in the order in which they are crossed, invariant.

### Examples

The open meander of order 1 intersects the line once:
The open meander of order 2 intersects the line twice:

### Open meandric numbers

The number of distinct open meanders of order n is the open meandric number m$_n$. The first fifteen open meandric numbers are given below (sequence A005316 in the OEIS).
    m$_1$ = 1
    m$_2$ = 1
    m$_3$ = 2
    m$_4$ = 3
    m$_5$ = 8
    m$_6$ = 14
    m$_7$ = 42
    m$_8$ = 81
    m$_9$ = 262
    m$_{10}$ = 538
    m$_{11}$ = 1828
    m$_{12}$ = 3926
    m$_{13}$ = 13820
    m$_{14}$ = 30694
    m$_{15}$ = 110954

## Semi-meander

Given a fixed oriented ray R (a closed half line) in the Euclidean plane, a semi-meander of order n is a non-self-intersecting closed curve in the plane that crosses the ray at n points. Two semi-meanders are equivalent if one can be continuously deformed into the other while maintaining its property of being a semi-meander and leaving the order of the bridges on the ray, in the order in which they are crossed, invariant.

### Examples

The semi-meander of order 1 intersects the ray once:
The semi-meander of order 2 intersects the ray twice:

### Semi-meandric numbers

The number of distinct semi-meanders of order n is the semi-meandric number M$_n$ (usually denoted with an overline instead of an underline). The first fifteen semi-meandric numbers are given below (sequence A000682 in the OEIS).
    M$_1$ = 1
    M$_2$ = 1
    M$_3$ = 2
    M$_4$ = 4
    M$_5$ = 10
    M$_6$ = 24
    M$_7$ = 66
    M$_8$ = 174
    M$_9$ = 504
    M$_{10}$ = 1406
    M$_{11}$ = 4210
    M$_{12}$ = 12198
    M$_{13}$ = 37378
    M$_{14}$ = 111278
    M$_{15}$ = 346846

## Properties of meandric numbers

There is an injective function from meandric to open meandric numbers:
    M$_n$ = m$_{2n−1}$
Each meandric number can be bounded by semi-meandric numbers:
    M$_n$ ≤ M$_n$ ≤ M$_{2n}$
For n > 1, meandric numbers are even:
    M$_n$ ≡ 0 (mod 2)