Skip to content

MotzkinAlgebra ​

Mn(δ)M_n(\delta): the planar diagrams whose blocks have size at most two — so points may also be left unpaired. Dimension M(2n)M(2n), the Motzkin numbers.

MotzkinAlgebra(n)the Motzkin algebra on nn strands
OscarEnumeratioDiagramAlgebra(:motzkin, n)
RookAlgebra(n)partial permutations — blocks of size ≤ 2, each pairing a top with a bottom
OscarEnumeratioDiagramAlgebra(:motzkin, n)
SymmetricGroupAlgebra(n)permutation diagrams only — dimension n!n!
OscarEnumeratioDiagramAlgebra(:motzkin, n)
Typed signatures
TypePackageApplies
(integer) -> diagram_algebradiagramalways

Domain: Diagram algebras

Details
  • Dimension M(2n)M(2n) = 2, 9, 51, 323 — the Motzkin numbers, which count the same paths with a flat step that Catalan counts without
  • Contains TemperleyLiebAlgebra: dropping the requirement that every point be paired is exactly what turns Catalan into Motzkin
  • RookAlgebra(n) counts ∑k(nk)2k!\sum_k \binom{n}{k}^2 k! — the partial permutations, i.e. the placements of non-attacking rooks
  • SymmetricGroupAlgebra(n) is the group algebra of SnS_n, the diagrams that are honest bijections

Examples

Basic #

M(6)M(6)

live ↗
InAlgebraDimension(MotzkinAlgebra(3))\mathrm{AlgebraDimension}(\mathrm{MotzkinAlgebra}(3))Out5151
live ↗
InAlgebraDimension(RookAlgebra(3))\mathrm{AlgebraDimension}(\mathrm{RookAlgebra}(3))Out3434

5!5!

live ↗
InAlgebraDimension(SymmetricGroupAlgebra(5))\mathrm{AlgebraDimension}(\mathrm{SymmetricGroupAlgebra}(5))Out120120
Properties #

a cup-cap is not a permutation

live ↗
InDiagram([[1,2],[−1,−2],[3,−3]])∈SymmetricGroupAlgebra(3)\mathrm{Diagram}(\bigl\lbrack\bigl\lbrack1, 2\bigr\rbrack, \bigl\lbrack-1, -2\bigr\rbrack, \bigl\lbrack3, -3\bigr\rbrack\bigr\rbrack)∈\mathrm{SymmetricGroupAlgebra}(3)OutFalse\mathrm{False}
About
Examples4
Checked againstOscar 3 agreeSageMath 2 agree
CrosswalkWikipediaMathWorldWikidataDLMFOEISOscar

Implementation

mappedoscarpackages/oracle/src/mappings.ts

Sage has no Motzkin algebra.

See also: TemperleyLiebAlgebra, PartitionAlgebra, Diagram