There are 134 pending statistics:
Identifier
St001910:
Dyck paths
⟶ ℤ
Values
No modified entries
Description
The height of the middle non-run of a Dyck path.
A non-run of a Dyck path is a pair of steps which are not both up or both down, that is, which either form a peak or a valley. The number of non-runs is odd. This statistic returns the height of the middle non-run.
A non-run of a Dyck path is a pair of steps which are not both up or both down, that is, which either form a peak or a valley. The number of non-runs is odd. This statistic returns the height of the middle non-run.
Code
def statistic(D):
H = D.heights()
T = [H[i+1] for i in range(len(D)-1) if D[i] != D[i+1]]
return T[(len(T)-1)//2]
Diff Code
def statistic(D): H = D.heights() T:= [H[i+1] for i in range(len(D)-1) if D[i] != D[i+1]] return T[(len(T)-1)//2]
Created
Aug 07, 2023 at 18:04 by Martin Rubey
Updated
Jul 31, 2026 at 12:25 by Nupur Jain
Identifier
St000082:
Binary trees
⟶ ℤ
Values
No modified entries
Description
The number of elements smaller than a binary tree in Tamari order.
References
[1] Chatel, Grégory, Pons, V. Counting smaller trees in the Tamari order MathSciNet:3091011
Code
@cached_function def _level_tuples(n): return [tuple(B.tamari_sorting_tuple()[0]) for B in BinaryTrees(n)] def statistic(tree): n = tree.node_number() if n <= 1: # C_0 = C_1 = 1; the tree is alone on its level return 1 target = tuple(tree.tamari_sorting_tuple()[0]) level = _level_tuples(n) return sum(1 for row in level if all(a <= b for a, b in zip(row, target)))
Diff Code
def statistic(tree): return@cached_function def _level_tuples(n): return [tuple(B.tamari_sorting_tuple()[0]) for B in BinaryTrees(n)] def statistic(tree): n = tree.node_number() if n <= 1: # C_0 = C_1 = 1; the tree is alone on its level return 1 target = tuplen(tree.tamari_smaller())orting_tuple()[0]) level = _level_tuples(n) return sum(1 for row in level if all(a <= b for a, b in zip(row, target)))
Created
Jun 13, 2013 at 09:55 by Viviane Pons
Updated
Jul 29, 2026 at 13:07 by Nupur Jain
Identifier
St000132:
Binary trees
⟶ ℤ
Values
No modified entries
Description
The number of occurrences of the contiguous pattern [[.,.],[.,[[.,.],.]]] in a binary tree.
oeis:A159773 counts binary trees avoiding this pattern.
oeis:A159773 counts binary trees avoiding this pattern.
Diff Description
The number of occurrences of the contiguous pattern {{{[[.,.],[.,[[.,.],.]]]}}} in a binary tree.
[[oeis:A159773]] counts binary trees avoiding this pattern.
[[oeis:A159773]] counts binary trees avoiding this pattern.
References
[1] Rowland, E. S. Pattern avoidance in binary trees MathSciNet:2645188 arXiv:0809.0488
Code
_PATTERN = BinaryTree('[[.,.],[.,[[.,.],.]]]')
def _occ(t, p):
# A leaf '.' in the pattern is a wildcard; internal nodes must match
# the left/right branching exactly and contiguously.
if p.is_empty():
return True
if t.is_empty():
return False
return _occ(t[0], p[0]) and _occ(t[1], p[1])
def statistic(t):
# Count the nodes of t at which the pattern sits contiguously.
if t.is_empty():
return 0
return (1 if _occ(t, _PATTERN) else 0) + statistic(t[0]) + statistic(t[1])
# (* in Mathematica *)
# tree = {{{{}, {}}, {{}, {}}}, {{{}, {}}, {{}, {}}}};
# Count[tree, {{{___}, {___}}, {{___}, {{{___}, {___}}, {___}}}}, {0, Infinity}]
Diff Code
#CodeLanguage:_PATTERN = BinaryTree('[[.,.],[.,[[.,.],.]]]') def _occ(t, p): # A leaf '.' in the pattern is a wildcard; internal nodes must match # the left/right branching exactly and contiguously. if p.is_empty(): return True if t.is_empty(): return False return _occ(t[0], p[0]) and _occ(t[1], p[1]) def statistic(t): # Count the nodes of t at which the pattern sits contiguously. if t.is_empty(): return 0 return (1 if _occ(t, _PATTERN) else 0) + statistic(t[0]) + statistic(t[1]) # (* in Mathematica*) # tree = {{{{}, {}}, {{}, {}}}, {{{}, {}}, {{}, {}}}}; # Count[tree, {{{___}, {___}}, {{___}, {{{___}, {___}}, {___}}}}, {0, Infinity}]
Created
Jun 18, 2013 at 19:02 by Eric Rowland
Updated
Jul 24, 2026 at 19:50 by Nupur Jain
Identifier
St000131:
Binary trees
⟶ ℤ
Values
No modified entries
Description
The number of occurrences of the contiguous pattern [.,[[[[.,.],.],.],.]] in a binary tree.
oeis:A159772 counts binary trees avoiding this pattern.
oeis:A159772 counts binary trees avoiding this pattern.
Diff Description
The number of occurrences of the contiguous pattern {{{[.,[[[[.,.],.],.],.]]}}} in a binary tree.
[[oeis:A159772]] counts binary trees avoiding this pattern.
[[oeis:A159772]] counts binary trees avoiding this pattern.
References
[1] Rowland, E. S. Pattern avoidance in binary trees MathSciNet:2645188 arXiv:0809.0488
Code
_PATTERN = BinaryTree('[.,[[[[.,.],.],.],.]]')
def _occ(t, p):
# A leaf '.' in the pattern is a wildcard; internal nodes must match
# the left/right branching exactly and contiguously.
if p.is_empty():
return True
if t.is_empty():
return False
return _occ(t[0], p[0]) and _occ(t[1], p[1])
def statistic(t):
# Count the nodes of t at which the pattern sits contiguously.
if t.is_empty():
return 0
return (1 if _occ(t, _PATTERN) else 0) + statistic(t[0]) + statistic(t[1])
# (* in Mathematica *)
# tree = {{{{}, {}}, {{}, {}}}, {{{}, {}}, {{}, {}}}};
# Count[tree, {{___}, {{{{{___}, {___}}, {___}}, {___}}, {___}}}, {0, Infinity}]
Diff Code
_PATTERN = BinaryTree('[.,[[[[.,.],.],.],.]]')
def _occ(t, p):
# A leaf '.' in the pattern is a wildcard; internal nodes must match
# the left/right branching exactly and contiguously.
if p.is_empty():
return True
if t.is_empty():
return False
return _occ(t[0], p[0]) and _occ(t[1], p[1])
def statistic(t):
# Count the nodes of t at which the pattern sits contiguously.
if t.is_empty():
return 0
return (1 if _occ(t, _PATTERN) else 0) + statistic(t[0]) + statistic(t[1])
# (* in Mathematica *)
# tree = {{{{}, {}}, {{}, {}}}, {{{}, {}}, {{}, {}}}};
# Count[tree, {{___}, {{{{{___}, {___}}, {___}}, {___}}, {___}}}, {0, Infinity}]
Created
Jun 18, 2013 at 18:58 by Eric Rowland
Updated
Jul 24, 2026 at 19:49 by Nupur Jain
Identifier
St000130:
Binary trees
⟶ ℤ
Values
No modified entries
Description
The number of occurrences of the contiguous pattern [.,[[.,.],[[.,.],.]]] in a binary tree.
oeis:A159771 counts binary trees avoiding this pattern.
oeis:A159771 counts binary trees avoiding this pattern.
Diff Description
The number of occurrences of the contiguous pattern {{{[.,[[.,.],[[.,.],.]]]}}} in a binary tree.
[[oeis:A159771]] counts binary trees avoiding this pattern.
[[oeis:A159771]] counts binary trees avoiding this pattern.
References
[1] Rowland, E. S. Pattern avoidance in binary trees MathSciNet:2645188 arXiv:0809.0488
Code
_PATTERN = BinaryTree('[.,[[.,.],[[.,.],.]]]')
def _occ(t, p):
# A leaf '.' in the pattern is a wildcard; internal nodes must match
# the left/right branching exactly and contiguously.
if p.is_empty():
return True
if t.is_empty():
return False
return _occ(t[0], p[0]) and _occ(t[1], p[1])
def statistic(t):
# Count the nodes of t at which the pattern sits contiguously.
if t.is_empty():
return 0
return (1 if _occ(t, _PATTERN) else 0) + statistic(t[0]) + statistic(t[1])
# (* in Mathematica *)
# tree = {{{{}, {}}, {{}, {}}}, {{{}, {}}, {{}, {}}}};
# Count[tree, {{___}, {{{___}, {___}}, {{{___}, {___}}, {___}}}}, {0, Infinity}]
Diff Code
_PATTERN = BinaryTree('[.,[[.,.],[[.,.],.]]]')
def _occ(t, p):
# A leaf '.' in the pattern is a wildcard; internal nodes must match
# the left/right branching exactly and contiguously.
if p.is_empty():
return True
if t.is_empty():
return False
return _occ(t[0], p[0]) and _occ(t[1], p[1])
def statistic(t):
# Count the nodes of t at which the pattern sits contiguously.
if t.is_empty():
return 0
return (1 if _occ(t, _PATTERN) else 0) + statistic(t[0]) + statistic(t[1])
# (* in Mathematica *)
# tree = {{{{}, {}}, {{}, {}}}, {{{}, {}}, {{}, {}}}};
# Count[tree, {{___}, {{{___}, {___}}, {{{___}, {___}}, {___}}}}, {0, Infinity}]
Created
Jun 18, 2013 at 18:57 by Eric Rowland
Updated
Jul 24, 2026 at 19:47 by Nupur Jain
Identifier
St000129:
Binary trees
⟶ ℤ
Values
No modified entries
Description
The number of occurrences of the contiguous pattern [.,[.,[[[.,.],.],.]]] in a binary tree.
oeis:A159770 counts binary trees avoiding this pattern.
oeis:A159770 counts binary trees avoiding this pattern.
Diff Description
The number of occurrences of the contiguous pattern {{{[.,[.,[[[.,.],.],.]]]}}} in a binary tree.
[[oeis:A159770]] counts binary trees avoiding this pattern.
[[oeis:A159770]] counts binary trees avoiding this pattern.
References
[1] Rowland, E. S. Pattern avoidance in binary trees MathSciNet:2645188 arXiv:0809.0488
Code
_PATTERN = BinaryTree('[.,[.,[[[.,.],.],.]]]')
def _occ(t, p):
# A leaf '.' in the pattern is a wildcard; internal nodes must match
# the left/right branching exactly and contiguously.
if p.is_empty():
return True
if t.is_empty():
return False
return _occ(t[0], p[0]) and _occ(t[1], p[1])
def statistic(t):
# Count the nodes of t at which the pattern sits contiguously.
if t.is_empty():
return 0
return (1 if _occ(t, _PATTERN) else 0) + statistic(t[0]) + statistic(t[1])
# (* in Mathematica *)
# tree = {{{{}, {}}, {{}, {}}}, {{{}, {}}, {{}, {}}}};
# Count[tree, {{___}, {{___}, {{{{___}, {___}}, {___}}, {___}}}}, {0, Infinity}]
Diff Code
_PATTERN = BinaryTree('[.,[.,[[[.,.],.],.]]]')
def _occ(t, p):
# A leaf '.' in the pattern is a wildcard; internal nodes must match
# the left/right branching exactly and contiguously.
if p.is_empty():
return True
if t.is_empty():
return False
return _occ(t[0], p[0]) and _occ(t[1], p[1])
def statistic(t):
# Count the nodes of t at which the pattern sits contiguously.
if t.is_empty():
return 0
return (1 if _occ(t, _PATTERN) else 0) + statistic(t[0]) + statistic(t[1])
# (* in Mathematica *)
# tree = {{{{}, {}}, {{}, {}}}, {{{}, {}}, {{}, {}}}};
# Count[tree, {{___}, {{___}, {{{{___}, {___}}, {___}}, {___}}}}, {0, Infinity}]
Created
Jun 18, 2013 at 18:55 by Eric Rowland
Updated
Jul 24, 2026 at 19:40 by Nupur Jain
Identifier
St000128:
Binary trees
⟶ ℤ
Values
No modified entries
Description
The number of occurrences of the contiguous pattern [.,[.,[[.,[.,.]],.]]] in a binary tree.
oeis:A159769 counts binary trees avoiding this pattern.
oeis:A159769 counts binary trees avoiding this pattern.
Diff Description
The number of occurrences of the contiguous pattern {{{[.,[.,[[.,[.,.]],.]]]}}} in a binary tree.
[[oeis:A159769]] counts binary trees avoiding this pattern.
[[oeis:A159769]] counts binary trees avoiding this pattern.
References
[1] Rowland, E. S. Pattern avoidance in binary trees MathSciNet:2645188 arXiv:0809.0488
Code
_PATTERN = BinaryTree('[.,[.,[[.,[.,.]],.]]]')
def _occ(t, p):
# A leaf '.' in the pattern is a wildcard; internal nodes must match
# the left/right branching exactly and contiguously.
if p.is_empty():
return True
if t.is_empty():
return False
return _occ(t[0], p[0]) and _occ(t[1], p[1])
def statistic(t):
# Count the nodes of t at which the pattern sits contiguously.
if t.is_empty():
return 0
return (1 if _occ(t, _PATTERN) else 0) + statistic(t[0]) + statistic(t[1])
# --- original FindStat Code (Mathematica), commented out ---
# (* in Mathematica *)
# tree = {{{{}, {}}, {{}, {}}}, {{{}, {}}, {{}, {}}}};
# Count[tree, {{___}, {{___}, {{{___}, {{___}, {___}}}, {___}}}}, {0, Infinity}]
Diff Code
_PATTERN = BinaryTree('[.,[.,[[.,[.,.]],.]]]')
def _occ(t, p):
# A leaf '.' in the pattern is a wildcard; internal nodes must match
# the left/right branching exactly and contiguously.
if p.is_empty():
return True
if t.is_empty():
return False
return _occ(t[0], p[0]) and _occ(t[1], p[1])
def statistic(t):
# Count the nodes of t at which the pattern sits contiguously.
if t.is_empty():
return 0
return (1 if _occ(t, _PATTERN) else 0) + statistic(t[0]) + statistic(t[1])
# --- original FindStat Code (Mathematica), commented out ---
# (* in Mathematica *)
# tree = {{{{}, {}}, {{}, {}}}, {{{}, {}}, {{}, {}}}};
# Count[tree, {{___}, {{___}, {{{___}, {{___}, {___}}}, {___}}}}, {0, Infinity}]
Created
Jun 18, 2013 at 18:53 by Eric Rowland
Updated
Jul 24, 2026 at 19:38 by Nupur Jain
Identifier
St000127:
Binary trees
⟶ ℤ
Values
No modified entries
Description
The number of occurrences of the contiguous pattern [.,[.,[.,[[.,.],.]]]] in a binary tree.
oeis:A159768 counts binary trees avoiding this pattern.
oeis:A159768 counts binary trees avoiding this pattern.
Diff Description
The number of occurrences of the contiguous pattern {{{[.,[.,[.,[[.,.],.]]]]}}} in a binary tree.
[[oeis:A159768]] counts binary trees avoiding this pattern.
[[oeis:A159768]] counts binary trees avoiding this pattern.
References
[1] Rowland, E. S. Pattern avoidance in binary trees MathSciNet:2645188 arXiv:0809.0488
Code
_PATTERN = BinaryTree('[.,[.,[.,[[.,.],.]]]]')
def _occ(t, p):
# A leaf '.' in the pattern is a wildcard; internal nodes must match
# the left/right branching exactly and contiguously.
if p.is_empty():
return True
if t.is_empty():
return False
return _occ(t[0], p[0]) and _occ(t[1], p[1])
def statistic(t):
# Count the nodes of t at which the pattern sits contiguously.
if t.is_empty():
return 0
return (1 if _occ(t, _PATTERN) else 0) + statistic(t[0]) + statistic(t[1])
# --- original FindStat Code (Mathematica), commented out ---
# (* in Mathematica *)
# tree = {{{{}, {}}, {{}, {}}}, {{{}, {}}, {{}, {}}}};
# Count[tree, {{___}, {{___}, {{___}, {{{___}, {___}}, {___}}}}}, {0, Infinity}]
Diff Code
_PATTERN = BinaryTree('[.,[.,[.,[[.,.],.]]]]')
def _occ(t, p):
# A leaf '.' in the pattern is a wildcard; internal nodes must match
# the left/right branching exactly and contiguously.
if p.is_empty():
return True
if t.is_empty():
return False
return _occ(t[0], p[0]) and _occ(t[1], p[1])
def statistic(t):
# Count the nodes of t at which the pattern sits contiguously.
if t.is_empty():
return 0
return (1 if _occ(t, _PATTERN) else 0) + statistic(t[0]) + statistic(t[1])
# --- original FindStat Code (Mathematica), commented out ---
# (* in Mathematica *)
# tree = {{{{}, {}}, {{}, {}}}, {{{}, {}}, {{}, {}}}};
# Count[tree, {{___}, {{___}, {{___}, {{{___}, {___}}, {___}}}}}, {0, Infinity}]
Created
Jun 18, 2013 at 18:50 by Eric Rowland
Updated
Jul 24, 2026 at 19:37 by Nupur Jain
Identifier
St000126:
Binary trees
⟶ ℤ
Values
No modified entries
Description
The number of occurrences of the contiguous pattern [.,[.,[.,[.,[.,.]]]]] in a binary tree.
oeis:A036766 counts binary trees avoiding this pattern.
oeis:A036766 counts binary trees avoiding this pattern.
Diff Description
The number of occurrences of the contiguous pattern {{{[.,[.,[.,[.,[.,.]]]]]}}} in a binary tree.
[[oeis:A036766]] counts binary trees avoiding this pattern.
[[oeis:A036766]] counts binary trees avoiding this pattern.
References
[1] Rowland, E. S. Pattern avoidance in binary trees MathSciNet:2645188 arXiv:0809.0488
Code
_PATTERN = BinaryTree('[.,[.,[.,[.,[.,.]]]]]')
def _occ(t, p):
# A leaf '.' in the pattern is a wildcard; internal nodes must match
# the left/right branching exactly and contiguously.
if p.is_empty():
return True
if t.is_empty():
return False
return _occ(t[0], p[0]) and _occ(t[1], p[1])
def statistic(t):
# Count the nodes of t at which the pattern sits contiguously.
if t.is_empty():
return 0
return (1 if _occ(t, _PATTERN) else 0) + statistic(t[0]) + statistic(t[1])
# (* in Mathematica *)
# tree = {{{{}, {}}, {{}, {}}}, {{{}, {}}, {{}, {}}}};
# Count[tree, {{___}, {{___}, {{___}, {{___}, {{___}, {___}}}}}}, {0, Infinity}]
Diff Code
_PATTERN = BinaryTree('[.,[.,[.,[.,[.,.]]]]]')
def _occ(t, p):
# A leaf '.' in the pattern is a wildcard; internal nodes must match
# the left/right branching exactly and contiguously.
if p.is_empty():
return True
if t.is_empty():
return False
return _occ(t[0], p[0]) and _occ(t[1], p[1])
def statistic(t):
# Count the nodes of t at which the pattern sits contiguously.
if t.is_empty():
return 0
return (1 if _occ(t, _PATTERN) else 0) + statistic(t[0]) + statistic(t[1])
# (* in Mathematica *)
# tree = {{{{}, {}}, {{}, {}}}, {{{}, {}}, {{}, {}}}};
# Count[tree, {{___}, {{___}, {{___}, {{___}, {{___}, {___}}}}}}, {0, Infinity}]
Created
Jun 18, 2013 at 18:45 by Eric Rowland
Updated
Jul 24, 2026 at 19:36 by Nupur Jain
Identifier
St000125:
Binary trees
⟶ ℤ
Values
No modified entries
Description
The number of occurrences of the contiguous pattern [.,[[[.,.],.],.]] in a binary tree.
oeis:A005773 counts binary trees avoiding this pattern.
oeis:A005773 counts binary trees avoiding this pattern.
Diff Description
The number of occurrences of the contiguous pattern {{{[.,[[[.,.],.],.]]}}} in a binary tree.
[[oeis:A005773]] counts binary trees avoiding this pattern.
[[oeis:A005773]] counts binary trees avoiding this pattern.
References
[1] Rowland, E. S. Pattern avoidance in binary trees MathSciNet:2645188 arXiv:0809.0488
Code
_PATTERN = BinaryTree('[.,[[[.,.],.],.]]')
def _occ(t, p):
# A leaf '.' in the pattern is a wildcard; internal nodes must match
# the left/right branching exactly and contiguously.
if p.is_empty():
return True
if t.is_empty():
return False
return _occ(t[0], p[0]) and _occ(t[1], p[1])
def statistic(t):
# Count the nodes of t at which the pattern sits contiguously.
if t.is_empty():
return 0
return (1 if _occ(t, _PATTERN) else 0) + statistic(t[0]) + statistic(t[1])
# (* in Mathematica *)
# tree = {{{{}, {}}, {{}, {}}}, {{{}, {}}, {{}, {}}}};
# Count[tree, {{___}, {{{{___}, {___}}, {___}}, {___}}}, {0, Infinity}]
Diff Code
_PATTERN = BinaryTree('[.,[[[.,.],.],.]]')
def _occ(t, p):
# A leaf '.' in the pattern is a wildcard; internal nodes must match
# the left/right branching exactly and contiguously.
if p.is_empty():
return True
if t.is_empty():
return False
return _occ(t[0], p[0]) and _occ(t[1], p[1])
def statistic(t):
# Count the nodes of t at which the pattern sits contiguously.
if t.is_empty():
return 0
return (1 if _occ(t, _PATTERN) else 0) + statistic(t[0]) + statistic(t[1])
# (* in Mathematica *)
# tree = {{{{}, {}}, {{}, {}}}, {{{}, {}}, {{}, {}}}};
# Count[tree, {{___}, {{{{___}, {___}}, {___}}, {___}}}, {0, Infinity}]
Created
Jun 18, 2013 at 18:14 by Eric Rowland
Updated
Jul 24, 2026 at 19:35 by Nupur Jain
Identifier
St000122:
Binary trees
⟶ ℤ
Values
No modified entries
Description
The number of occurrences of the contiguous pattern [.,[.,[[.,.],.]]] in a binary tree.
oeis:A086581 counts binary trees avoiding this pattern.
oeis:A086581 counts binary trees avoiding this pattern.
Diff Description
The number of occurrences of the contiguous pattern {{{[.,[.,[[.,.],.]]]}}} in a binary tree.
[[oeis:A086581]] counts binary trees avoiding this pattern.
[[oeis:A086581]] counts binary trees avoiding this pattern.
References
[1] Rowland, E. S. Pattern avoidance in binary trees MathSciNet:2645188 arXiv:0809.0488
Code
_PATTERN = BinaryTree('[.,[.,[[.,.],.]]]')
def _occ(t, p):
# A leaf '.' in the pattern is a wildcard; internal nodes must match
# the left/right branching exactly and contiguously.
if p.is_empty():
return True
if t.is_empty():
return False
return _occ(t[0], p[0]) and _occ(t[1], p[1])
def statistic(t):
# Count the nodes of t at which the pattern sits contiguously.
if t.is_empty():
return 0
return (1 if _occ(t, _PATTERN) else 0) + statistic(t[0]) + statistic(t[1])
# (* in Mathematica *)
# tree = {{{{}, {}}, {{}, {}}}, {{{}, {}}, {{}, {}}}};
# Count[tree, {{___}, {{___}, {{{___}, {___}}, {___}}}}, {0, Infinity}]
Diff Code
_PATTERN = BinaryTree('[.,[.,[[.,.],.]]]')
def _occ(t, p):
# A leaf '.' in the pattern is a wildcard; internal nodes must match
# the left/right branching exactly and contiguously.
if p.is_empty():
return True
if t.is_empty():
return False
return _occ(t[0], p[0]) and _occ(t[1], p[1])
def statistic(t):
# Count the nodes of t at which the pattern sits contiguously.
if t.is_empty():
return 0
return (1 if _occ(t, _PATTERN) else 0) + statistic(t[0]) + statistic(t[1])
# (* in Mathematica *)
# tree = {{{{}, {}}, {{}, {}}}, {{{}, {}}, {{}, {}}}};
# Count[tree, {{___}, {{___}, {{{___}, {___}}, {___}}}}, {0, Infinity}]
Created
Jun 18, 2013 at 17:54 by Eric Rowland
Updated
Jul 24, 2026 at 19:34 by Nupur Jain
Identifier
St000121:
Binary trees
⟶ ℤ
Values
No modified entries
Description
The number of occurrences of the contiguous pattern [.,[.,[.,[.,.]]]] in a binary tree.
oeis:A036765 counts binary trees avoiding this pattern.
oeis:A036765 counts binary trees avoiding this pattern.
Diff Description
The number of occurrences of the contiguous pattern {{{[.,[.,[.,[.,.]]]]}}} in a binary tree.
[[oeis:A036765]] counts binary trees avoiding this pattern.
[[oeis:A036765]] counts binary trees avoiding this pattern.
References
[1] Rowland, E. S. Pattern avoidance in binary trees MathSciNet:2645188 arXiv:0809.0488
Code
_PATTERN = BinaryTree('[.,[.,[.,[.,.]]]]')
def _occ(t, p):
# A leaf '.' in the pattern is a wildcard; internal nodes must match
# the left/right branching exactly and contiguously.
if p.is_empty():
return True
if t.is_empty():
return False
return _occ(t[0], p[0]) and _occ(t[1], p[1])
def statistic(t):
# Count the nodes of t at which the pattern sits contiguously.
if t.is_empty():
return 0
return (1 if _occ(t, _PATTERN) else 0) + statistic(t[0]) + statistic(t[1])
# (* in Mathematica *)
# tree = {{{{}, {}}, {{}, {}}}, {{{}, {}}, {{}, {}}}};
# Count[tree, {{___}, {{___}, {{___}, {{___}, {___}}}}}, {0, Infinity}]
Diff Code
_PATTERN = BinaryTree('[.,[.,[.,[.,.]]]]')
def _occ(t, p):
# A leaf '.' in the pattern is a wildcard; internal nodes must match
# the left/right branching exactly and contiguously.
if p.is_empty():
return True
if t.is_empty():
return False
return _occ(t[0], p[0]) and _occ(t[1], p[1])
def statistic(t):
# Count the nodes of t at which the pattern sits contiguously.
if t.is_empty():
return 0
return (1 if _occ(t, _PATTERN) else 0) + statistic(t[0]) + statistic(t[1])
# (* in Mathematica *)
# tree = {{{{}, {}}, {{}, {}}}, {{{}, {}}, {{}, {}}}};
# Count[tree, {{___}, {{___}, {{___}, {{___}, {___}}}}}, {0, Infinity}]
Created
Jun 18, 2013 at 17:47 by Eric Rowland
Updated
Jul 24, 2026 at 19:31 by Nupur Jain
Identifier
St000118:
Binary trees
⟶ ℤ
Values
No modified entries
Description
The number of occurrences of the contiguous pattern [.,[.,[.,.]]] in a binary tree.
oeis:A001006 counts binary trees avoiding this pattern.
oeis:A001006 counts binary trees avoiding this pattern.
Diff Description
The number of occurrences of the contiguous pattern {{{[.,[.,[.,.]]]}}} in a binary tree.
[[oeis:A001006]] counts binary trees avoiding this pattern.
[[oeis:A001006]] counts binary trees avoiding this pattern.
References
[1] Donaghey, R., Shapiro, L. W. Motzkin numbers MathSciNet:0505544
[2] Rowland, E. S. Pattern avoidance in binary trees MathSciNet:2645188 arXiv:0809.0488
[2] Rowland, E. S. Pattern avoidance in binary trees MathSciNet:2645188 arXiv:0809.0488
Code
_PATTERN = BinaryTree('[.,[.,[.,.]]]')
def _occ(t, p):
# A leaf '.' in the pattern is a wildcard; internal nodes must match
# the left/right branching exactly and contiguously.
if p.is_empty():
return True
if t.is_empty():
return False
return _occ(t[0], p[0]) and _occ(t[1], p[1])
def statistic(t):
# Count the nodes of t at which the pattern sits contiguously.
if t.is_empty():
return 0
return (1 if _occ(t, _PATTERN) else 0) + statistic(t[0]) + statistic(t[1])
# (* in Mathematica *)
# tree = {{{{}, {}}, {{}, {}}}, {{{}, {}}, {{}, {}}}};
# Count[tree, {{___}, {{___}, {{___}, {___}}}}, {0, Infinity}]
Diff Code
_PATTERN = BinaryTree('[.,[.,[.,.]]]')
def _occ(t, p):
# A leaf '.' in the pattern is a wildcard; internal nodes must match
# the left/right branching exactly and contiguously.
if p.is_empty():
return True
if t.is_empty():
return False
return _occ(t[0], p[0]) and _occ(t[1], p[1])
def statistic(t):
# Count the nodes of t at which the pattern sits contiguously.
if t.is_empty():
return 0
return (1 if _occ(t, _PATTERN) else 0) + statistic(t[0]) + statistic(t[1])
# (* in Mathematica *)
# tree = {{{{}, {}}, {{}, {}}}, {{{}, {}}, {{}, {}}}};
# Count[tree, {{___}, {{___}, {{___}, {___}}}}, {0, Infinity}]
Created
Jun 18, 2013 at 16:59 by Eric Rowland
Updated
Jul 24, 2026 at 19:30 by Nupur Jain
Identifier
St001144:
Finite Cartan types
⟶ ℤ
Values
No modified entries
Description
The largest mu-coefficient of the Kazhdan Lusztig polynomial occurring in the Weyl group of given type.
The $\mu$-coefficient of the Kazhdan-Lusztig polynomial $P_{u,w}(q)$ is the coefficient of $q^{\frac{l(w)-l(u)-1}{2}}$ in $P_{u,w}(q)$.
The $\mu$-coefficient of the Kazhdan-Lusztig polynomial $P_{u,w}(q)$ is the coefficient of $q^{\frac{l(w)-l(u)-1}{2}}$ in $P_{u,w}(q)$.
References
[1] Warrington, G. S. Equivalence classes for the µ-coefficient of Kazhdan-Lusztig polynomials in $S_n$ MathSciNet:2859901
Code
def statistic(C):
W = CoxeterGroup(C, implementation='coxeter3')
r = []
for u in W:
U = (W(v) for v in W.bruhat_interval(u, W.long_element()))
next(U)
for v in U:
ldiff = v.length()-u.length()-1
if is_even(ldiff):
p = W.kazhdan_lusztig_polynomial(u, v)
r.append(p[ldiff//2])
return max(r)
Diff Code
def statistic(C): W = CoxeterGroup(C, implementation='coxeter3') r = [] for u in W:U = (W(v) for v in W.bruhat_interval(u, W.long_element())) next(U) for v in U: ldiff = v.length()-u.length()-1 if is_even(ldiff): p = W.kazhdan_lusztig_polynomial(u, v) r.append(p[ldiff//2]) return max(r)
Created
Apr 18, 2018 at 22:49 by Martin Rubey
Updated
Jul 20, 2026 at 16:58 by Nupur Jain
Identifier
St001143:
Finite Cartan types
⟶ ℤ
Values
No modified entries
Description
The number of pairs in the Weyl group of given type with mu-coefficient of the Kazhdan Lusztig polynomial being non-zero.
The $\mu$-coefficient of the Kazhdan-Lusztig polynomial $P_{u,w}(q)$ is the coefficient of $q^{\frac{l(w)-l(u)-1}{2}}$ in $P_{u,w}(q)$.
The $\mu$-coefficient of the Kazhdan-Lusztig polynomial $P_{u,w}(q)$ is the coefficient of $q^{\frac{l(w)-l(u)-1}{2}}$ in $P_{u,w}(q)$.
Diff Description
The number of pairs in the Weyl group of given type with mu-coefficient of the Kazhdan Lusztig polynomial being non-zero.
The \mu-coefficient of the Kazhdan-Lusztig polynomial P_{u,w}(q) is the coefficient of q^{\frac{l(w)-l(u)-1}{2}} in P_{u,w}(q).
The \mu-coefficient of the Kazhdan-Lusztig polynomial P_{u,w}(q) is the coefficient of q^{\frac{l(w)-l(u)-1}{2}} in P_{u,w}(q).
References
[1] Vogan, D. Number of pairs of permutation in $S_n$ whose µ-coefficient (of their Kazhdan Lusztig polynomial) is non-zero MathOverflow:298028
[2] Warrington, G. S. Equivalence classes for the µ-coefficient of Kazhdan-Lusztig polynomials in $S_n$ MathSciNet:2859901
[2] Warrington, G. S. Equivalence classes for the µ-coefficient of Kazhdan-Lusztig polynomials in $S_n$ MathSciNet:2859901
Code
def statistic(C):
"""
sage: statistic(CartanType(["A", 4]))
482
"""
W = CoxeterGroup(C, implementation='coxeter3')
r = 0
for u in W:
U = (W(v) for v in W.bruhat_interval(u, W.long_element()))
next(U)
for v in U:
ldiff = v.length()-u.length()-1
if is_even(ldiff):
p = W.kazhdan_lusztig_polynomial(u, v)
if p[ldiff//2] != 0:
r += 1
return r
Diff Code
def statistic(C): """ sage: statistic(CartanType(["A", 4])) 482 """ W = CoxeterGroup(C, implementation='coxeter3') r = 0 for u in W:U = (W(v) for v in W.bruhat_interval(u, W.long_element()))next(U)for v in U: ldiff = v.length()-u.length()-1 if is_even(ldiff):p = W.kazhdan_lusztig_polynomial(u, v)if p[ldiff//2] != 0: r += 1 return r
Created
Apr 18, 2018 at 22:32 by Martin Rubey
Updated
Jul 20, 2026 at 16:57 by Nupur Jain
Values
No modified entries
Description
The proper pathwidth of a graph.
The proper pathwidth $\operatorname{ppw}(G)$ was introduced in [1] as the minimum width of a proper-path-decomposition. Barioli et al. [2] showed that if $G$ has at least one edge, then $\operatorname{ppw}(G)$ is the minimum $k$ for which $G$ is a minor of the Cartesian product $K_k \square P$ of a complete graph on $k$ vertices with a path; and further that $\operatorname{ppw}(G)$ is the minor monotone floor $\lfloor \operatorname{Z} \rfloor(G) := \min\{\operatorname{Z}(H) \mid G \preceq H\}$ of the zero forcing number $\operatorname{Z}(G)$. It can be shown [3, Corollary 9.130] that only the spanning supergraphs need to be considered for $H$ in this definition, i.e. $\lfloor \operatorname{Z} \rfloor(G) = \min\{\operatorname{Z}(H) \mid G \le H,\; V(H) = V(G)\}$.
The minimum degree $\delta$, treewidth $\operatorname{tw}$, and pathwidth $\operatorname{pw}$ satisfy
$$\delta \le \operatorname{tw} \le \operatorname{pw} \le \operatorname{ppw} = \lfloor \operatorname{Z} \rfloor \le \operatorname{pw} + 1.$$
Note that [4] uses a different notion of proper pathwidth, which is equal to bandwidth.
The proper pathwidth $\operatorname{ppw}(G)$ was introduced in [1] as the minimum width of a proper-path-decomposition. Barioli et al. [2] showed that if $G$ has at least one edge, then $\operatorname{ppw}(G)$ is the minimum $k$ for which $G$ is a minor of the Cartesian product $K_k \square P$ of a complete graph on $k$ vertices with a path; and further that $\operatorname{ppw}(G)$ is the minor monotone floor $\lfloor \operatorname{Z} \rfloor(G) := \min\{\operatorname{Z}(H) \mid G \preceq H\}$ of the zero forcing number $\operatorname{Z}(G)$. It can be shown [3, Corollary 9.130] that only the spanning supergraphs need to be considered for $H$ in this definition, i.e. $\lfloor \operatorname{Z} \rfloor(G) = \min\{\operatorname{Z}(H) \mid G \le H,\; V(H) = V(G)\}$.
The minimum degree $\delta$, treewidth $\operatorname{tw}$, and pathwidth $\operatorname{pw}$ satisfy
$$\delta \le \operatorname{tw} \le \operatorname{pw} \le \operatorname{ppw} = \lfloor \operatorname{Z} \rfloor \le \operatorname{pw} + 1.$$
Note that [4] uses a different notion of proper pathwidth, which is equal to bandwidth.
References
[1] Takahashi, A., Ueno, S., Kajitani, Y. Minimal acyclic forbidden minors for the family of graphs with bounded path-width MathSciNet:1273610
[2] Barioli, F., Barrett, W., Fallat, S. M., Hall, H. T., Hogben, L., Shader, B., van den Driessche, P., van der Holst, H. Parameters related to tree-width, zero forcing, and maximum nullity of a graph MathSciNet:3010007
[3] Hogben, L., Lin, J. C.-H., Shader, B. L. Inverse problems and zero forcing for graphs MathSciNet:4478249
[4] Kaplan, H., Shamir, R. Pathwidth, bandwidth, and completion problems to proper interval graphs with small cliques MathSciNet:1390027
[2] Barioli, F., Barrett, W., Fallat, S. M., Hall, H. T., Hogben, L., Shader, B., van den Driessche, P., van der Holst, H. Parameters related to tree-width, zero forcing, and maximum nullity of a graph MathSciNet:3010007
[3] Hogben, L., Lin, J. C.-H., Shader, B. L. Inverse problems and zero forcing for graphs MathSciNet:4478249
[4] Kaplan, H., Shamir, R. Pathwidth, bandwidth, and completion problems to proper interval graphs with small cliques MathSciNet:1390027
Code
# code for St000482 taken from https://findstat.org/StatisticsDatabase/St00482/
import random
def Z_game(g,B,ban=[]):
"""
Input:
g: a simple graph
B: a set of initial blue vertices
ban: a set of banned vertices
Output:
return the derived set under the regular CCR-Z.
Note: vertices in ban cannot make a force, but are still white neighbors if white.
"""
V=g.vertices();
white_neighbors={}; #a dictionary with the structure {v: list of white neighbors}
white_numbers={}; #a dictionary with the structure {v: number of white neighbors}
for v in V:
nbh=g.neighbors(v);
for b in B:
try:
nbh.remove(b);
except ValueError:
pass;
white_neighbors[v]=nbh;
white_numbers[v]=len(nbh);
queue=copy(B); #queue stores list of vertices that can possibly make a force
derived_set=copy(B); #derived_set stores the set of blue vertices
whole_loop=True;
while whole_loop: #keep searching if queue!=[]
try:
v=queue[0];
queue.remove(v);
if v not in ban and white_numbers[v]==1:
u=white_neighbors[v][0]; #the only white neighbor
derived_set.append(u); #make the force
#update white_numbers, white_neighbors, and queue
if white_numbers[u]==1:
queue.append(u);
u_nbr=g.neighbors(u);
for w in u_nbr:
white_neighbors[w].remove(u);
white_numbers[w]+=-1;
if w in derived_set and white_numbers[w]==1:
queue.append(w);
except IndexError:
whole_loop=False;
return derived_set;
def St000482(g):
"""
Input:
g: a simple graph
Output:
return the value of the conventional zero forcing number Z(g).
"""
V=g.vertices();
n=g.order();
lbd=-1;
ubd=n;
while ubd-lbd>=2: #apply random algorithm;
guess=random.choice(range(lbd+1,ubd)); #take an interior point in [lbd,ubd];
found=False;
for sub in Combinations(V,guess):
if n==len(Z_game(g,sub)):
found=True;
break;
if found:
ubd=guess;
else:
lbd=guess;
return ubd;
@cached_function
def statistic(G):
if G.size() == 0:
return 0 # other definitions possible
lower_bound = G.pathwidth()
upper_bound = St000482(G) # zero forcing number
if upper_bound == lower_bound:
return upper_bound
for e in G.complement().edges(labels=False):
H = G.copy(immutable=False)
H.add_edge(e)
upper_bound = min(upper_bound, statistic(H.copy(immutable=True)))
if upper_bound == lower_bound:
return upper_bound
return upper_bound
Diff Code
# code for St000482 taken from https://findstat.org/StatisticsDatabase/St00482/
import random
def Z_game(g,B,ban=[]):
"""
Input:
g: a simple graph
B: a set of initial blue vertices
ban: a set of banned vertices
Output:
return the derived set under the regular CCR-Z.
Note: vertices in ban cannot make a force, but are still white neighbors if white.
"""
V=g.vertices();
white_neighbors={}; #a dictionary with the structure {v: list of white neighbors}
white_numbers={}; #a dictionary with the structure {v: number of white neighbors}
for v in V:
nbh=g.neighbors(v);
for b in B:
try:
nbh.remove(b);
except ValueError:
pass;
white_neighbors[v]=nbh;
white_numbers[v]=len(nbh);
queue=copy(B); #queue stores list of vertices that can possibly make a force
derived_set=copy(B); #derived_set stores the set of blue vertices
whole_loop=True;
while whole_loop: #keep searching if queue!=[]
try:
v=queue[0];
queue.remove(v);
if v not in ban and white_numbers[v]==1:
u=white_neighbors[v][0]; #the only white neighbor
derived_set.append(u); #make the force
#update white_numbers, white_neighbors, and queue
if white_numbers[u]==1:
queue.append(u);
u_nbr=g.neighbors(u);
for w in u_nbr:
white_neighbors[w].remove(u);
white_numbers[w]+=-1;
if w in derived_set and white_numbers[w]==1:
queue.append(w);
except IndexError:
whole_loop=False;
return derived_set;
def St000482(g):
"""
Input:
g: a simple graph
Output:
return the value of the conventional zero forcing number Z(g).
"""
V=g.vertices();
n=g.order();
lbd=-1;
ubd=n;
while ubd-lbd>=2: #apply random algorithm;
guess=random.choice(range(lbd+1,ubd)); #take an interior point in [lbd,ubd];
found=False;
for sub in Combinations(V,guess):
if n==len(Z_game(g,sub)):
found=True;
break;
if found:
ubd=guess;
else:
lbd=guess;
return ubd;
@cached_function
def statistic(G):
if G.size() == 0:
return 0 # other definitions possible
lower_bound = G.pathwidth()
upper_bound = St000482(G) # zero forcing number
if upper_bound == lower_bound:
return upper_bound
for e in G.complement().edges(labels=False):
H = G.copy(immutable=False)
H.add_edge(e)
upper_bound = min(upper_bound, statistic(H.copy(immutable=True)))
if upper_bound == lower_bound:
return upper_bound
return upper_bound
Created
Jan 19, 2025 at 20:34 by Lennard Hofmann
Updated
Jul 20, 2026 at 13:28 by Nupur Jain
Values
No modified entries
Description
The order of toric promotion on the set of labellings of a graph.
In the context of toric promotion, a labelling of a graph $(V, E)$ with $n=|V|$ vertices is a bijection $\sigma: V \to [n]$. In particular, any graph has $n!$ labellings.
In the context of toric promotion, a labelling of a graph $(V, E)$ with $n=|V|$ vertices is a bijection $\sigma: V \to [n]$. In particular, any graph has $n!$ labellings.
References
[1] Defant, C. Toric Promotion arXiv:2112.06843
Code
from sage.combinat.cyclic_sieving_phenomenon import orbit_decomposition
def toggle_labelling(G, pi, i, j):
if G.has_edge(pi.index(i), pi.index(j)):
return pi
sigma = [j if e == i else i if e == j else e for e in pi]
return Permutation(sigma)
def toric_promotion_labelling(G, pi):
n = G.num_verts()
assert set(G.vertices()) == set(range(n))
for i in range(1, n):
pi = toggle_labelling(G, pi, i, i+1)
return toggle_labelling(G, pi, n, 1)
def toric_promotion_labelling_orbits(G):
G = G.canonical_label().copy(immutable=True)
return toric_promotion_labelling_orbits_aux(G)
def toric_promotion_labelling_orbits_aux(G):
n = G.num_verts()
return orbit_decomposition(Permutations(n),
lambda pi: toric_promotion_labelling(G, pi))
def statistic(G):
return lcm(len(o) for o in toric_promotion_labelling_orbits(G))
Diff Code
from sage.combinat.cyclic_sieving_phenomenon import orbit_decomposition def toggle_labelling(G, pi, i, j): if G.has_edge(pi.index(i), pi.index(j)): return pi sigma = [j if e == i else i if e == j else e for e in pi] return Permutation(sigma) def toric_promotion_labelling(G, pi): n = G.num_verts() assert set(G.vertices()) == set(range(n)) for i in range(1, n): pi = toggle_labelling(G, pi, i, i+1) return toggle_labelling(G, pi, n, 1) def toric_promotion_labelling_orbits(G): G = G.canonical_label().copy(immutable=True) return toric_promotion_labelling_orbits_aux(G)@cached_functiondef toric_promotion_labelling_orbits_aux(G): n = G.num_verts() return orbit_decomposition(Permutations(n), lambda pi: toric_promotion_labelling(G, pi)) def statistic(G): return lcm(len(o) for o in toric_promotion_labelling_orbits(G))
Created
Aug 18, 2023 at 22:21 by Martin Rubey
Updated
Jul 20, 2026 at 13:02 by Nupur Jain
Values
No modified entries
Description
The number of orbits of promotion on a graph.
Let $(V, E)$ be a graph with $n=|V|$ vertices, and let $\sigma: V \to [n]$ be a labelling of its vertices. Let
$ \tau_{i, j}(\sigma) = \begin{cases} \sigma & \text{if $\{\sigma^{-1}(i), \sigma^{-1}(j)\}\in E$}\\ (i, j)\circ\sigma & \text{otherwise}. \end{cases} $
The promotion operator is the product $\tau_{n-1,n}\dots\tau_{1,2}$.
This statistic records the number of orbits in the orbit decomposition of promotion.
Let $(V, E)$ be a graph with $n=|V|$ vertices, and let $\sigma: V \to [n]$ be a labelling of its vertices. Let
$ \tau_{i, j}(\sigma) = \begin{cases} \sigma & \text{if $\{\sigma^{-1}(i), \sigma^{-1}(j)\}\in E$}\\ (i, j)\circ\sigma & \text{otherwise}. \end{cases} $
The promotion operator is the product $\tau_{n-1,n}\dots\tau_{1,2}$.
This statistic records the number of orbits in the orbit decomposition of promotion.
References
[1] Defant, C. Toric Promotion arXiv:2112.06843
Code
from sage.combinat.cyclic_sieving_phenomenon import orbit_decomposition
def toggle_labelling(G, pi, i, j):
if G.has_edge(pi.index(i), pi.index(j)):
return pi
sigma = [j if e == i else i if e == j else e for e in pi]
return Permutation(sigma)
def promotion_labelling(G, pi):
n = G.num_verts()
assert set(G.vertices()) == set(range(n))
for i in range(1, n):
pi = toggle_labelling(G, pi, i, i+1)
return pi
def promotion_labelling_orbits(G):
G = G.canonical_label().copy(immutable=True)
return promotion_labelling_orbits_aux(G)
def promotion_labelling_orbits_aux(G):
n = G.num_verts()
return orbit_decomposition(Permutations(n),
lambda pi: promotion_labelling(G, pi))
def statistic(G):
return len(promotion_labelling_orbits(G))
Diff Code
from sage.combinat.cyclic_sieving_phenomenon import orbit_decomposition def toggle_labelling(G, pi, i, j): if G.has_edge(pi.index(i), pi.index(j)): return pi sigma = [j if e == i else i if e == j else e for e in pi] return Permutation(sigma) def promotion_labelling(G, pi): n = G.num_verts() assert set(G.vertices()) == set(range(n)) for i in range(1, n): pi = toggle_labelling(G, pi, i, i+1) return pi def promotion_labelling_orbits(G): G = G.canonical_label().copy(immutable=True) return promotion_labelling_orbits_aux(G)@cached_functiondef promotion_labelling_orbits_aux(G): n = G.num_verts() return orbit_decomposition(Permutations(n), lambda pi: promotion_labelling(G, pi)) def statistic(G): return len(promotion_labelling_orbits(G))
Created
Dec 14, 2021 at 16:03 by Martin Rubey
Updated
Jul 20, 2026 at 13:02 by Nupur Jain
Values
No modified entries
Description
The number of orbits of toric promotion on a graph.
Let $(V, E)$ be a graph with $n=|V|$ vertices, and let $\sigma: V \to [n]$ be a labelling of its vertices. Let
$ \tau_{i, j}(\sigma) = \begin{cases} \sigma & \text{if $\{\sigma^{-1}(i), \sigma^{-1}(j)\}\in E$}\\ (i, j)\circ\sigma & \text{otherwise}. \end{cases} $
The toric promotion operator is the product $\tau_{n,1}\tau_{n-1,n}\dots\tau_{1,2}$.
This statistic records the number of orbits in the orbit decomposition of toric promotion.
Let $(V, E)$ be a graph with $n=|V|$ vertices, and let $\sigma: V \to [n]$ be a labelling of its vertices. Let
$ \tau_{i, j}(\sigma) = \begin{cases} \sigma & \text{if $\{\sigma^{-1}(i), \sigma^{-1}(j)\}\in E$}\\ (i, j)\circ\sigma & \text{otherwise}. \end{cases} $
The toric promotion operator is the product $\tau_{n,1}\tau_{n-1,n}\dots\tau_{1,2}$.
This statistic records the number of orbits in the orbit decomposition of toric promotion.
References
[1] Defant, C. Toric Promotion arXiv:2112.06843
Code
from sage.combinat.cyclic_sieving_phenomenon import orbit_decomposition
def toggle_labelling(G, pi, i, j):
if G.has_edge(pi.index(i), pi.index(j)):
return pi
sigma = [j if e == i else i if e == j else e for e in pi]
return Permutation(sigma)
def toric_promotion_labelling(G, pi):
n = G.num_verts()
assert set(G.vertices()) == set(range(n))
for i in range(1, n):
pi = toggle_labelling(G, pi, i, i+1)
return toggle_labelling(G, pi, n, 1)
def toric_promotion_labelling_orbits(G):
G = G.canonical_label().copy(immutable=True)
return toric_promotion_labelling_orbits_aux(G)
def toric_promotion_labelling_orbits_aux(G):
n = G.num_verts()
return orbit_decomposition(Permutations(n),
lambda pi: toric_promotion_labelling(G, pi))
def statistic(G):
return len(toric_promotion_labelling_orbits(G))
Diff Code
from sage.combinat.cyclic_sieving_phenomenon import orbit_decomposition def toggle_labelling(G, pi, i, j): if G.has_edge(pi.index(i), pi.index(j)): return pi sigma = [j if e == i else i if e == j else e for e in pi] return Permutation(sigma) def toric_promotion_labelling(G, pi): n = G.num_verts() assert set(G.vertices()) == set(range(n)) for i in range(1, n): pi = toggle_labelling(G, pi, i, i+1) return toggle_labelling(G, pi, n, 1) def toric_promotion_labelling_orbits(G): G = G.canonical_label().copy(immutable=True) return toric_promotion_labelling_orbits_aux(G)@cached_functiondef toric_promotion_labelling_orbits_aux(G): n = G.num_verts() return orbit_decomposition(Permutations(n), lambda pi: toric_promotion_labelling(G, pi)) def statistic(G): return len(toric_promotion_labelling_orbits(G))
Created
Dec 14, 2021 at 15:56 by Martin Rubey
Updated
Jul 20, 2026 at 13:01 by Nupur Jain
Values
No modified entries
Description
The skewness of a graph.
For a graph $G$, the skewness of $G$ is the minimum number of edges of $G$ whose removal results in a planar graph.
For a graph $G$, the skewness of $G$ is the minimum number of edges of $G$ whose removal results in a planar graph.
References
[1] Cimikowski, R. J. Graph planarization and skewness MathSciNet:1208914
[2] wikipedia:Planarization
[3] http://mathworld.wolfram.com/GraphSkewness.html
[2] wikipedia:Planarization
[3] http://mathworld.wolfram.com/GraphSkewness.html
Code
@cached_function
def statistic(G):
if G.is_planar():
return 0
bound = G.size()
for e in G.edges(labels=False):
H = G.copy(immutable=False)
H.delete_edge(e)
bound = min(bound, 1+statistic(H.canonical_label().copy(immutable=True)))
return bound
# alternative slower code
# def statistic(G):
# E = G.edges(labels=False)
# m = len(E)
# for sublist in reversed(Subsets(E).list()):
# if Graph(list(sublist)).is_planar():
# return m-len(sublist)
Diff Code
@cached_function def statistic(G): if G.is_planar(): return 0 bound = G.size() for e in G.edges(labels=False): H = G.copy(immutable=False) H.delete_edge(e) bound = min(bound, 1+statistic(H.canonical_label().copy(immutable=True))) return bound # alternative slower code # def statistic(G): # E = G.edges(labels=False) # m = len(E) # for sublist in reversed(Subsets(E).list()): # if Graph(list(sublist)).is_planar(): # return m-len(sublist)
Created
Dec 09, 2015 at 11:47 by Christian Stump
Updated
Jul 20, 2026 at 11:32 by Nupur Jain
Identifier
St001065:
Dyck paths
⟶ ℤ
Values
No modified entries
Description
Number of indecomposable reflexive modules in the corresponding Nakayama algebra.
References
Code
# Pure combinatorial: count indecomposable reflexive (2-syzygy) modules
# with dominant dimension >= 1.
# For Nakayama algebras, domdim >= 1 means the module is torsionless (a 1st syzygy).
# Every 2-syzygy is automatically a 1st syzygy, so the domdim filter is redundant.
# An indecomposable M(i, l) is a 2-syzygy iff:
# - M(i, l) is projective (l = K[i]), OR
# - ∃ M(j, m) with Ω²(M(j, m)) = M(i, l)
def kupisch(D):
DR = D.reverse()
H = DR.heights()
return [1 + H[i] for i, s in enumerate(DR) if s == 0] + [1]
def statistic(D):
K = kupisch(D)
n = len(K)
def omega(i, l):
if l == K[i]:
return None
ni, nl = i + l, K[i] - l
if ni >= n or nl <= 0:
return None
return (ni, nl)
syzygy2_modules = set()
# All projective modules are reflexive (2-syzygies for all n)
for i in range(n):
syzygy2_modules.add((i, K[i]))
# Find non-projective indecomposables that appear as Ω² of something
for j in range(n):
for l in range(1, K[j] + 1):
cur = (j, l)
for _ in range(2):
if cur is None:
break
cur = omega(cur[0], cur[1])
if cur is not None:
syzygy2_modules.add(cur)
return ZZ(len(syzygy2_modules))
Diff Code
DeclareOperation("IsNthSyzygy",[IsList]); InstallMethod(IsNthSyzygy, "for a representation of a quiver", [IsList],0,function(LIST) local M, n, f, N, i, h,W; M:=LIST[1]; n:=LIST[2]; N:=DualOfModule(NthSyzygy(DualOfModule(M),n)); W:=NthSyzygy(N,n); if IsDirectSummand(M,W)=true then return(1); else return(0); fi; end); DeclareOperation("NumberOfReflexiveModules",[IsList# Pure combinatorial: count indecomposable reflexive (2-syzygy) modules # with dominant dimension >= 1. # For Nakayama algebras, domdim >= 1 means the module is torsionless (a 1st syzygy). # Every 2-syzygy is automatically a 1st syzygy, so the domdim filter is redundant. # An indecomposable M(i, l) is a 2-syzygy iff: # - M(i, l) is projective (l = K[i]), OR # - ∃ M(j, m) with Ω²(M(j, m)) = M(i, l) def kupisch(D): DR = D.reverse() H = DR.heights() return [1 + H[i] for i, s in enumerate(DR) if s == 0] + [1] def statistic(D): K = kupisch(D) n = len(K) def omega(i, l): if l == K[i]: return None ni, nl = i + l, K[i] - l if ni >= n or nl <= 0: return None return (ni, nl) syzygy2_modules = set() # All projective modules are reflexive (2-syzygies for all n) for i in range(n): syzygy2_modules.add((i, K[i]);)InstallMethod(NumberOfReflexiveModules, "for a representation of a quiver", [IsList],0,function(LIST) local M, n, f, N, i, h,W; L:=LIST[1]; A:=NakayamaAlgebra(L,GF(3)); L:=ARQuiver([A,1000])[2]; LL1:=Filtered(L,x->DominantDimensionOfModule(x,30)>=1); LL2:=Filtered(LL1,x->IsNthSyzygy([x,2])=1); return(Size(LL2)); end);# Find non-projective indecomposables that appear as Ω² of something for j in range(n): for l in range(1, K[j] + 1): cur = (j, l) for _ in range(2): if cur is None: break cur = omega(cur[0], cur[1]) if cur is not None: syzygy2_modules.add(cur) return ZZ(len(syzygy2_modules))
Created
Dec 30, 2017 at 17:27 by Rene Marczinzik
Updated
Jul 16, 2026 at 13:56 by Nupur Jain
Identifier
St001509:
Dyck paths
⟶ ℤ
Values
No modified entries
Description
The degree of the standard monomial associated to a Dyck path relative to the trivial lower boundary.
Given two lattice paths $U,L$ from $(0,0)$ to $(d,n-d)$, [1] describes a bijection between lattice paths weakly between $U$ and $L$ and subsets of $\{1,\dots,n\}$ such that the set of all such subsets gives the standard complex of the lattice path matroid $M[U,L]$.
This statistic gives the cardinality of the image of this bijection when a Dyck path is considered as a path weakly below the diagonal and relative to the trivial lower boundary.
Given two lattice paths $U,L$ from $(0,0)$ to $(d,n-d)$, [1] describes a bijection between lattice paths weakly between $U$ and $L$ and subsets of $\{1,\dots,n\}$ such that the set of all such subsets gives the standard complex of the lattice path matroid $M[U,L]$.
This statistic gives the cardinality of the image of this bijection when a Dyck path is considered as a path weakly below the diagonal and relative to the trivial lower boundary.
References
[1] Engström, A., Sanyal, R., Stump, C. Standard complexes of matroids and lattice paths arXiv:1911.12290
Code
def standard_monomial(D, low=None, east=1):
n = len(D)
A = [ i+1 for i,s in enumerate(D) if s == 1-east ]
if low is None:
low = [1 .. len(A)]
low = [ i for i in [1 .. n] if i not in low ]
vals = []
j = 0
blocker = low + [Infinity]
for i in [1 .. n]:
if i not in A:
if i < blocker[0]:
j += 1
else:
blocker.pop(0)
else:
if j > 0:
j -= 1
vals.append(i)
blocker.pop(0)
return tuple(vals)
def statistic(D):
return len(standard_monomial(D, east=0))
Diff Code
def standard_monomial(D, low=None, east=1): n = len(D) A = [ i+1 for i,s in enumerate(D) if s == 1-east ]low = [ i+1 for i,s in enumerate(low) if s == 1-east ]if low is None: low = [1 .. len(A)] low = [ i for i in [1 .. n] if i not in low ] vals = [] j = 0 blocker = low + [Infinity] for i in [1 .. n]: if i not in A: if i < blocker[0]: j += 1 else: blocker.pop(0) else: if j > 0: j -= 1 vals.append(i) blocker.pop(0) return tuple(vals) def statistic(D): return len(standard_monomial(D, east=0))
Created
Nov 28, 2019 at 17:31 by Christian Stump
Updated
Jul 16, 2026 at 13:46 by Nupur Jain
Identifier
St001831:
Perfect matchings
⟶ ℤ
Values
No modified entries
Description
The multiplicity of the non-nesting perfect matching in the chord expansion of a perfect matching.
Given a perfect matching, we obtain a formal sum of non-crossing perfect matchings by replacing recursively every matching $M$ that has a crossing $(a, c), (b, d)$ with $a < b < c < d$ with the sum of the two matchings $(M\setminus \{(a,c), (b,d)\})\cup \{(a,b), (c,d)\}$ and $(M\setminus \{(a,c), (b,d)\})\cup \{(a,d), (b,c)\}$.
This statistic is the coefficient of the unique non-nesting perfect matching in the formal sum.
Computer experiments indicate that this statistic has the same distribution as StatisticsDatabase/St000383oMp00128oMp00215oMp00092.
Given a perfect matching, we obtain a formal sum of non-crossing perfect matchings by replacing recursively every matching $M$ that has a crossing $(a, c), (b, d)$ with $a < b < c < d$ with the sum of the two matchings $(M\setminus \{(a,c), (b,d)\})\cup \{(a,b), (c,d)\}$ and $(M\setminus \{(a,c), (b,d)\})\cup \{(a,d), (b,c)\}$.
This statistic is the coefficient of the unique non-nesting perfect matching in the formal sum.
Computer experiments indicate that this statistic has the same distribution as StatisticsDatabase/St000383oMp00128oMp00215oMp00092.
Code
def expand(M, ac, bd):
a, c = ac
b, d = bd
m = list(M)
m.remove(frozenset(ac))
m.remove(frozenset(bd))
m1 = m + [frozenset([a, b]), frozenset([c, d])]
m2 = m + [frozenset([a, d]), frozenset([b, c])]
return PerfectMatching(m1), PerfectMatching(m2)
def expansion(M):
input = {M: 1}
output = {}
while input:
m, e = input.popitem()
try:
ac, bd = next(m.crossings_iterator())
except StopIteration:
output[m] = output.get(m, 0) + e
else:
m1, m2 = expand(m, ac, bd)
input[m1] = input.get(m1, 0) + e
input[m2] = input.get(m2, 0) + e
return output
def statistic(M):
NN = PerfectMatching([[2*i+1,2*(i+1)] for i in range(len(M))])
return expansion(M).get(NN, 0)
Diff Code
def expand(M, ac, bd): a, c = ac b, d = bd m = list(M) m.remove(frozenset(ac)) m.remove(frozenset(bd)) m1 = m + [frozenset([a, b]), frozenset([c, d])] m2 = m + [frozenset([a, d]), frozenset([b, c])] return PerfectMatching(m1), PerfectMatching(m2) def expansion(M): input = {M: 1} output = {} while input: m, e = input.popitem() try: ac, bd = next(m.crossings_iterator()) except StopIteration: output[m] = output.get(m, 0) + e else: m1, m2 = expand(m, ac, bd) input[m1] = input.get(m1, 0) + e input[m2] = input.get(m2, 0) + e return output def statistic(M): NN = PerfectMatching([[2*i+1,2*(i+1)] for i in range(len(M))]) return expansion(M).get(non_nesting_non_crossing(len(M))NN, 0)
Created
Sep 01, 2022 at 09:34 by Martin Rubey
Updated
Jul 16, 2026 at 13:43 by Nupur Jain
Identifier
St000787:
Perfect matchings
⟶ ℤ
Values
No modified entries
Description
The number of flips required to make a perfect matching noncrossing.
A crossing in a perfect matching is a pair of arcs $\{a,b\}$ and $\{c,d\}$ such that $a < c < b < d$. Replacing any such pair by either $\{a,c\}$ and $\{b,d\}$ or by $\{a,d\}$, $\{b,c\}$ produces a perfect matching with fewer crossings.
This statistic is the minimal number of such flips required to turn a given matching into a noncrossing matching.
A crossing in a perfect matching is a pair of arcs $\{a,b\}$ and $\{c,d\}$ such that $a < c < b < d$. Replacing any such pair by either $\{a,c\}$ and $\{b,d\}$ or by $\{a,d\}$, $\{b,c\}$ produces a perfect matching with fewer crossings.
This statistic is the minimal number of such flips required to turn a given matching into a noncrossing matching.
References
[1] Bonnet, É., Miltzow, T. Flip Distance to a Non-crossing Perfect Matching arXiv:1601.05989
Code
@cached_function
def statistic(w):
def children(m):
for (a,b),(c,d) in m.crossings():
m_new = list(m)
m_new.remove(frozenset((a,b)))
m_new.remove(frozenset((c,d)))
A, B = min(a,b), max(a,b)
C, D = min(c,d), max(c,d)
if C < A:
(A,B),(C,D) = (C,D),(A,B)
yield PerfectMatching(m_new + [frozenset((A,C)), frozenset((B,D))])
yield PerfectMatching(m_new + [frozenset((A,D)), frozenset((B,C))])
w = PerfectMatching(sorted([sorted(a) for a in w]))
l = [statistic(v) for v in children(w)]
if len(l) == 0:
return 0
else:
return 1+min(l)
Diff Code
@cached_function def statistic(w): def children(m): for (a,b),(c,d) in m.crossings(): m_new = list(m) m_new.remove(frozenset((a,b))) m_new.remove(frozenset((c,d))) A, B = min(a,b), max(a,b) C, D = min(c,d), max(c,d) if C < A: (A,B),(C,D) = (C,D),(A,B) yield PerfectMatching(m_new + [frozenset((A,C)), frozenset((B,D))]) yield PerfectMatching(m_new + [frozenset((A,D)), frozenset((B,C))]) w = PerfectMatching(sorted([sorted(a) for a in w])) l = [statistic(v) for v in children(w)] if len(l) == 0: return 0 else: return 1+min(l)
Created
Apr 20, 2017 at 21:16 by Martin Rubey
Updated
Jul 16, 2026 at 13:42 by Nupur Jain
Identifier
St000754:
Perfect matchings
⟶ ℤ
Values
No modified entries
Description
The Grundy value for the game of removing nestings in a perfect matching.
A move consists of choosing a nesting, that is two pairs $(a,d)$ and $(b,c)$ with $a < b < c < d$ and replacing them with the two pairs $(a,b)$ and $(c,d)$. The player facing a non-nesting matching looses.
A move consists of choosing a nesting, that is two pairs $(a,d)$ and $(b,c)$ with $a < b < c < d$ and replacing them with the two pairs $(a,b)$ and $(c,d)$. The player facing a non-nesting matching looses.
Code
@cached_function
def statistic(w):
def children(m):
for (a,b),(c,d) in m.nestings():
m_new = list(m)
m_new.remove(frozenset((a,b)))
m_new.remove(frozenset((c,d)))
A = min(a,b)
B = max(a,b)
C = min(c,d)
D = max(c,d)
if C < A:
(A,B),(C,D) = (C,D),(A,B)
yield PerfectMatching(m_new + [frozenset((A,C)), frozenset((B,D))])
l = [statistic(v) for v in children(w)]
i = 0
while i in l:
i += 1
return i
Diff Code
@cached_function def statistic(w): def children(m): for (a,b),(c,d) in m.nestings(): m_new = list(m) m_new.remove(frozenset((a,b))) m_new.remove(frozenset((c,d))) A = min(a,b) B = max(a,b) C = min(c,d) D = max(c,d) if C < A: (A,B),(C,D) = (C,D),(A,B) yield PerfectMatching(m_new + [frozenset((A,C)), frozenset((B,D))]) l = [statistic(v) for v in children(w)] i = 0 while i in l: i += 1 return i
Created
Apr 07, 2017 at 21:48 by Martin Rubey
Updated
Jul 16, 2026 at 13:41 by Nupur Jain
Identifier
St001408:
Semistandard tableaux
⟶ ℤ
Values
No modified entries
Description
The number of maximal entries in a semistandard tableau.
An entry is maximal if replacing it with a larger entry does not yield a semistandard tableau.
An entry is maximal if replacing it with a larger entry does not yield a semistandard tableau.
Code
def statistic(T):
S = [[e for e in row] for row in T]
count = 0
for i, row in enumerate(S):
for j, e in enumerate(row):
S[i][j] = e+1
try:
_ = SemistandardTableau(S)
except Exception:
count += 1
S[i][j] = e
return count
Diff Code
def statistic(T): S = [[e for e in row] for row in T] count = 0 for i, row in enumerate(S): for j, e in enumerate(row): S[i][j] = e+1 try: _ = SemistandardTableau(S) exceptStandardErrorException: count += 1 S[i][j] = e return count
Created
Jun 03, 2019 at 12:36 by Martin Rubey
Updated
Jul 16, 2026 at 13:15 by Nupur Jain
Identifier
St001407:
Semistandard tableaux
⟶ ℤ
Values
No modified entries
Description
The number of minimal entries in a semistandard tableau.
An entry is minimal if replacing it with a smaller entry does not yield a semistandard tableau.
An entry is minimal if replacing it with a smaller entry does not yield a semistandard tableau.
Code
def statistic(T):
S = [[e for e in row] for row in T]
count = 0
for i, row in enumerate(S):
for j, e in enumerate(row):
S[i][j] = e-1
try:
_ = SemistandardTableau(S)
except Exception:
count += 1
S[i][j] = e
return count
Diff Code
def statistic(T): S = [[e for e in row] for row in T] count = 0 for i, row in enumerate(S): for j, e in enumerate(row): S[i][j] = e-1 try: _ = SemistandardTableau(S) exceptStandardErrorException: count += 1 S[i][j] = e return count
Created
Jun 02, 2019 at 23:09 by Martin Rubey
Updated
Jul 16, 2026 at 13:12 by Nupur Jain
Identifier
St000174:
Semistandard tableaux
⟶ ℤ
Values
No modified entries
Description
The flush statistic of a semistandard tableau.
Let $T$ be a tableaux with $r$ rows such that each row is longer than the row beneath it by at least one box. Let $1 \leq i < k \leq r+1$ and suppose $l$ is the smallest integer greater than $k$ such that there exists an $l$-segment in the $(i+1)$-st row of $T$. A $k$-segment in the $i$-th row of $T$ is called flush if the leftmost box in the $k$-segment and the leftmost box of the $l$-segment are in the same column of $T$. If, however, no such $l$ exists, then this $k$-segment is said to be flush if the number of boxes in the $k$-segment is equal to difference of the number of boxes between the $i$-th row and $(i+1)$-st row. The flush statistic is given by the number of $k$-segments in $T$.
Let $T$ be a tableaux with $r$ rows such that each row is longer than the row beneath it by at least one box. Let $1 \leq i < k \leq r+1$ and suppose $l$ is the smallest integer greater than $k$ such that there exists an $l$-segment in the $(i+1)$-st row of $T$. A $k$-segment in the $i$-th row of $T$ is called flush if the leftmost box in the $k$-segment and the leftmost box of the $l$-segment are in the same column of $T$. If, however, no such $l$ exists, then this $k$-segment is said to be flush if the number of boxes in the $k$-segment is equal to difference of the number of boxes between the $i$-th row and $(i+1)$-st row. The flush statistic is given by the number of $k$-segments in $T$.
References
[1] Salisbury, B. The flush statistic on semistandard Young tableaux arXiv:1401.1185
Code
def statistic(T):
f = 0
segments = {}
for r in range(len(T)):
for c in range(len(T[r])):
for j in range(c+1):
if T[r][j] != r+1:
if (r,T[r][j]) not in segments.keys():
segments[(r,T[r][j])] = j
L = segments.items()
for s in segments.items():
if s[0][0] != len(T)-1 and s[1] == len(T[s[0][0]+1]) and T[s[0][0]+1][-1] <= s[0][1]:
f += 1
if s[0][0] == len(T)-1 and s[1] == 0:
f += 1
else:
for t in L:
if s[0][0]+1 == t[0][0] and s[1] == t[1]:
if s[1] >= 1 and T[s[0][0]+1][s[1]] != T[s[0][0]+1][s[1]-1]:
f += 1
if s[1] < 1 and T[s[0][0]+1][s[1]] != s[0][0]+2:
f += 1
return f
Diff Code
def statistic(T): f = 0 segments = {} for r in range(len(T)): for c in range(len(T[r])): for j in range(c+1): if T[r][j] != r+1: if (r,T[r][j]) not in segments.keys(): segments[(r,T[r][j])] = j L = segments.items() for s in segments.iteritems(): if s[0][0] != len(T)-1 and s[1] == len(T[s[0][0]+1]) and T[s[0][0]+1][-1] <= s[0][1]: f += 1 if s[0][0] == len(T)-1 and s[1] == 0: f += 1 else: for t in L: if s[0][0]+1 == t[0][0] and s[1] == t[1]: if s[1] >= 1 and T[s[0][0]+1][s[1]] != T[s[0][0]+1][s[1]-1]: f += 1 if s[1] < 1 and T[s[0][0]+1][s[1]] != s[0][0]+2: f += 1 return f
Created
Jan 15, 2014 at 19:13 by Ben Salisbury
Updated
Jul 16, 2026 at 13:11 by Nupur Jain
Values
No modified entries
Description
The number of endomorphisms of a poset.
References
[1] Prince, R. Whether a total order set of size $n$ has the fewest endomorphisms among posets of size $n$ MathOverflow:252899
Code
def statistic(P):
return len(poset_endomorphisms(P))
def poset_endomorphisms(P):
P = P.relabel()
r = P.cardinality()
S = cartesian_product([range(r)]*r)
return [pi for pi in S if P.is_poset_morphism(lambda i: pi[i], P)]
# (* Mathematica code using depth first recursion *)
# endoCount::usage := "If rel is a reflexive relation on 1,2,..,Max[rel], then \
# endoCount[rel] is the number of self maps f for which {f[a],f[b]} is in the \
# relation whenever {a,b} is in the relation.”
# endoCount[rel_] := morphismCount[rel, rel]
# morphismCount[rel1_List, rel2_List] :=
# Module[{max1 = Max[rel1], max2 = Max[rel2], down, checkdown, num, ans},
# Do[down[i] = Select[rel1, Max[#] == i &], {i, max1}];
# checkdown[f_List] := AllTrue[down[Length[f]], MemberQ[rel2, f[[#1]]] &];
# num[{}] := Sum[num[{i}], {i, max2}];
# num[f_List] :=
# If[checkdown[f],
# If[Length[f] == max1, 1, Sum[num[Append[f, i]], {i, max2}]], 0];
# ans = num[{}]; Clear[checkdown, down]; ans]
# (* example *)
# endoCount[{{1, 1}, {1, 2}, {1, 10}, {2, 2}, {3, 2}, {3, 3}, {3,
# 4}, {4, 4}, {5, 4}, {5, 5}, {5, 6}, {6, 6}, {7, 6}, {7, 7}, {7,
# 8}, {8, 8}, {9, 8}, {9, 9}, {9, 10}, {10, 10}}]
# (* gives 10030 *)
# (* Sanity checks are to be added. For instance we must have
# Union @@ rel == Range[Max[rel]]
# *)
Diff Code
def statistic(P): return len(poset_endomorphisms(P)) def poset_endomorphisms(P): P = P.relabel() r = P.cardinality() S = cartesian_product([range(r)]*r) return [pi for pi in S if P.is_poset_morphism(lambda i: pi[i], P)] # (* Mathematica code using depth first recursion *) # endoCount::usage := "If rel is a reflexive relation on 1,2,..,Max[rel], then \ # endoCount[rel] is the number of self maps f for which {f[a],f[b]} is in the \ # relation whenever {a,b} is in the relation.” # endoCount[rel_] := morphismCount[rel, rel] # morphismCount[rel1_List, rel2_List] := # Module[{max1 = Max[rel1], max2 = Max[rel2], down, checkdown, num, ans}, # Do[down[i] = Select[rel1, Max[#] == i &], {i, max1}]; # checkdown[f_List] := AllTrue[down[Length[f]], MemberQ[rel2, f[[#1]]] &]; # num[{}] := Sum[num[{i}], {i, max2}]; # num[f_List] := # If[checkdown[f], # If[Length[f] == max1, 1, Sum[num[Append[f, i]], {i, max2}]], 0]; # ans = num[{}]; Clear[checkdown, down]; ans] # (* example *) # endoCount[{{1, 1}, {1, 2}, {1, 10}, {2, 2}, {3, 2}, {3, 3}, {3, # 4}, {4, 4}, {5, 4}, {5, 5}, {5, 6}, {6, 6}, {7, 6}, {7, 7}, {7, # 8}, {8, 8}, {9, 8}, {9, 9}, {9, 10}, {10, 10}}] # (* gives 10030 *) # (* Sanity checks are to be added. For instance we must have # Union @@ rel == Range[Max[rel]]*)# *)
Created
Oct 24, 2016 at 12:49 by Martin Rubey
Updated
Jul 16, 2026 at 13:10 by Nupur Jain
Identifier
St001721:
Binary words ⟶ ℤ
Values
No modified entries
Description
The degree of a binary word.
A valley in a binary word is a letter $0$ which is not immediately followed by a $1$. A peak is a letter $1$ which is not immediately followed by a $0$.
Let $f$ be the map that replaces every valley with a peak. The degree of a binary word $w$ is the number of times $f$ has to be applied to obtain a binary word without zeros.
A valley in a binary word is a letter $0$ which is not immediately followed by a $1$. A peak is a letter $1$ which is not immediately followed by a $0$.
Let $f$ be the map that replaces every valley with a peak. The degree of a binary word $w$ is the number of times $f$ has to be applied to obtain a binary word without zeros.
References
[1] Tasoulas, I., Manes, K., Sapounakis, A., Tsikouras, P. Chains with small intervals in the lattice of binary paths MathSciNet:4054761
Code
def filling(w):
w = list(w)
f = list(w)
for i in range(len(w)-1):
if w[i:i+2] == [0, 1]:
f[i:i+2] = [1, 0]
if w[len(w)-1] == 0:
f[len(w)-1] = 1
return Words([0,1])(f)
def degree(w):
d = 0
while w.count(0):
w = filling(w)
d += 1
return d
def statistic(w):
return degree(w)
Diff Code
def filling(w): w = list(w) f = list(w) for i in range(len(w)-1): if w[i:i+2] == [0, 1]: f[i:i+2] = [1, 0] if w[len(w)-1] == 0: f[len(w)-1] = 1 return Words([0,1])(f) defstatisticdegree(w): d = 0 while w.count(0): w = filling(w) d += 1 return d def statistic(w): return degree(w)
Created
May 20, 2021 at 12:23 by Martin Rubey
Updated
Jul 16, 2026 at 13:08 by Nupur Jain
Identifier
St000529:
Binary words ⟶ ℤ
Values
No modified entries
Description
The number of permutations whose descent word is the given binary word.
This is the sizes of the preimages of the map Mp00109descent word.
This is the sizes of the preimages of the map Mp00109descent word.
Code
from collections import defaultdict
def word(pi):
w = [0]*(len(pi)-1)
for i in pi.descents(from_zero=True):
w[i] = 1
return Words([0,1])(w)
@cached_function
def preimages(n):
D = defaultdict(int)
for pi in Permutations(n):
D[word(pi)] += 1
return D
def statistic(word):
return preimages(len(word)+Integer(1))[word]
Diff Code
from collections import defaultdict def word(pi): w = [0]*(len(pi)-1) for i in pi.descents(from_zero=True): w[i] = 1 return Words([0,1])(w) @cached_function def preimages(n): D = defaultdict(int) for pi in Permutations(n): D[word(pi)] += 1 return D def statistic(word): return preimages(len(word)+Integer(1))[word]
Created
Jun 08, 2016 at 13:19 by Christian Stump
Updated
Jul 16, 2026 at 13:08 by Nupur Jain
Identifier
St000201:
Binary trees
⟶ ℤ
(values match
St000196The number of occurrences of the contiguous pattern [[.,.],[.,.)
Values
No modified entries
Description
The number of leaf nodes in a binary tree.
Equivalently, the number of cherries [1] in the complete binary tree.
The number of binary trees of size $n$, at least $1$, with exactly one leaf node for is $2^{n-1}$, see [2].
The number of binary tree of size $n$, at least $3$, with exactly two leaf nodes is $n(n+1)2^{n-2}$, see [3].
Equivalently, the number of cherries [1] in the complete binary tree.
The number of binary trees of size $n$, at least $1$, with exactly one leaf node for is $2^{n-1}$, see [2].
The number of binary tree of size $n$, at least $3$, with exactly two leaf nodes is $n(n+1)2^{n-2}$, see [3].
References
[1] Billey, S., Konvalinka, M., Matsen, F. A. I. On the enumeration of tanglegrams and tangled chains arXiv:1507.04976
[2] Powers of 2: a(n) = 2^n. OEIS:A000079
[3] a(n) = n*(n+1)*2^(n-2). OEIS:A001788
[2] Powers of 2: a(n) = 2^n. OEIS:A000079
[3] a(n) = n*(n+1)*2^(n-2). OEIS:A001788
Code
def statistic(B):
if B == BinaryTree():
return 0
if B == BinaryTree([]):
return 1
return sum(statistic(S) for S in B)
# alternative implementation
# BinaryTree -> Bool
# def is_leaf(b):
# return b == BinaryTree('.')
# # BinaryTree -> Int
# def leaf_count(b):
# if is_leaf(b):
# return 0
# if is_leaf(b[0]) and is_leaf(b[1]):
# return 1
# return 0
# # (Num a) => a -> a -> a
# def add(a, b):
# return a + b
# # (a -> a -> a) -> (BinaryTree -> a) -> BinaryTree -> a
# def fold_tree(f, g, b):
# if is_leaf(b):
# return g(b)
# else:
# return f(g(b), f(fold_tree(f, g, b[0]), fold_tree(f, g, b[1])))
# for n in [0..7]:
# for b in BinaryTrees(n):
# indiv_count = fold_tree(add, leaf_count, b)
# print b, '=>', indiv_count
Diff Code
def statistic(B): if B == BinaryTree(): return 0 if B == BinaryTree([]): return 1 return sum(statistic(S) for S in B) # alternative implementation # BinaryTree -> Bool # def is_leaf(b): # return b == BinaryTree('.') # # BinaryTree -> Int # def leaf_count(b): # if is_leaf(b): # return 0 # if is_leaf(b[0]) and is_leaf(b[1]): # return 1 # return 0 # # (Num a) => a -> a -> a # def add(a, b): # return a + b # # (a -> a -> a) -> (BinaryTree -> a) -> BinaryTree -> a # def fold_tree(f, g, b): # if is_leaf(b): # return g(b) # else: # return f(g(b), f(fold_tree(f, g, b[0]), fold_tree(f, g, b[1]))) # for n in [0..7]: # for b in BinaryTrees(n): # indiv_count = fold_tree(add, leaf_count, b) # print b, '=>', indiv_count
Created
May 16, 2014 at 09:02 by Joseph Ching
Updated
Jul 16, 2026 at 13:03 by Nupur Jain
Values
No modified entries
Description
The number of non-convex subsets of vertices in a graph.
A set of vertices $U$ is convex, if for any two vertices $u,v\in U$, all vertices on any shortest path connecting $u$ and $v$ are also in $U$.
A set of vertices $U$ is convex, if for any two vertices $u,v\in U$, all vertices on any shortest path connecting $u$ and $v$ are also in $U$.
Code
def statistic(G):
from sage.graphs.convexity_properties import ConvexityProperties
return sum(1 for V in subsets(G) if set(ConvexityProperties(G).hull(V)) != set(V))
Diff Code
def statistic(G): from sage.graphs.convexity_properties import ConvexityProperties return sum(1 for V in subsets(G) if set(ConvexityProperties(G).hull(V)) != set(V))
Created
Jan 11, 2022 at 19:07 by Martin Rubey
Updated
Jul 16, 2026 at 11:45 by Nupur Jain
Values
No modified entries
Description
The number of convex subsets of vertices in a graph.
A set of vertices $U$ is convex, if for any two vertices $u, v\in U$, all vertices on any shortest path connecting $u$ and $v$ are also in $U$.
A set of vertices $U$ is convex, if for any two vertices $u, v\in U$, all vertices on any shortest path connecting $u$ and $v$ are also in $U$.
Code
def statistic(G):
from sage.graphs.convexity_properties import ConvexityProperties
return sum(1 for V in subsets(G) if set(ConvexityProperties(G).hull(V)) == set(V))
Diff Code
def statistic(G): from sage.graphs.convexity_properties import ConvexityProperties return sum(1 for V in subsets(G) if set(ConvexityProperties(G).hull(V)) == set(V))
Created
Jan 11, 2022 at 19:00 by Martin Rubey
Updated
Jul 16, 2026 at 11:45 by Nupur Jain
Values
No modified entries
Description
The Alon-Tarsi number of a graph.
Let $G$ be a graph with vertices $\{1,\dots,n\}$ and edge set $E$. Let $P_G=\prod_{i < j, (i,j)\in E} x_i-x_j$ be its graph polynomial. Then the Alon-Tarsi number is the smallest number $k$ such that $P_G$ contains a monomial with exponents strictly less than $k$.
Let $G$ be a graph with vertices $\{1,\dots,n\}$ and edge set $E$. Let $P_G=\prod_{i < j, (i,j)\in E} x_i-x_j$ be its graph polynomial. Then the Alon-Tarsi number is the smallest number $k$ such that $P_G$ contains a monomial with exponents strictly less than $k$.
Code
def graph_polynomial(G):
G.relabel(inplace=False)
n = G.num_verts()
R = PolynomialRing(ZZ, "x", n)
X = R.gens()
p = R(1)
for a, b in G.edges(labels=False):
if a > b:
a, b = b, a
p *= X[a] - X[b]
return p
def statistic(G):
"""
sage: [statistic(graphs.CompleteBipartiteGraph(n,n)) for n in range(1, 5)]
[2, 2, 3, 3]
sage: lG = [(graphs.CycleGraph(2*n+1).cartesian_product(graphs.PathGraph(k))) for k in range(1,3) for n in range(1,3)]
sage: [statistic(G) for G in lG if G.num_verts() <= 6]
[3, 3, 3]
"""
lm = graph_polynomial(G).monomials()
return min(max(m.degrees()) for m in lm)+1
Diff Code
def graph_polynomial(G): G.relabel(inplace=False) n = G.num_verts() R = PolynomialRing(ZZ, "x", n) X = R.gens() p = R(1) for a, b in G.edges(labels=False): if a > b: a, b = b, a p *= X[a] - X[b] return p def statistic(G): """ sage: [statistic(graphs.CompleteBipartiteGraph(n,n)) for n in range(1, 5)] [2, 2, 3, 3] sage: lG = [(graphs.CycleGraph(2*n+1).cartesian_product(graphs.PathGraph(k))) for k in range(1,3) for n in range(1,3)] sage: [statistic(G) for G in lG if G.num_verts() <= 6] [3, 3, 3] """ lm = graph_polynomial(G).monomials() return min(max(m.degrees()) for m in lm)+1
Created
Nov 12, 2019 at 17:56 by Martin Rubey
Updated
Jul 16, 2026 at 11:40 by Nupur Jain
Values
No modified entries
Description
The number of minimally dominating sets of vertices of a graph.
A subset of vertices is dominating if every vertex is either in this subset or adjacent to an element therein [1]. If a set of vertices is dominating, then so is every superset of this set. This statistic counts the minimally dominating sets.
A subset of vertices is dominating if every vertex is either in this subset or adjacent to an element therein [1]. If a set of vertices is dominating, then so is every superset of this set. This statistic counts the minimally dominating sets.
References
Code
def is_dominating(G,V):
return set(G.vertices()) == set(V).union(*[G.neighbors(v) for v in V])
def minimal_dominating_sets(G):
Vs = list(Subsets(G.vertices()))
mdoms = []
while Vs:
V = Vs.pop(0)
if is_dominating(G,V):
mdoms.append(V)
Vs = list(filter( lambda X: not X.issuperset(V), Vs))
return mdoms
def statistic(G):
return len(minimal_dominating_sets(G))
Diff Code
def is_dominating(G,V): return set(G.vertices()) == set(V).union(*[G.neighbors(v) for v in V]) def minimal_dominating_sets(G): Vs = list(Subsets(G.vertices())) mdoms = [] while Vs: V = Vs.pop(0) if is_dominating(G,V): mdoms.append(V) Vs = list(filter( lambda X: not X.issuperset(V), Vs)) return mdoms def statistic(G): return len(minimal_dominating_sets(G))
Created
Dec 10, 2018 at 15:10 by Christian Stump
Updated
Jul 16, 2026 at 11:39 by Nupur Jain
Values
No modified entries
Description
The game chromatic number of a graph.
Two players, Alice and Bob, take turns colouring properly any uncolored vertex of the graph. Alice begins. If it is not possible for either player to colour a vertex, then Bob wins. If the graph is completely colored, Alice wins.
The game chromatic number is the smallest number of colours such that Alice has a winning strategy.
Two players, Alice and Bob, take turns colouring properly any uncolored vertex of the graph. Alice begins. If it is not possible for either player to colour a vertex, then Bob wins. If the graph is completely colored, Alice wins.
The game chromatic number is the smallest number of colours such that Alice has a winning strategy.
References
[1] wikipedia:Graph coloring game
[2] Chen, G., Schelp, R. H., Shreve, W. E. A new game chromatic number MathSciNet:1427601
[2] Chen, G., Schelp, R. H., Shreve, W. E. A new game chromatic number MathSciNet:1427601
Code
def statistic(G):
"""Return the smallest number such that Alice has a winning strategy.
EXAMPLES:
From http://www.dlsu.edu.ph/conferences/dlsu_research_congress/2014/_pdf/proceedings/TPHS-I-011-FT.pdf::
sage: [statistic(graphs.PathGraph(r)) for r in range(2,12)]
[2, 2, 3, 3, 3, 3, 3, 3, 3, 3]
sage: [statistic(graphs.CycleGraph(r)) for r in range(2,10)]
[2, 3, 3, 3, 3, 3, 3, 3]
sage: [statistic(graphs.StarGraph(r)) for r in range(2,10)]
[2, 2, 2, 2, 2, 2, 2, 2]
sage: [statistic(graphs.CompleteGraph(r)) for r in range(2,10)]
[2, 3, 4, 5, 6, 7, 8, 9]
Proposition 4 of the reference seems to miss some corner cases.
W(3) and W(4) are complete graphs, so Proposition 5 applies.
However, W(5) and W(7) seem to be special::
sage: [statistic(graphs.WheelGraph(r)) for r in range(5,12)]
[3, 4, 3, 4, 4, 4, 4]
sage: [[statistic(graphs.CompleteBipartiteGraph(r, s)) for r in range(1,6)] for s in range(1,6)]
[[2, 2, 2, 2, 2],
[2, 3, 3, 3, 3],
[2, 3, 3, 3, 3],
[2, 3, 3, 3, 3],
[2, 3, 3, 3, 3]]
The following contradicts Theorem 1, but is in agreement with
http://ssltest.cs.umd.edu/~gasarch/TOPICS/graphcolgame/tree3.pdf,
Theorem 3::
sage: statistic(graphs.PetersenGraph())
4
from wikipedia::
sage: [statistic(graphs.CompleteGraph(2).cartesian_product(graphs.PathGraph(r))) for r in range(1,6)]
[2, 3, 3, 4, 4]
sage: [statistic(graphs.CompleteGraph(2).cartesian_product(graphs.CycleGraph(r))) for r in range(1,5)]
[2, 3, 4, 4]
sage: [statistic(graphs.CompleteGraph(2).cartesian_product(graphs.CompleteGraph(r))) for r in range(1,5)]
[2, 3, 4, 5]
"""
G = G.relabel(immutable=True, inplace=False)
for k in range(G.chromatic_number(), max(G.degree())+2):
if Alice_wins(G, k):
return k
def normalize_colours(D):
"""
From left to right, use small colours first.
"""
pi = [None]*(max(cc for cc in D if cc is not None)+1)
i = 0
for e in D:
if e is not None and pi[e] is None:
pi[e] = i
i += 1
return tuple([None if e is None else pi[e] for e in D])
@cached_function
def Alice_wins(G, k, C=None):
"""Return whether C is a winning position for Alice, who wants to
properly color the graph.
Expect that the vertices are labelled 0,1,...
"""
def children(D):
if all(c is None for c in D):
colours = 1
else:
colours = min(k, max(cc for cc in D if cc is not None)+2)
for v, c in enumerate(D):
if c is None:
for d in range(colours):
if not any(D[u] == d for u in G.neighbor_iterator(v)):
yield D[:v] + tuple([d]) + D[v+1:]
if C is None:
C = tuple([None]*G.num_verts())
uncoloured_vertices = C.count(None)
if uncoloured_vertices == 0:
return True
# let Alice colour a vertex
for D in children(C):
# if C was missing precisely one vertex, and we could
# colour it, Alice wins
if uncoloured_vertices == 1:
return True
# Alice wins if there is a D such that all moves of Bob make Alice win
has_colouring = False
for E in children(D):
has_colouring = True
if not Alice_wins(G, k, normalize_colours(E)):
break
else:
if has_colouring:
return True
return False
Diff Code
def statistic(G): """Return the smallest number such that Alice has a winning strategy. EXAMPLES: From http://www.dlsu.edu.ph/conferences/dlsu_research_congress/2014/_pdf/proceedings/TPHS-I-011-FT.pdf:: sage: [statistic(graphs.PathGraph(r)) for r in range(2,12)] [2, 2, 3, 3, 3, 3, 3, 3, 3, 3] sage: [statistic(graphs.CycleGraph(r)) for r in range(2,10)] [2, 3, 3, 3, 3, 3, 3, 3] sage: [statistic(graphs.StarGraph(r)) for r in range(2,10)] [2, 2, 2, 2, 2, 2, 2, 2] sage: [statistic(graphs.CompleteGraph(r)) for r in range(2,10)] [2, 3, 4, 5, 6, 7, 8, 9] Proposition 4 of the reference seems to miss some corner cases. W(3) and W(4) are complete graphs, so Proposition 5 applies. However, W(5) and W(7) seem to be special:: sage: [statistic(graphs.WheelGraph(r)) for r in range(5,12)] [3, 4, 3, 4, 4, 4, 4] sage: [[statistic(graphs.CompleteBipartiteGraph(r, s)) for r in range(1,6)] for s in range(1,6)] [[2, 2, 2, 2, 2], [2, 3, 3, 3, 3], [2, 3, 3, 3, 3], [2, 3, 3, 3, 3], [2, 3, 3, 3, 3]] The following contradicts Theorem 1, but is in agreement with http://ssltest.cs.umd.edu/~gasarch/TOPICS/graphcolgame/tree3.pdf, Theorem 3:: sage: statistic(graphs.PetersenGraph()) 4 from wikipedia:: sage: [statistic(graphs.CompleteGraph(2).cartesian_product(graphs.PathGraph(r))) for r in range(1,6)] [2, 3, 3, 4, 4] sage: [statistic(graphs.CompleteGraph(2).cartesian_product(graphs.CycleGraph(r))) for r in range(1,5)] [2, 3, 4, 4] sage: [statistic(graphs.CompleteGraph(2).cartesian_product(graphs.CompleteGraph(r))) for r in range(1,5)] [2, 3, 4, 5] """ G = G.relabel(immutable=True, inplace=False) for k in range(G.chromatic_number(), max(G.degree())+2): if Alice_wins(G, k): return k def normalize_colours(D): """ From left to right, use small colours first. """ pi = [None]*(max(cc for cc in D if cc is not None)+1) i = 0 for e in D: if e is not None and pi[e] is None: pi[e] = i i += 1 return tuple([None if e is None else pi[e] for e in D]) @cached_function def Alice_wins(G, k, C=None): """Return whether C is a winning position for Alice, who wants to properly color the graph. Expect that the vertices are labelled 0,1,... """ def children(D): if all(c is None for c in D): colours = 1 else: colours = min(k, max(cc for cc in D if cc is not None)++2) for v, c in enumerate(D): if c is None: for d in range(colours): if not any(D[u] == d for u in G.neighbor_iterator(v)): yield D[:v] + tuple([d]) + D[v+1:] if C is None: C = tuple([None]*G.num_verts()) uncoloured_vertices = C.count(None) if uncoloured_vertices == 0: return True # let Alice colour a vertex for D in children(C): # if C was missing precisely one vertex, and we could # colour it, Alice wins if uncoloured_vertices == 1: return True # Alice wins if there is a D such that all moves of Bob make Alice win has_colouring = False for E in children(D): has_colouring = True if not Alice_wins(G, k, normalize_colours(E)): break else: if has_colouring: return True return False
Created
Mar 15, 2018 at 14:57 by Martin Rubey
Updated
Jul 16, 2026 at 11:38 by Nupur Jain
Identifier
St000107:
Finite Cartan types
⟶ ℤ
Values
No modified entries
Description
The dimension of the representation $V(\Lambda_1)$.
The sizes of $E_6$ and $E_7$ can be seen in [1].
The sizes of $E_6$ and $E_7$ can be seen in [1].
References
[1] Jones, B., Schilling, A. Affine structures and a tableau model for $E_6$ crystals MathSciNet:2684152
Code
def statistic(ct):
from sage.combinat.crystals.kirillov_reshetikhin import KirillovReshetikhinCrystal
from sage.combinat.crystals.highest_weight_crystals import HighestWeightCrystal
if ct.letter in ['A','B','C','D']:
return crystals.Letters(ct).cardinality()
elif ct.letter == 'E':
if ct.rank() == 6:
B = KirillovReshetikhinCrystal(['E',6,1], 1,1)
return B.cardinality()
elif ct.rank() == 7:
La = ct.root_system().weight_lattice().fundamental_weight(1)
T = HighestWeightCrystal(La)
return T.cardinality()
elif ct.rank() == 8:
RC = RiggedConfigurations(['E',8,1], [[1,1]])
return RC.cardinality()
elif ct.letter == 'F' and ct.rank() == 4:
RC = RiggedConfigurations(['F',4,1], [[1,1]])
return RC.cardinality()
Diff Code
def statistic(ct): from sage.combinat.crystals.kirillov_reshetikhin import KirillovReshetikhinCrystal from sage.combinat.crystals.highest_weight_crystals import HighestWeightCrystal if ct.letter in ['A','B','C','D']:return crystals.Letters(ct).cardinality() elif ct.letter == 'E': if ct.rank() == 6: B = KirillovReshetikhinCrystal(['E',6,1], 1,1) return B.cardinality() elif ct.rank() == 7: La =Cct.root_system().weight_lattice().fundamental_weight(1) T = HighestWeightCrystal(La) return T.cardinality() elif ct.rank() == 8: RC = RiggedConfigurations(['E',8,1], [[1,1]]) return RCT.cardinality() elif ct.letter == 'F' and ct.rank() == 4: RC = RiggedConfigurations(['F',4,1], [[1,1]]) return RC.cardinality()
Created
Jun 14, 2013 at 16:37 by Travis Scrimshaw
Updated
Jul 15, 2026 at 15:36 by Nupur Jain
Identifier
St001051:
Set partitions
⟶ ℤ
Values
No modified entries
Description
The depth of the label 1 in the decreasing labelled unordered tree associated with the set partition.
The bijection between set partitions of $\{1,\dots,n\}$ into $k$ blocks and trees with $n+1-k$ leaves is described in Theorem 1 of [1].
The bijection between set partitions of $\{1,\dots,n\}$ into $k$ blocks and trees with $n+1-k$ leaves is described in Theorem 1 of [1].
References
[1] Erdős, Péter L., Székely, L. A. Applications of antilexicographic order. I. An enumerative theory of trees MathSciNet:1023945
Code
def statistic(p):
return depth_of_1(set_partition_to_tree(p))
def depth_of_1(T):
if T.label() == 1:
return 0
if T.node_number() == 1:
return infinity
else:
return 1 + min(depth_of_1(C) for C in T)
def set_partition_to_tree(p):
# the children of the smallest label are the largest remaining
# element and its partner
trees = [LabelledRootedTree([LabelledRootedTree([], label=e) for e in b]) for b in p]
max_label = p.size()+1-len(p) # last labelled node
while len(trees) > 1:
max_label += 1
# find tree with smallest child and all children smaller than max_label
A = sorted([T for T in trees if max(C.label() for C in T) < max_label],
key = lambda T: min(C.label() for C in T))[0]
trees.remove(A)
# give it's root node the new label
A = LabelledRootedTree(A, label=max_label)
# find tree with child having label max_label
B = next(T for T in trees
if any(C.label() == max_label for C in T))
trees.remove(B)
# replace the child of B carrying max_label with A
C = LabelledRootedTree([A] + [T for T in B if T.label() != max_label])
trees.append(C)
return trees[0]
Diff Code
def statistic(p): return depth_of_1(set_partition_to_tree(p)) def depth_of_1(T): if T.label() == 1: return 0 if T.node_number() == 1: return infinity else: return 1 + min(depth_of_1(C) for C in T) def set_partition_to_tree(p): # the children of the smallest label are the largest remaining # element and its partner trees = [LabelledRootedTree([LabelledRootedTree([], label=e) for e in b]) for b in p] max_label = p.size()+1-len(p) # last labelled node while len(trees) > 1: max_label += 1 # find tree with smallest child and all children smaller than max_label A = sorted([T for T in trees if max(C.label() for C in T) < max_label], key = lambda T: min(C.label() for C in T))[0] trees.remove(A) # give it's root node the new label A = LabelledRootedTree(A, label=max_label) # find tree with child having label max_label B = next(T for T in trees if any(C.label() == max_label for C in T)).next()trees.remove(B) # replace the child of B carrying max_label with A C = LabelledRootedTree([A] + [T for T in B if T.label() != max_label]) trees.append(C) return trees[0]
Created
Nov 18, 2017 at 18:23 by Martin Rubey
Updated
Jul 15, 2026 at 14:38 by Nupur Jain
Identifier
St001136:
Perfect matchings
⟶ ℤ
Values
No modified entries
Description
The largest label with larger sister in the leaf labelled binary unordered tree associated with the perfect matching.
The bijection between perfect matchings of $\{1,\dots,2n\}$ and trees with $n+1$ leaves is described in Example 5.2.6 of [1].
The bijection between perfect matchings of $\{1,\dots,2n\}$ and trees with $n+1$ leaves is described in Example 5.2.6 of [1].
References
[1] Stanley, R. P. Enumerative combinatorics. Vol. 2 MathSciNet:1676282
Code
def statistic(m):
return largest_label_with_larger_sister(matching_to_tree(m))
def largest_label_with_larger_sister(T):
T0 = T[0].node_number()
T1 = T[1].node_number()
if T0 == T1 == 1:
return min(T[0].label(), T[1].label())
elif T0 == 1 and T1 > 1:
return largest_label_with_larger_sister(T[1])
elif T0 > 1 and T0 == 1:
return largest_label_with_larger_sister(T[0])
elif T0 > 1 and T1 > 1:
return max(largest_label_with_larger_sister(T[0]),
largest_label_with_larger_sister(T[1]))
def matching_to_tree(m):
"""
INPUT:
- m, a PerfectMatching on {1,...,2n}.
OUTPUT:
a decreasingly labelled, unordered full binary tree with n+1 leaves.
EXAMPLES::
sage: m = PerfectMatching([(1,4),(2,9),(3,10),(5,7),(6,8),(11,12)])
sage: ascii_art(matching_to_tree(m))
"""
# the children of the smallest label are the largest remaining
# element and its partner
trees = [LabelledRootedTree([LabelledRootedTree([], label=i),
LabelledRootedTree([], label=j)]) for i, j in m]
max_label = m.size()//2+1 # last labelled node
while len(trees) > 1:
max_label += 1
# find tree with smallest child and both children smaller than max_label
A = sorted([T for T in trees if max(T[0].label(), T[1].label()) < max_label],
key = lambda T: min(T[0].label(), T[1].label()))[0]
trees.remove(A)
# give it's root node the new label
A = LabelledRootedTree(A, label=max_label)
# find tree with child having label max_label
B = next(T for T in trees
if T[0].label() == max_label or T[1].label() == max_label)
trees.remove(B)
# replace B with [B[0], A] or [B[1], A]
if B[0].label() == max_label:
C = LabelledRootedTree([A, B[1]])
else:
C = LabelledRootedTree([A, B[0]])
trees.append(C)
return trees[0]
Diff Code
def statistic(m): return largest_label_with_larger_sister(matching_to_tree(m)) def largest_label_with_larger_sister(T): T0 = T[0].node_number() T1 = T[1].node_number() if T0 == T1 == 1: return min(T[0].label(), T[1].label()) elif T0 == 1 and T1 > 1: return largest_label_with_larger_sister(T[1]) elif T0 > 1 and T0 == 1: return largest_label_with_larger_sister(T[0]) elif T0 > 1 and T1 > 1: return max(largest_label_with_larger_sister(T[0]), largest_label_with_larger_sister(T[1])) def matching_to_tree(m): """ INPUT: - m, a PerfectMatching on {1,...,2n}. OUTPUT: a decreasingly labelled, unordered full binary tree with n+1 leaves. EXAMPLES:: sage: m = PerfectMatching([(1,4),(2,9),(3,10),(5,7),(6,8),(11,12)]) sage: ascii_art(matching_to_tree(m)) """ # the children of the smallest label are the largest remaining # element and its partner trees = [LabelledRootedTree([LabelledRootedTree([], label=i), LabelledRootedTree([], label=j)]) for i, j in m] max_label = m.size()//2+1 # last labelled node while len(trees) > 1: max_label += 1 # find tree with smallest child and both children smaller than max_label A = sorted([T for T in trees if max(T[0].label(), T[1].label()) < max_label], key = lambda T: min(T[0].label(), T[1].label()))[0] trees.remove(A) # give it's root node the new label A = LabelledRootedTree(A, label=max_label) # find tree with child having label max_label B = next(T for T in trees if T[0].label() == max_label or T[1].label() == max_label).next()trees.remove(B) # replace B with [B[0], A] or [B[1], A] if B[0].label() == max_label: C = LabelledRootedTree([A, B[1]]) else: C = LabelledRootedTree([A, B[0]]) trees.append(C) return trees[0]
Created
Apr 07, 2018 at 11:17 by Martin Rubey
Updated
Jul 15, 2026 at 14:35 by Nupur Jain
Identifier
St001134:
Perfect matchings
⟶ ℤ
Values
No modified entries
Description
The largest label in the subtree rooted at the sister of 1 in the leaf labelled binary unordered tree associated with the perfect matching.
The bijection between perfect matchings of $\{1,\dots,2n\}$ and trees with $n+1$ leaves is described in Example 5.2.6 of [1].
The bijection between perfect matchings of $\{1,\dots,2n\}$ and trees with $n+1$ leaves is described in Example 5.2.6 of [1].
References
[1] Stanley, R. P. Enumerative combinatorics. Vol. 2 MathSciNet:1676282
Code
def statistic(m):
return max(sister_of_1(matching_to_tree(m)).leaf_labels())
def sister_of_1(T):
if T[0].label() == 1:
return T[1]
if T[1].label() == 1:
return T[0]
if 1 in T[0].leaf_labels():
return sister_of_1(T[0])
if 1 in T[1].leaf_labels():
return sister_of_1(T[1])
def matching_to_tree(m):
"""
INPUT:
- m, a PerfectMatching on {1,...,2n}.
OUTPUT:
a decreasingly labelled, unordered full binary tree with n+1 leaves.
EXAMPLES::
sage: m = PerfectMatching([(1,4),(2,9),(3,10),(5,7),(6,8),(11,12)])
sage: ascii_art(matching_to_tree(m))
____None___
/ /
_11__ _12_
/ / / /
3 _10_ 6 8_
/ / / /
2 9_ 1 4
/ /
5 7
"""
# the children of the smallest label are the largest remaining
# element and its partner
trees = [LabelledRootedTree([LabelledRootedTree([], label=i),
LabelledRootedTree([], label=j)]) for i, j in m]
max_label = m.size()//2+1 # last labelled node
while len(trees) > 1:
max_label += 1
# find tree with smallest child and both children smaller than max_label
A = sorted([T for T in trees if max(T[0].label(), T[1].label()) < max_label],
key = lambda T: min(T[0].label(), T[1].label()))[0]
trees.remove(A)
# give it's root node the new label
A = LabelledRootedTree(A, label=max_label)
# find tree with child having label max_label
B = next(T for T in trees
if T[0].label() == max_label or T[1].label() == max_label)
trees.remove(B)
# replace B with [B[0], A] or [B[1], A]
if B[0].label() == max_label:
C = LabelledRootedTree([A, B[1]])
else:
C = LabelledRootedTree([A, B[0]])
trees.append(C)
return trees[0]
Diff Code
def statistic(m): return max(sister_of_1(matching_to_tree(m)).leaf_labels()) def sister_of_1(T): if T[0].label() == 1: return T[1] if T[1].label() == 1: return T[0] if 1 in T[0].leaf_labels(): return sister_of_1(T[0]) if 1 in T[1].leaf_labels(): return sister_of_1(T[1]) def matching_to_tree(m): """ INPUT: - m, a PerfectMatching on {1,...,2n}. OUTPUT: a decreasingly labelled, unordered full binary tree with n+1 leaves. EXAMPLES:: sage: m = PerfectMatching([(1,4),(2,9),(3,10),(5,7),(6,8),(11,12)]) sage: ascii_art(matching_to_tree(m)) ____None___ / / _11__ _12_ / / / / 3 _10_ 6 8_ / / / / 2 9_ 1 4 / / 5 7 """ # the children of the smallest label are the largest remaining # element and its partner trees = [LabelledRootedTree([LabelledRootedTree([], label=i), LabelledRootedTree([], label=j)]) for i, j in m] max_label = m.size()//2+1 # last labelled node while len(trees) > 1: max_label += 1 # find tree with smallest child and both children smaller than max_label A = sorted([T for T in trees if max(T[0].label(), T[1].label()) < max_label], key = lambda T: min(T[0].label(), T[1].label()))[0] trees.remove(A) # give it's root node the new label A = LabelledRootedTree(A, label=max_label) # find tree with child having label max_label B = next(T for T in trees if T[0].label() == max_label or T[1].label() == max_label).next()trees.remove(B) # replace B with [B[0], A] or [B[1], A] if B[0].label() == max_label: C = LabelledRootedTree([A, B[1]]) else: C = LabelledRootedTree([A, B[0]]) trees.append(C) return trees[0]
Created
Apr 02, 2018 at 06:45 by Martin Rubey
Updated
Jul 15, 2026 at 14:34 by Nupur Jain
Identifier
St001133:
Perfect matchings
⟶ ℤ
Values
No modified entries
Description
The smallest label in the subtree rooted at the sister of 1 in the decreasing labelled binary unordered tree associated with the perfect matching.
The bijection between perfect matchings of $\{1,\dots,2n\}$ and trees with $n+1$ leaves is described in Example 5.2.6 of [1].
The bijection between perfect matchings of $\{1,\dots,2n\}$ and trees with $n+1$ leaves is described in Example 5.2.6 of [1].
References
[1] Stanley, R. P. Enumerative combinatorics. Vol. 2 MathSciNet:1676282
Code
def statistic(m):
return min(sister_of_1(matching_to_tree(m)).leaf_labels())
def sister_of_1(T):
if T[0].label() == 1:
return T[1]
if T[1].label() == 1:
return T[0]
if 1 in T[0].leaf_labels():
return sister_of_1(T[0])
if 1 in T[1].leaf_labels():
return sister_of_1(T[1])
def matching_to_tree(m):
"""
INPUT:
- m, a PerfectMatching on {1,...,2n}.
OUTPUT:
a decreasingly labelled, unordered full binary tree with n+1 leaves.
EXAMPLES::
sage: m = PerfectMatching([(1,4),(2,9),(3,10),(5,7),(6,8),(11,12)])
sage: ascii_art(matching_to_tree(m))
____None___
/ /
_11__ _12_
/ / / /
3 _10_ 6 8_
/ / / /
2 9_ 1 4
/ /
5 7
"""
# the children of the smallest label are the largest remaining
# element and its partner
trees = [LabelledRootedTree([LabelledRootedTree([], label=i),
LabelledRootedTree([], label=j)]) for i, j in m]
max_label = m.size()//2+1 # last labelled node
while len(trees) > 1:
max_label += 1
# find tree with smallest child and both children smaller than max_label
A = sorted([T for T in trees if max(T[0].label(), T[1].label()) < max_label],
key = lambda T: min(T[0].label(), T[1].label()))[0]
trees.remove(A)
# give it's root node the new label
A = LabelledRootedTree(A, label=max_label)
# find tree with child having label max_label
B = next(T for T in trees
if T[0].label() == max_label or T[1].label() == max_label)
trees.remove(B)
# replace B with [B[0], A] or [B[1], A]
if B[0].label() == max_label:
C = LabelledRootedTree([A, B[1]])
else:
C = LabelledRootedTree([A, B[0]])
trees.append(C)
return trees[0]
Diff Code
def statistic(m): return min(sister_of_1(matching_to_tree(m)).leaf_labels()) def sister_of_1(T): if T[0].label() == 1: return T[1] if T[1].label() == 1: return T[0] if 1 in T[0].leaf_labels(): return sister_of_1(T[0]) if 1 in T[1].leaf_labels(): return sister_of_1(T[1]) def matching_to_tree(m): """ INPUT: - m, a PerfectMatching on {1,...,2n}. OUTPUT: a decreasingly labelled, unordered full binary tree with n+1 leaves. EXAMPLES:: sage: m = PerfectMatching([(1,4),(2,9),(3,10),(5,7),(6,8),(11,12)]) sage: ascii_art(matching_to_tree(m)) ____None___ / / _11__ _12_ / / / / 3 _10_ 6 8_ / / / / 2 9_ 1 4 / / 5 7 """ # the children of the smallest label are the largest remaining # element and its partner trees = [LabelledRootedTree([LabelledRootedTree([], label=i), LabelledRootedTree([], label=j)]) for i, j in m] max_label = m.size()//2+1 # last labelled node while len(trees) > 1: max_label += 1 # find tree with smallest child and both children smaller than max_label A = sorted([T for T in trees if max(T[0].label(), T[1].label()) < max_label], key = lambda T: min(T[0].label(), T[1].label()))[0] trees.remove(A) # give it's root node the new label A = LabelledRootedTree(A, label=max_label) # find tree with child having label max_label B = next(T for T in trees if T[0].label() == max_label or T[1].label() == max_label).next()trees.remove(B) # replace B with [B[0], A] or [B[1], A] if B[0].label() == max_label: C = LabelledRootedTree([A, B[1]]) else: C = LabelledRootedTree([A, B[0]]) trees.append(C) return trees[0]
Created
Apr 02, 2018 at 06:37 by Martin Rubey
Updated
Jul 15, 2026 at 14:34 by Nupur Jain
Identifier
St001132:
Perfect matchings
⟶ ℤ
Values
No modified entries
Description
The number of leaves in the subtree whose sister has label 1 in the decreasing labelled binary unordered tree associated with the perfect matching.
The bijection between perfect matchings of $\{1,\dots,2n\}$ and trees with $n+1$ leaves is described in Example 5.2.6 of [1].
The bijection between perfect matchings of $\{1,\dots,2n\}$ and trees with $n+1$ leaves is described in Example 5.2.6 of [1].
References
[1] Stanley, R. P. Enumerative combinatorics. Vol. 2 MathSciNet:1676282
Code
def statistic(m):
return leaves_of_sister_of_1(matching_to_tree(m))
def leaves_of_sister_of_1(T):
if len(T) == 0:
if T.label() == 1:
return 0
return 1
if T[0].label() == 1:
return (T[1].node_number()+1)/2
if T[1].label() == 1:
return (T[0].node_number()+1)/2
if 1 in T[0].leaf_labels():
return leaves_of_sister_of_1(T[0])
if 1 in T[1].leaf_labels():
return leaves_of_sister_of_1(T[1])
def matching_to_tree(m):
"""
INPUT:
- m, a PerfectMatching on {1,...,2n}.
OUTPUT:
a decreasingly labelled, unordered full binary tree with n+1 leaves.
EXAMPLES::
sage: m = PerfectMatching([(1,4),(2,9),(3,10),(5,7),(6,8),(11,12)])
sage: ascii_art(matching_to_tree(m))
____None___
/ /
_11__ _12_
/ / / /
3 _10_ 6 8_
/ / / /
2 9_ 1 4
/ /
5 7
"""
# the children of the smallest label are the largest remaining
# element and its partner
trees = [LabelledRootedTree([LabelledRootedTree([], label=i),
LabelledRootedTree([], label=j)]) for i, j in m]
max_label = m.size()//2+1 # last labelled node
while len(trees) > 1:
max_label += 1
# find tree with smallest child and both children smaller than max_label
A = sorted([T for T in trees if max(T[0].label(), T[1].label()) < max_label],
key = lambda T: min(T[0].label(), T[1].label()))[0]
trees.remove(A)
# give it's root node the new label
A = LabelledRootedTree(A, label=max_label)
# find tree with child having label max_label
B = next(T for T in trees
if T[0].label() == max_label or T[1].label() == max_label)
trees.remove(B)
# replace B with [B[0], A] or [B[1], A]
if B[0].label() == max_label:
C = LabelledRootedTree([A, B[1]])
else:
C = LabelledRootedTree([A, B[0]])
trees.append(C)
return trees[0]
Diff Code
def statistic(m): return leaves_of_sister_of_1(matching_to_tree(m)) def leaves_of_sister_of_1(T): if len(T) == 0: if T.label() == 1: return 0 return 1 if T[0].label() == 1: return (T[1].node_number()+1)/2 if T[1].label() == 1: return (T[0].node_number()+1)/2 if 1 in T[0].leaf_labels(): return leaves_of_sister_of_1(T[0]) if 1 in T[1].leaf_labels(): return leaves_of_sister_of_1(T[1]) def matching_to_tree(m): """ INPUT: - m, a PerfectMatching on {1,...,2n}. OUTPUT: a decreasingly labelled, unordered full binary tree with n+1 leaves. EXAMPLES:: sage: m = PerfectMatching([(1,4),(2,9),(3,10),(5,7),(6,8),(11,12)]) sage: ascii_art(matching_to_tree(m)) ____None___ / / _11__ _12_ / / / / 3 _10_ 6 8_ / / / / 2 9_ 1 4 / / 5 7 """ # the children of the smallest label are the largest remaining # element and its partner trees = [LabelledRootedTree([LabelledRootedTree([], label=i), LabelledRootedTree([], label=j)]) for i, j in m] max_label = m.size()//2+1 # last labelled node while len(trees) > 1: max_label += 1 # find tree with smallest child and both children smaller than max_label A = sorted([T for T in trees if max(T[0].label(), T[1].label()) < max_label], key = lambda T: min(T[0].label(), T[1].label()))[0] trees.remove(A) # give it's root node the new label A = LabelledRootedTree(A, label=max_label) # find tree with child having label max_label B = next(T for T in trees if T[0].label() == max_label or T[1].label() == max_label).next()trees.remove(B) # replace B with [B[0], A] or [B[1], A] if B[0].label() == max_label: C = LabelledRootedTree([A, B[1]]) else: C = LabelledRootedTree([A, B[0]]) trees.append(C) return trees[0]
Created
Apr 01, 2018 at 22:57 by Martin Rubey
Updated
Jul 15, 2026 at 14:33 by Nupur Jain
Identifier
St001131:
Perfect matchings
⟶ ℤ
Values
No modified entries
Description
The number of trivial trees on the path to label one in the decreasing labelled binary unordered tree associated with the perfect matching.
The bijection between perfect matchings of $\{1,\dots,2n\}$ and trees with $n+1$ leaves is described in Example 5.2.6 of [1].
This statistic records the number of trees consisting of a leaf only on the path to the label one.
The bijection between perfect matchings of $\{1,\dots,2n\}$ and trees with $n+1$ leaves is described in Example 5.2.6 of [1].
This statistic records the number of trees consisting of a leaf only on the path to the label one.
References
[1] Stanley, R. P. Enumerative combinatorics. Vol. 2 MathSciNet:1676282
Code
def statistic(m):
return trivial_trees_on_path_to_1(matching_to_tree(m))
def trivial_trees_on_path_to_1(T):
if T.node_number() == 1:
return 0
if 1 in T[0].leaf_labels():
if T[1].node_number() == 1:
return 1 + trivial_trees_on_path_to_1(T[0])
else:
return trivial_trees_on_path_to_1(T[0])
else:
if T[0].node_number() == 1:
return 1 + trivial_trees_on_path_to_1(T[1])
else:
return trivial_trees_on_path_to_1(T[1])
def matching_to_tree(m):
"""
INPUT:
- m, a PerfectMatching on {1,...,2n}.
OUTPUT:
a decreasingly labelled, unordered full binary tree with n+1 leaves.
EXAMPLES::
sage: m = PerfectMatching([(1,4),(2,9),(3,10),(5,7),(6,8),(11,12)])
sage: ascii_art(matching_to_tree(m))
____None___
/ /
_11__ _12_
/ / / /
3 _10_ 6 8_
/ / / /
2 9_ 1 4
/ /
5 7
"""
# the children of the smallest label are the largest remaining
# element and its partner
trees = [LabelledRootedTree([LabelledRootedTree([], label=i),
LabelledRootedTree([], label=j)]) for i, j in m]
max_label = m.size()//2+1 # last labelled node
while len(trees) > 1:
max_label += 1
# find tree with smallest child and both children smaller than max_label
A = sorted([T for T in trees if max(T[0].label(), T[1].label()) < max_label],
key = lambda T: min(T[0].label(), T[1].label()))[0]
trees.remove(A)
# give it's root node the new label
A = LabelledRootedTree(A, label=max_label)
# find tree with child having label max_label
B = next(T for T in trees
if T[0].label() == max_label or T[1].label() == max_label)
trees.remove(B)
# replace B with [B[0], A] or [B[1], A]
if B[0].label() == max_label:
C = LabelledRootedTree([A, B[1]])
else:
C = LabelledRootedTree([A, B[0]])
trees.append(C)
return trees[0]
Diff Code
def statistic(m): return trivial_trees_on_path_to_1(matching_to_tree(m)) def trivial_trees_on_path_to_1(T): if T.node_number() == 1: return 0 if 1 in T[0].leaf_labels(): if T[1].node_number() == 1: return 1 + trivial_trees_on_path_to_1(T[0]) else: return trivial_trees_on_path_to_1(T[0]) else: if T[0].node_number() == 1: return 1 + trivial_trees_on_path_to_1(T[1]) else: return trivial_trees_on_path_to_1(T[1]) def matching_to_tree(m): """ INPUT: - m, a PerfectMatching on {1,...,2n}. OUTPUT: a decreasingly labelled, unordered full binary tree with n+1 leaves. EXAMPLES:: sage: m = PerfectMatching([(1,4),(2,9),(3,10),(5,7),(6,8),(11,12)]) sage: ascii_art(matching_to_tree(m)) ____None___ / / _11__ _12_ / / / / 3 _10_ 6 8_ / / / / 2 9_ 1 4 / / 5 7 """ # the children of the smallest label are the largest remaining # element and its partner trees = [LabelledRootedTree([LabelledRootedTree([], label=i), LabelledRootedTree([], label=j)]) for i, j in m] max_label = m.size()//2+1 # last labelled node while len(trees) > 1: max_label += 1 # find tree with smallest child and both children smaller than max_label A = sorted([T for T in trees if max(T[0].label(), T[1].label()) < max_label], key = lambda T: min(T[0].label(), T[1].label()))[0] trees.remove(A) # give it's root node the new label A = LabelledRootedTree(A, label=max_label) # find tree with child having label max_label B = next(T for T in trees if T[0].label() == max_label or T[1].label() == max_label).next()trees.remove(B) # replace B with [B[0], A] or [B[1], A] if B[0].label() == max_label: C = LabelledRootedTree([A, B[1]]) else: C = LabelledRootedTree([A, B[0]]) trees.append(C) return trees[0]
Created
Apr 01, 2018 at 22:03 by Martin Rubey
Updated
Jul 15, 2026 at 14:33 by Nupur Jain
Identifier
St001049:
Perfect matchings
⟶ ℤ
Values
No modified entries
Description
The smallest label in the subtree not containing 1 in the decreasing labelled binary unordered tree associated with the perfect matching.
The bijection between perfect matchings of $\{1,\dots,2n\}$ and trees with $n+1$ leaves is described in Example 5.2.6 of [1].
The bijection between perfect matchings of $\{1,\dots,2n\}$ and trees with $n+1$ leaves is described in Example 5.2.6 of [1].
References
[1] Stanley, R. P. Enumerative combinatorics. Vol. 2 MathSciNet:1676282
Code
def statistic(m):
T = matching_to_tree(m)
if 1 in T[0].leaf_labels():
return min(T[1].leaf_labels())
return min(T[0].leaf_labels())
def matching_to_tree(m):
"""
INPUT:
- m, a PerfectMatching on {1,...,2n}.
OUTPUT:
a decreasingly labelled, unordered full binary tree with n+1 leaves.
EXAMPLES::
sage: m = PerfectMatching([(1,4),(2,9),(3,10),(5,7),(6,8),(11,12)])
sage: ascii_art(matching_to_tree(m))
"""
# the children of the smallest label are the largest remaining
# element and its partner
trees = [LabelledRootedTree([LabelledRootedTree([], label=i),
LabelledRootedTree([], label=j)]) for i, j in m]
max_label = m.size()//2+1 # last labelled node
while len(trees) > 1:
max_label += 1
# find tree with smallest child and both children smaller than max_label
A = sorted([T for T in trees if max(T[0].label(), T[1].label()) < max_label],
key = lambda T: min(T[0].label(), T[1].label()))[0]
trees.remove(A)
# give it's root node the new label
A = LabelledRootedTree(A, label=max_label)
# find tree with child having label max_label
B = next(T for T in trees
if T[0].label() == max_label or T[1].label() == max_label)
trees.remove(B)
# replace B with [B[0], A] or [B[1], A]
if B[0].label() == max_label:
C = LabelledRootedTree([A, B[1]])
else:
C = LabelledRootedTree([A, B[0]])
trees.append(C)
return trees[0]
Diff Code
def statistic(m): T = matching_to_tree(m) if 1 in T[0].leaf_labels(): return min(T[1].leaf_labels()) return min(T[0].leaf_labels()) def matching_to_tree(m): """ INPUT: - m, a PerfectMatching on {1,...,2n}. OUTPUT: a decreasingly labelled, unordered full binary tree with n+1 leaves. EXAMPLES:: sage: m = PerfectMatching([(1,4),(2,9),(3,10),(5,7),(6,8),(11,12)]) sage: ascii_art(matching_to_tree(m)) """ # the children of the smallest label are the largest remaining # element and its partner trees = [LabelledRootedTree([LabelledRootedTree([], label=i), LabelledRootedTree([], label=j)]) for i, j in m] max_label = m.size()//2+1 # last labelled node while len(trees) > 1: max_label += 1 # find tree with smallest child and both children smaller than max_label A = sorted([T for T in trees if max(T[0].label(), T[1].label()) < max_label], key = lambda T: min(T[0].label(), T[1].label()))[0] trees.remove(A) # give it's root node the new label A = LabelledRootedTree(A, label=max_label) # find tree with child having label max_label B = next(T for T in trees if T[0].label() == max_label or T[1].label() == max_label).next()trees.remove(B) # replace B with [B[0], A] or [B[1], A] if B[0].label() == max_label: C = LabelledRootedTree([A, B[1]]) else: C = LabelledRootedTree([A, B[0]]) trees.append(C) return trees[0]
Created
Nov 13, 2017 at 12:47 by Martin Rubey
Updated
Jul 15, 2026 at 14:31 by Nupur Jain
Identifier
St001048:
Perfect matchings
⟶ ℤ
Values
No modified entries
Description
The number of leaves in the subtree containing 1 in the decreasing labelled binary unordered tree associated with the perfect matching.
The bijection between perfect matchings of $\{1,\dots,2n\}$ and trees with $n+1$ leaves is described in Example 5.2.6 of [1].
This statistic is the difference between St001045The number of leaves in the subtree not containing one in the decreasing labelled binary unordered tree associated with the perfect matching. and $n+1$.
The bijection between perfect matchings of $\{1,\dots,2n\}$ and trees with $n+1$ leaves is described in Example 5.2.6 of [1].
This statistic is the difference between St001045The number of leaves in the subtree not containing one in the decreasing labelled binary unordered tree associated with the perfect matching. and $n+1$.
References
[1] Stanley, R. P. Enumerative combinatorics. Vol. 2 MathSciNet:1676282
Code
def statistic(m):
T = matching_to_tree(m)
if 1 in T[0].leaf_labels():
return len(T[0].leaf_labels())
return len(T[1].leaf_labels())
def matching_to_tree(m):
"""
INPUT:
- m, a PerfectMatching on {1,...,2n}.
OUTPUT:
a decreasingly labelled, unordered full binary tree with n+1 leaves.
EXAMPLES::
sage: m = PerfectMatching([(1,4),(2,9),(3,10),(5,7),(6,8),(11,12)])
sage: ascii_art(matching_to_tree(m))
"""
# the children of the smallest label are the largest remaining
# element and its partner
trees = [LabelledRootedTree([LabelledRootedTree([], label=i),
LabelledRootedTree([], label=j)]) for i, j in m]
max_label = m.size()//2+1 # last labelled node
while len(trees) > 1:
max_label += 1
# find tree with smallest child and both children smaller than max_label
A = sorted([T for T in trees if max(T[0].label(), T[1].label()) < max_label],
key = lambda T: min(T[0].label(), T[1].label()))[0]
trees.remove(A)
# give it's root node the new label
A = LabelledRootedTree(A, label=max_label)
# find tree with child having label max_label
B = next(T for T in trees
if T[0].label() == max_label or T[1].label() == max_label)
trees.remove(B)
# replace B with [B[0], A] or [B[1], A]
if B[0].label() == max_label:
C = LabelledRootedTree([A, B[1]])
else:
C = LabelledRootedTree([A, B[0]])
trees.append(C)
return trees[0]
Diff Code
def statistic(m): T = matching_to_tree(m) if 1 in T[0].leaf_labels(): return len(T[0].leaf_labels()) return len(T[1].leaf_labels()) def matching_to_tree(m): """ INPUT: - m, a PerfectMatching on {1,...,2n}. OUTPUT: a decreasingly labelled, unordered full binary tree with n+1 leaves. EXAMPLES:: sage: m = PerfectMatching([(1,4),(2,9),(3,10),(5,7),(6,8),(11,12)]) sage: ascii_art(matching_to_tree(m)) """ # the children of the smallest label are the largest remaining # element and its partner trees = [LabelledRootedTree([LabelledRootedTree([], label=i), LabelledRootedTree([], label=j)]) for i, j in m] max_label = m.size()//2+1 # last labelled node while len(trees) > 1: max_label += 1 # find tree with smallest child and both children smaller than max_label A = sorted([T for T in trees if max(T[0].label(), T[1].label()) < max_label], key = lambda T: min(T[0].label(), T[1].label()))[0] trees.remove(A) # give it's root node the new label A = LabelledRootedTree(A, label=max_label) # find tree with child having label max_label B = next(T for T in trees if T[0].label() == max_label or T[1].label() == max_label).next()trees.remove(B) # replace B with [B[0], A] or [B[1], A] if B[0].label() == max_label: C = LabelledRootedTree([A, B[1]]) else: C = LabelledRootedTree([A, B[0]]) trees.append(C) return trees[0]
Created
Nov 13, 2017 at 11:27 by Martin Rubey
Updated
Jul 15, 2026 at 14:31 by Nupur Jain
Identifier
St001045:
Perfect matchings
⟶ ℤ
Values
No modified entries
Description
The number of leaves in the subtree not containing one in the decreasing labelled binary unordered tree associated with the perfect matching.
The bijection between perfect matchings of $\{1,\dots,2n\}$ and trees with $n+1$ leaves is described in Example 5.2.6 of [1].
The number of trees having precisely $j$ leaves in the subtree not containing $1$, computed in [2], is
$$ \binom{n}{j}(2j-3)!!(2n-2j-1)!! $$
The bijection between perfect matchings of $\{1,\dots,2n\}$ and trees with $n+1$ leaves is described in Example 5.2.6 of [1].
The number of trees having precisely $j$ leaves in the subtree not containing $1$, computed in [2], is
$$ \binom{n}{j}(2j-3)!!(2n-2j-1)!! $$
References
[1] Stanley, R. P. Enumerative combinatorics. Vol. 2 MathSciNet:1676282
[2] Dale, M. R. T., Moon, J. W. The permuted analogues of three Catalan sets MathSciNet:1209991
[2] Dale, M. R. T., Moon, J. W. The permuted analogues of three Catalan sets MathSciNet:1209991
Code
def statistic(m):
T = matching_to_tree(m)
if 1 in T[0].leaf_labels():
return len(T[1].leaf_labels())
return len(T[0].leaf_labels())
def matching_to_tree(m):
"""
INPUT:
- m, a PerfectMatching on {1,...,2n}.
OUTPUT:
a decreasingly labelled, unordered full binary tree with n+1 leaves.
EXAMPLES::
sage: m = PerfectMatching([(1,4),(2,9),(3,10),(5,7),(6,8),(11,12)])
sage: ascii_art(matching_to_tree(m))
"""
# the children of the smallest label are the largest remaining
# element and its partner
trees = [LabelledRootedTree([LabelledRootedTree([], label=i),
LabelledRootedTree([], label=j)]) for i, j in m]
max_label = m.size()//2+1 # last labelled node
while len(trees) > 1:
max_label += 1
# find tree with smallest child and both children smaller than max_label
A = sorted([T for T in trees if max(T[0].label(), T[1].label()) < max_label],
key = lambda T: min(T[0].label(), T[1].label()))[0]
trees.remove(A)
# give it's root node the new label
A = LabelledRootedTree(A, label=max_label)
# find tree with child having label max_label
B = next(T for T in trees
if T[0].label() == max_label or T[1].label() == max_label)
trees.remove(B)
# replace B with [B[0], A] or [B[1], A]
if B[0].label() == max_label:
C = LabelledRootedTree([A, B[1]])
else:
C = LabelledRootedTree([A, B[0]])
trees.append(C)
return trees[0]
Diff Code
def statistic(m): T = matching_to_tree(m) if 1 in T[0].leaf_labels(): return len(T[1].leaf_labels()) return len(T[0].leaf_labels()) def matching_to_tree(m): """ INPUT: - m, a PerfectMatching on {1,...,2n}. OUTPUT: a decreasingly labelled, unordered full binary tree with n+1 leaves. EXAMPLES:: sage: m = PerfectMatching([(1,4),(2,9),(3,10),(5,7),(6,8),(11,12)]) sage: ascii_art(matching_to_tree(m)) """ # the children of the smallest label are the largest remaining # element and its partner trees = [LabelledRootedTree([LabelledRootedTree([], label=i), LabelledRootedTree([], label=j)]) for i, j in m] max_label = m.size()//2+1 # last labelled node while len(trees) > 1: max_label += 1 # find tree with smallest child and both children smaller than max_label A = sorted([T for T in trees if max(T[0].label(), T[1].label()) < max_label], key = lambda T: min(T[0].label(), T[1].label()))[0] trees.remove(A) # give it's root node the new label A = LabelledRootedTree(A, label=max_label) # find tree with child having label max_label B = next(T for T in trees if T[0].label() == max_label or T[1].label() == max_label).next()trees.remove(B) # replace B with [B[0], A] or [B[1], A] if B[0].label() == max_label: C = LabelledRootedTree([A, B[1]]) else: C = LabelledRootedTree([A, B[0]]) trees.append(C) return trees[0]
Created
Nov 09, 2017 at 21:36 by Martin Rubey
Updated
Jul 15, 2026 at 14:30 by Nupur Jain
Identifier
St001043:
Perfect matchings
⟶ ℤ
Values
No modified entries
Description
The depth of the leaf closest to the root in the binary unordered tree associated with the perfect matching.
The bijection between perfect matchings of $\{1,\dots,2n\}$ and trees with $n+1$ leaves is described in Example 5.2.6 of [1].
The bijection between perfect matchings of $\{1,\dots,2n\}$ and trees with $n+1$ leaves is described in Example 5.2.6 of [1].
References
[1] Stanley, R. P. Enumerative combinatorics. Vol. 2 MathSciNet:1676282
Code
def statistic(m):
def aux(T):
if len(T) == 0:
return 0
return 1 + min(aux(T[0]), aux(T[1]))
return aux(matching_to_tree(m))
def matching_to_tree(m):
"""
INPUT:
- m, a PerfectMatching on {1,...,2n}.
OUTPUT:
a decreasingly labelled, unordered full binary tree with n+1 leaves.
EXAMPLES::
sage: m = PerfectMatching([(1,4),(2,9),(3,10),(5,7),(6,8),(11,12)])
sage: ascii_art(matching_to_tree(m))
"""
# the children of the smallest label are the largest remaining
# element and its partner
trees = [LabelledRootedTree([LabelledRootedTree([], label=i),
LabelledRootedTree([], label=j)]) for i, j in m]
max_label = m.size()//2+1 # last labelled node
while len(trees) > 1:
max_label += 1
# find tree with smallest child and both children smaller than max_label
A = sorted([T for T in trees if max(T[0].label(), T[1].label()) < max_label],
key = lambda T: min(T[0].label(), T[1].label()))[0]
trees.remove(A)
# give it's root node the new label
A = LabelledRootedTree(A, label=max_label)
# find tree with child having label max_label
B = next(T for T in trees
if T[0].label() == max_label or T[1].label() == max_label)
trees.remove(B)
# replace B with [B[0], A] or [B[1], A]
if B[0].label() == max_label:
C = LabelledRootedTree([A, B[1]])
else:
C = LabelledRootedTree([A, B[0]])
trees.append(C)
return trees[0]
Diff Code
def statistic(m): def aux(T): if len(T) == 0: return 0 return 1 + min(aux(T[0]), aux(T[1])) return aux(matching_to_tree(m)) def matching_to_tree(m): """ INPUT: - m, a PerfectMatching on {1,...,2n}. OUTPUT: a decreasingly labelled, unordered full binary tree with n+1 leaves. EXAMPLES:: sage: m = PerfectMatching([(1,4),(2,9),(3,10),(5,7),(6,8),(11,12)]) sage: ascii_art(matching_to_tree(m)) """ # the children of the smallest label are the largest remaining # element and its partner trees = [LabelledRootedTree([LabelledRootedTree([], label=i), LabelledRootedTree([], label=j)]) for i, j in m] max_label = m.size()//2+1 # last labelled node while len(trees) > 1: max_label += 1 # find tree with smallest child and both children smaller than max_label A = sorted([T for T in trees if max(T[0].label(), T[1].label()) < max_label], key = lambda T: min(T[0].label(), T[1].label()))[0] trees.remove(A) # give it's root node the new label A = LabelledRootedTree(A, label=max_label) # find tree with child having label max_label B = next(T for T in trees if T[0].label() == max_label or T[1].label() == max_label).next()trees.remove(B) # replace B with [B[0], A] or [B[1], A] if B[0].label() == max_label: C = LabelledRootedTree([A, B[1]]) else: C = LabelledRootedTree([A, B[0]]) trees.append(C) return trees[0]
Created
Nov 08, 2017 at 21:41 by Martin Rubey
Updated
Jul 15, 2026 at 14:29 by Nupur Jain
Identifier
St001167:
Dyck paths
⟶ ℤ
Values
No modified entries
Description
The number of simple modules that occur as the top of an indecomposable non-projective reflexive module in the linear Nakayama algebra corresponding to a Dyck path.
Here, the top of a module $M$ is $\operatorname{top}(M)=M/\operatorname{rad}(M)$, i.e., the cokernel of the inclusion $\operatorname{rad}(M)\hookrightarrow M$.
For linear Nakayama algebras with at most nine simple modules, this statistic also coincides with the number of simple modules of projective dimension at least three in the corresponding linear Nakayama algebra.
The correspondence between linear Nakayama algebras and Dyck paths is explained on the Nakayama algebras page.
Here, the top of a module $M$ is $\operatorname{top}(M)=M/\operatorname{rad}(M)$, i.e., the cokernel of the inclusion $\operatorname{rad}(M)\hookrightarrow M$.
For linear Nakayama algebras with at most nine simple modules, this statistic also coincides with the number of simple modules of projective dimension at least three in the corresponding linear Nakayama algebra.
The correspondence between linear Nakayama algebras and Dyck paths is explained on the Nakayama algebras page.
Diff Description
The number of simple modules that occur as the top of an indecomposable non-projective reflexive module in the linear Nakayama algebra corresponding to a Dyck path.
Here, the top of a module M is \operatorname{top}(M)=M/\operatorname{rad}(M), i.e., the cokernel of the inclusion \operatorname{rad}(M)\hookrightarrow M.
For linear Nakayama algebras with at mosteightnine simple modules, this statistic also coincides with the number of simple modules of projective dimension at least three in the corresponding linear Nakayama algebra.
The correspondence between linear Nakayama algebras and Dyck paths is explained on the [[https://www.findstat.org/CollectionsDatabase/DyckPaths/NakayamaAlgebras/|Nakayama algebras]] page.
Here, the top of a module M is \operatorname{top}(M)=M/\operatorname{rad}(M), i.e., the cokernel of the inclusion \operatorname{rad}(M)\hookrightarrow M.
For linear Nakayama algebras with at most
The correspondence between linear Nakayama algebras and Dyck paths is explained on the [[https://www.findstat.org/CollectionsDatabase/DyckPaths/NakayamaAlgebras/|Nakayama algebras]] page.
References
[1] Marczinzik, René Upper bounds for the dominant dimension of Nakayama and related algebras. zbMATH:06820683
Code
gap('LoadPackage("QPA");')
import tempfile as _tf, os as _os
_gap_code = r"""
DeclareOperation("NthRadical",[IsList]);
InstallMethod(NthRadical, "for a representation of a quiver", [IsList], 0, function(LIST)
local M, N, f, h, i, n;
M := LIST[1];
n := LIST[2];
if n = 0 then
return(IdentityMapping(M));
else
f := RadicalOfModuleInclusion(M);
N := Source(f);
for i in [1..n-1] do
h := RadicalOfModuleInclusion(N);
N := Source(h);
f := \*(h,f);
od;
return(f);
fi;
end);
DeclareOperation("ARQuiverNak",[IsList]);
InstallMethod(ARQuiverNak, "for a representation of a quiver", [IsList], 0, function(LIST)
local A, UU, i, injA, j;
A := LIST[1];
injA := IndecInjectiveModules(A);
UU := [];
for i in injA do
for j in [0..Dimension(i)-1] do
Append(UU,[Source(NthRadical([i,j]))]);
od;
od;
return(UU);
end);
DeclareOperation("numbersimplespdatleast3",[IsList]);
InstallMethod(numbersimplespdatleast3, "for a representation of a quiver", [IsList],0,function(LIST)
local A, UU, simA;
A := LIST[1];
simA := SimpleModules(A);
UU := Filtered(simA,x->ProjDimensionOfModule(x,30)>=3);
return(Size(UU));
end);
DeclareOperation("IsNtorsionfree",[IsList]);
InstallMethod(IsNtorsionfree, "for a representation of a quiver", [IsList],0,function(LIST)
local A, CoRegA, M, i, n, temm23;
A := LIST[1];
M := LIST[2];
n := LIST[3];
CoRegA := DirectSumOfQPAModules(IndecInjectiveModules(A));
temm23 := [];
for i in [0..n-1] do Append(temm23,[Size(ExtOverAlgebra(NthSyzygy(CoRegA,i),DTr(M))[2])]);
od;
return(Sum(temm23));
end);
DeclareOperation("topreflexive",[IsList]);
InstallMethod(topreflexive, "for a representation of a quiver", [IsList],0,function(LIST)
local A, LL, LL2, UU, UU2, x;
A := LIST[1];
LL := ARQuiverNak([A]);
LL2 := Filtered(LL,x->IsProjectiveModule(x)=false and IsNtorsionfree([A,x,2])=0);
UU := [];
for x in LL2 do Append(UU,[DimensionVector(TopOfModule(x))]);
od;
UU2 := Set(UU);
return(Size(UU2));
end);
"""
with _tf.NamedTemporaryFile(mode="w", suffix=".g", delete=False, dir="/tmp") as _f:
_f.write('LoadPackage("QPA");;\n')
_f.write(_gap_code)
_tmp = _f.name
gap.eval('Read("' + _tmp + '");')
_os.unlink(_tmp)
def kupisch(D):
DR = D.reverse()
H = DR.heights()
return [1 + H[i] for i, s in enumerate(DR) if s == 0] + [1]
def statistic(D):
K = kupisch(D)
A = gap.NakayamaAlgebra(gap.GF(3), K)
return ZZ(gap.topreflexive([A]))
Created
Apr 28, 2018 at 12:02 by Rene Marczinzik
Updated
May 29, 2026 at 15:59 by Nupur Jain
Values
No modified entries
Description
The Ramsey number of a graph.
This is the smallest integer $n$ such that every two-colouring of the edges of the complete graph $K_n$ contains a (not necessarily induced) monochromatic copy of the given graph. [1]
Thus, the Ramsey number of the complete graph $K_n$ is the ordinary Ramsey number $R(n,n)$. Very few of these numbers are known, in particular, it is only known that $43\leq R(5,5)\leq 46$. [2,3,4,5,6]
This is the smallest integer $n$ such that every two-colouring of the edges of the complete graph $K_n$ contains a (not necessarily induced) monochromatic copy of the given graph. [1]
Thus, the Ramsey number of the complete graph $K_n$ is the ordinary Ramsey number $R(n,n)$. Very few of these numbers are known, in particular, it is only known that $43\leq R(5,5)\leq 46$. [2,3,4,5,6]
Diff Description
The Ramsey number of a graph.
This is the smallest integer n such that every two-colouring of the edges of the complete graph K_n contains a (not necessarily induced) monochromatic copy of the given graph. [1]
Thus, the Ramsey number of the complete graph K_n is the ordinary Ramsey number R(n,n). Very few of these numbers are known, in particular, it is only known that 43\leq R(5,5)\leq 486. [2,3,4,5,6]
This is the smallest integer n such that every two-colouring of the edges of the complete graph K_n contains a (not necessarily induced) monochromatic copy of the given graph. [1]
Thus, the Ramsey number of the complete graph K_n is the ordinary Ramsey number R(n,n). Very few of these numbers are known, in particular, it is only known that 43\leq R(5,5)\leq 4
References
[1] Chvatál, C., Rödl, V., Szemerédi, E., Trotter, Jr., W. T. The Ramsey number of a graph with bounded maximum degree MathSciNet:0714447
[2] Radziszowski, Stanisław P. Small Ramsey numbers MathSciNet:1670625
[3] wikipedia:Ramsey's theorem#Ramsey numbers
[4] Hendry, G. R. T. Ramsey numbers for graphs with five vertices MathSciNet:0994745
[5] Angeltveit, V., McKay, B. D. $R(5,5) \le 48$ arXiv:1703.08768
[6] arXiv 2409.15709
[2] Radziszowski, Stanisław P. Small Ramsey numbers MathSciNet:1670625
[3] wikipedia:Ramsey's theorem#Ramsey numbers
[4] Hendry, G. R. T. Ramsey numbers for graphs with five vertices MathSciNet:0994745
[5] Angeltveit, V., McKay, B. D. $R(5,5) \le 48$ arXiv:1703.08768
[6] arXiv 2409.15709
Diff References
[1] Chvatál, C., Rödl, V., Szemerédi, E., Trotter, Jr., W. T. The Ramsey number of a graph with bounded maximum degree [[MathSciNet:0714447]]
[2] Radziszowski, Stanisław P. Small Ramsey numbers [[MathSciNet:1670625]]
[3] [[wikipedia:Ramsey's theorem#Ramsey numbers]]
[4] Hendry, G. R. T. Ramsey numbers for graphs with five vertices [[MathSciNet:0994745]]
[5] Angeltveit, V., McKay, B. D. R(5,5) \le 48 [[arXiv:1703.08768]]
[6] [[arXiv 2409.15709]]
[2] Radziszowski, Stanisław P. Small Ramsey numbers [[MathSciNet:1670625]]
[3] [[wikipedia:Ramsey's theorem#Ramsey numbers]]
[4] Hendry, G. R. T. Ramsey numbers for graphs with five vertices [[MathSciNet:0994745]]
[5] Angeltveit, V., McKay, B. D. R(5,5) \le 48 [[arXiv:1703.08768]]
[6] [[arXiv 2409.15709]]
Code
N_vertices = 13 # the maximal number of vertices we consider
N_Ramsey = 7 # all graphs with Ramsey number at most N_Ramsey
statistic_dict = dict()
def statistic(G):
return statistic_dict.get(G.canonical_label().copy(immutable=True))
"""
The Ramsey number of a graph.
This is the smallest integer $n$ such that every two-colouring of the
$n$ vertices of the complete graph $K_n$ contains a (not necessarily
induced) monochromatic copy of the given graph. [1]
Thus, the Ramsey number of the complete graph $K_n$ is the ordinary Ramsey number $R(n,n)$. Very few of these numbers are known. [2,3]
[1] Chvatál,Rödl,Szemerédi,Trotter, The Ramsey number of a graph with bounded maximum degree. doi:10.1016/0095-8956(83)90037-0
[2] Radziszowski, Stanisław P. "Small Ramsey numbers." Electron. J. Combin 1.7 (1994).
[3] [[wikipedia:Ramsey's theorem#Ramsey numbers]]
[4] Hendry, G. R. T. Ramsey numbers for graphs with five vertices
"""
def check_Ramsey(n, already_found=[]):
r"""
Colour the complete graph on n vertices with two colours, and
return the subgraphs which appear in all colourings.
EXAMPLES::
sage: L = dict()
sage: n = 2; L[n] = check_Ramsey(n)
sage: n = 3; L[n] = check_Ramsey(n, sum(L.values(), []))
sage: n = 4; L[n] = check_Ramsey(n, sum(L.values(), []))
sage: n = 5; L[n] = check_Ramsey(n, sum(L.values(), []))
sage: n = 6; L[n] = check_Ramsey(n, sum(L.values(), []))
sage: n = 7; L[n] = check_Ramsey(n, sum(L.values(), []))
sage: n=6; graphics_array([H.plot() for H in L[n] if H.is_connected()])
"""
def has_copy(H1, H2, H):
r"""
Return True if there is a copy of H in H1=s or H2=E\s.
"""
S1 = H1.subgraph_search(H)
if not S1 is None:
return True
S2 = H2.subgraph_search(H)
if not S2 is None:
return True
return False
candidates = [H.canonical_label() for k in range(n+1) for H in graphs(k)]
candidates = [H for H in candidates if H not in already_found]
G = graphs.CompleteGraph(n)
E = Set(G.edges(labels=False))
V = G.vertices()
for size in range(1+len(E)//2):
print("check subgraphs of size", size)
tested = []
for s in E.subsets(size):
H1 = Graph(n)
H1.add_edges(s)
H1 = H1.canonical_label()
H2 = Graph(n)
H2.add_edges(E.difference(s))
H2 = H2.canonical_label()
if (H1, H2) not in tested:
tested += [(H1, H2)]
candidates = [H for H in candidates if has_copy(H1, H2, H)]
return candidates
def add_to_dict(G, v):
H = G.canonical_label().copy(immutable=True)
if H in statistic_dict:
assert statistic_dict[H] == v, "The graph %s should have Ramsey number %s, got %s instead"%(repr(H), statistic_dict[H], v)
print("%s already known to have Ramsey value %s"%(repr(H), v))
else:
statistic_dict[H] = v
Ramsey_small = dict()
for n in range(N_Ramsey+1):
Ramsey_small[n] = check_Ramsey(n, sum(Ramsey_small.values(), []))
for v, lG in Ramsey_small.items():
for G in lG:
add_to_dict(G, v)
# table IIIa
Ramsey_almost_complete = dict()
Ramsey_almost_complete[3] = 3
Ramsey_almost_complete[4] = 10
Ramsey_almost_complete[5] = 22
for n, v in Ramsey_almost_complete.items():
G = graphs.CompleteGraph(n)
G.delete_edge(G.edges()[0])
add_to_dict(G, v)
# G8 - G20 are from Table 1 in
# Hendry, G. R. T. Ramsey numbers for graphs with five vertices
G8 = Graph([(1,2),(2,3),(3,4),(4,5),(3,5)]).canonical_label().copy(immutable=True)
G9 = Graph([(1,2),(2,3),(3,4),(4,5),(2,4)]).canonical_label().copy(immutable=True)
G10 = Graph([(1,2),(1,3),(1,4),(1,5),(2,3)]).canonical_label().copy(immutable=True)
G12 = Graph([(1,2),(2,3),(3,4),(4,5),(1,3),(3,5)]).canonical_label().copy(immutable=True)
G13 = Graph([(1,2),(1,3),(1,4),(1,5),(2,3),(3,4)]).canonical_label().copy(immutable=True)
G14 = Graph([(1,2),(1,3),(1,4),(2,5),(2,3),(3,4)]).canonical_label().copy(immutable=True)
G15 = Graph([(1,2),(2,3),(3,4),(4,5),(5,1),(1,3)]).canonical_label().copy(immutable=True)
G16 = Graph([(1,2),(2,3),(3,4),(4,5),(5,1),(1,3),(1,4)]).canonical_label().copy(immutable=True)
G17 = Graph([(1,2),(2,3),(3,4),(4,5),(5,1),(1,3),(2,4)]).canonical_label().copy(immutable=True)
G19 = Graph([(1,2),(1,3),(1,4),(2,3),(2,4),(3,4),(1,5)]).canonical_label().copy(immutable=True)
G20 = Graph([(1,2),(1,3),(1,4),(2,3),(2,4),(3,4),(1,5),(2,5)]).canonical_label().copy(immutable=True)
Ramsey_Hendry = [(G8, 9), (G9, 9), (G10, 9), (G12, 9), (G13, 10), (G14, 10), (G15, 9), (G16, 10), (G17, 10), (G19, 18), (G20, 18)]
for G, v in Ramsey_Hendry:
add_to_dict(G, v)
# table IVa and IVb
Ramsey_bipartite = dict()
Ramsey_bipartite[3, 3] = 18
Ramsey_bipartite[2, 2] = 6
Ramsey_bipartite[2, 3] = 10
Ramsey_bipartite[2, 4] = 14
Ramsey_bipartite[2, 5] = 18
Ramsey_bipartite[2, 6] = 21
Ramsey_bipartite[2, 7] = 26
Ramsey_bipartite[2, 8] = 30
Ramsey_bipartite[2, 9] = 33
Ramsey_bipartite[2, 10] = 38
Ramsey_bipartite[2, 11] = 42
Ramsey_bipartite[2, 12] = 46
Ramsey_bipartite[2, 13] = 50
Ramsey_bipartite[2, 14] = 54
Ramsey_bipartite[2, 15] = 57
Ramsey_bipartite[2, 16] = 62
for (n,m), v in Ramsey_bipartite.items():
add_to_dict(graphs.CompleteBipartiteGraph(n,m), v)
# section 3.3.2 a
def Ramsey_star(n):
m = n-1
assert m > 0
if is_even(m):
return 2*m-1
else:
return 2*m
for n in range(2, N_vertices+1):
add_to_dict(graphs.StarGraph(n-1), Ramsey_star(n))
# section 3.3.2, n
def Ramsey_m_4_star(n):
assert n % 4 == 0, "The number of vertices, %s, should be divisible by 4"%n
m = n//4
assert m >= 2, "There must be at least 2 copies of the star, but there are only %s"%m
return 5*m-1
for n in range(8, N_vertices+1, 4):
add_to_dict(sum([graphs.StarGraph(3) for k in range(n//4)], Graph()), Ramsey_m_4_star(n))
# section 4.1, a,b,c
def Ramsey_cycle(n):
assert n > 2
if is_odd(n) and n > 3:
return 2*n-1
elif is_even(n) and n > 4:
return n-1+(n//2)
elif n == 3 or n == 4:
return 6
for n in range(3, N_vertices+1):
add_to_dict(graphs.CycleGraph(n), Ramsey_cycle(n))
# section 4.1, e
def Ramsey_m_triangles(n):
assert n % 3 == 0, "The number of vertices, %s, should be divisible by 3"%n
m = n // 3
assert m >= 2, "There must be at least 2 copies of the triangle, but there are only %s"%m
return 5*m
for n in range(6, N_vertices+1, 3):
add_to_dict(sum([graphs.CycleGraph(3) for k in range(n//3)], Graph()), Ramsey_m_triangles(n))
# section 4.1, f
def Ramsey_m_squares(n):
assert n % 4 == 0, "The number of vertices, %s, should be divisible by 4"%n
m = n // 4
assert m >= 2, "There must be at least 2 copies of the square, but there are only %s"%m
return 6*m-1
for n in range(8, N_vertices+1, 4):
add_to_dict(sum([graphs.CycleGraph(4) for k in range(n//4)], Graph()), Ramsey_m_squares(n))
# section 5.1
def Ramsey_paths(m):
assert m >= 2
return m + (m//2) - 1
for n in range(2, N_vertices+1):
add_to_dict(graphs.PathGraph(n), Ramsey_paths(n))
# section 5.13 b
def Ramsey_union_K2(m):
assert is_even(m) and m >= 2
return 3*(m//2) - 1
for n in range(2, N_vertices+1, 2):
add_to_dict(sum([graphs.CompleteGraph(2) for k in range(n//2)], Graph()), Ramsey_union_K2(n))
Ramsey_wheel = dict()
# table VIII
Ramsey_wheel[3] = 6
Ramsey_wheel[4] = 18
Ramsey_wheel[5] = 15
Ramsey_wheel[6] = 17
Ramsey_wheel[7] = 19
for n, v in Ramsey_wheel.items():
add_to_dict(graphs.WheelGraph(n), v)
Ramsey_book = dict()
# table IX
Ramsey_book[1] = 6
Ramsey_book[2] = 10
Ramsey_book[3] = 14
Ramsey_book[4] = 18
Ramsey_book[5] = 21
Ramsey_book[6] = 26
for n, v in Ramsey_book.items():
add_to_dict(Graph(1).join(graphs.StarGraph(n)), v)
# R.J. Faudree and R.H. Schelp, Ramsey Numbers for All Linear Forests, Discrete Mathematics, 16 (1976) 149-155.
def Ramsey_linear_forest(n, j):
assert is_even(n-j)
return n + (n-j)//2 - 1
for n in range(2, N_vertices+1):
for la in Partitions(n):
if min(la) > 1:
G = sum([graphs.PathGraph(p) for p in la], Graph())
add_to_dict(G, Ramsey_linear_forest(n, sum(1 for p in la if is_odd(p))))
# J.W. Grossman, The Ramsey Numbers of the Union of Two Stars, Utilitas Mathematica, 16 (1979) 271-279.
def Ramsey_two_stars(n, m):
assert n >= m, "Ramsey_two_stars only valid for n >= m, but n = %s and m = %s"%(n,m)
return max(n+2*m, 2*n+1, n+m+3)
for n in range(2, N_vertices+1):
for m in range(2,(n-1)//2+1):
G = graphs.StarGraph(m-1) + graphs.StarGraph(n-m-1)
add_to_dict(G, Ramsey_two_stars(n-m-1, m-1))
# Yu, P., & Li, Y. (2016). All Ramsey numbers for brooms in graphs. The Electronic Journal of Combinatorics, 23(3), 3-29.
def Ramsey_broom(k, l):
assert k >= 2
n = k+l
if l == 1 or l == 2:
return Ramsey_star(n)
if l == 3:
return Ramsey_star(n-1)
if l >= 2*k - 1:
return n + (l+1)//2 - 1
if 4 <= l <= 2*k - 2:
return 2*n - 2*((l+1)//2) - 1
def BroomGraph(k, l):
G = graphs.StarGraph(k)
assert G.degree(0) == k
G.add_path([0] + [k+1+i for i in range(l-1)])
G.layout("tree", save_pos=True)
return G
for n in range(2, N_vertices+1):
for k in range(2,n-1):
G = BroomGraph(k, n-k)
add_to_dict(G, Ramsey_broom(k, n-k))
# Jerrold W. Grossman, Frank Harary, Maria Klawe, Generalized Ramsey theory for graphs, X: double stars
def Ramsey_double_star(k, l):
assert k >= 2
n = k+l+2
if is_odd(k) and l <= 2:
return max(2*k+1, k+2*l+2)
if (is_even(k) or l >= 3) and (k^2 <= 2*l or k >= 3*l):
return max(2*k+2, k+2*l+2)
def DoubleStarGraph(k, l):
assert k >= l, "DoubleStarGraph only defined for k >= l"
G = graphs.StarGraph(k)
H = G.disjoint_union(graphs.StarGraph(l), "pairs")
H.add_edge((0,0),(1,0))
return H
for n in range(2, N_vertices+1):
for l in range(2,n//2):
k = n-l-2
G = DoubleStarGraph(k, l)
assert G.num_verts() == n
if (is_odd(k) and l <= 2) or ((is_even(k) or l >= 3) and (k^2 <= 2*l or k >= 3*l)):
add_to_dict(G, Ramsey_double_star(k, l))
######################################################################
# finally, add isolated vertices
for G, v in list(statistic_dict.items()):
for k in range(N_vertices-G.num_verts()):
add_to_dict(G.disjoint_union(Graph(k)), max(G.num_verts()+k, v))
Diff Code
N_vertices = 13 # the maximal number of vertices we consider N_Ramsey = 7 # all graphs with Ramsey number at most N_Ramsey statistic_dict = dict() def statistic(G): return statistic_dict.get(G.canonical_label().copy(immutable=True)) """ The Ramsey number of a graph. This is the smallest integer n such that every two-colouring of the n vertices of the complete graph K_n contains a (not necessarily induced) monochromatic copy of the given graph. [1] Thus, the Ramsey number of the complete graph K_n is the ordinary Ramsey number R(n,n). Very few of these numbers are known. [2,3] [1] Chvatál,Rödl,Szemerédi,Trotter, The Ramsey number of a graph with bounded maximum degree. doi:10.1016/0095-8956(83)90037-0 [2] Radziszowski, Stanisław P. "Small Ramsey numbers." Electron. J. Combin 1.7 (1994). [3] [[wikipedia:Ramsey's theorem#Ramsey numbers]] [4] Hendry, G. R. T. Ramsey numbers for graphs with five vertices """ def check_Ramsey(n, already_found=[]): r""" Colour the complete graph on n vertices with two colours, and return the subgraphs which appear in all colourings. EXAMPLES:: sage: L = dict() sage: n = 2; L[n] = check_Ramsey(n) sage: n = 3; L[n] = check_Ramsey(n, sum(L.values(), [])) sage: n = 4; L[n] = check_Ramsey(n, sum(L.values(), [])) sage: n = 5; L[n] = check_Ramsey(n, sum(L.values(), [])) sage: n = 6; L[n] = check_Ramsey(n, sum(L.values(), [])) sage: n = 7; L[n] = check_Ramsey(n, sum(L.values(), [])) sage: n=6; graphics_array([H.plot() for H in L[n] if H.is_connected()]) """ def has_copy(H1, H2, H): r""" Return True if there is a copy of H in H1=s or H2=E\s. """ S1 = H1.subgraph_search(H) if not S1 is None: return True S2 = H2.subgraph_search(H) if not S2 is None: return True return False candidates = [H.canonical_label() for k in range(n+1) for H in graphs(k)] candidates = [H for H in candidates if H not in already_found] G = graphs.CompleteGraph(n) E = Set(G.edges(labels=False)) V = G.vertices() for size in range(1+len(E)//2): print("check subgraphs of size", size) tested = [] for s in E.subsets(size): H1 = Graph(n) H1.add_edges(s) H1 = H1.canonical_label() H2 = Graph(n) H2.add_edges(E.difference(s)) H2 = H2.canonical_label() if (H1, H2) not in tested: tested += [(H1, H2)] candidates = [H for H in candidates if has_copy(H1, H2, H)] return candidates def add_to_dict(G, v): H = G.canonical_label().copy(immutable=True) if H in statistic_dict: assert statistic_dict[H] == v, "The graph %s should have Ramsey number %s, got %s instead"%(repr(H), statistic_dict[H], v) print("%s already known to have Ramsey value %s"%(repr(H), v)) else: statistic_dict[H] = v Ramsey_small = dict() for n in range(N_Ramsey+1): Ramsey_small[n] = check_Ramsey(n, sum(Ramsey_small.values(), [])) for v, lG in Ramsey_small.items(): for G in lG: add_to_dict(G, v) # table IIIa Ramsey_almost_complete = dict() Ramsey_almost_complete[3] = 3 Ramsey_almost_complete[4] = 10 Ramsey_almost_complete[5] = 22 for n, v in Ramsey_almost_complete.items(): G = graphs.CompleteGraph(n) G.delete_edge(G.edges()[0]) add_to_dict(G, v) # G8 - G20 are from Table 1 in # Hendry, G. R. T. Ramsey numbers for graphs with five vertices G8 = Graph([(1,2),(2,3),(3,4),(4,5),(3,5)]).canonical_label().copy(immutable=True) G9 = Graph([(1,2),(2,3),(3,4),(4,5),(2,4)]).canonical_label().copy(immutable=True) G10 = Graph([(1,2),(1,3),(1,4),(1,5),(2,3)]).canonical_label().copy(immutable=True) G12 = Graph([(1,2),(2,3),(3,4),(4,5),(1,3),(3,5)]).canonical_label().copy(immutable=True) G13 = Graph([(1,2),(1,3),(1,4),(1,5),(2,3),(3,4)]).canonical_label().copy(immutable=True) G14 = Graph([(1,2),(1,3),(1,4),(2,5),(2,3),(3,4)]).canonical_label().copy(immutable=True) G15 = Graph([(1,2),(2,3),(3,4),(4,5),(5,1),(1,3)]).canonical_label().copy(immutable=True) G16 = Graph([(1,2),(2,3),(3,4),(4,5),(5,1),(1,3),(1,4)]).canonical_label().copy(immutable=True) G17 = Graph([(1,2),(2,3),(3,4),(4,5),(5,1),(1,3),(2,4)]).canonical_label().copy(immutable=True) G19 = Graph([(1,2),(1,3),(1,4),(2,3),(2,4),(3,4),(1,5)]).canonical_label().copy(immutable=True) G20 = Graph([(1,2),(1,3),(1,4),(2,3),(2,4),(3,4),(1,5),(2,5)]).canonical_label().copy(immutable=True) Ramsey_Hendry = [(G8, 9), (G9, 9), (G10, 9), (G12, 9), (G13, 10), (G14, 10), (G15, 9), (G16, 10), (G17, 10), (G19, 18), (G20, 18)] for G, v in Ramsey_Hendry: add_to_dict(G, v) # table IVa and IVb Ramsey_bipartite = dict() Ramsey_bipartite[3, 3] = 18 Ramsey_bipartite[2, 2] = 6 Ramsey_bipartite[2, 3] = 10 Ramsey_bipartite[2, 4] = 14 Ramsey_bipartite[2, 5] = 18 Ramsey_bipartite[2, 6] = 21 Ramsey_bipartite[2, 7] = 26 Ramsey_bipartite[2, 8] = 30 Ramsey_bipartite[2, 9] = 33 Ramsey_bipartite[2, 10] = 38 Ramsey_bipartite[2, 11] = 42 Ramsey_bipartite[2, 12] = 46 Ramsey_bipartite[2, 13] = 50 Ramsey_bipartite[2, 14] = 54 Ramsey_bipartite[2, 15] = 57 Ramsey_bipartite[2, 16] = 62 for (n,m), v in Ramsey_bipartite.items(): add_to_dict(graphs.CompleteBipartiteGraph(n,m), v) # section 3.3.2 a def Ramsey_star(n): m = n-1 assert m > 0 if is_even(m): return 2*m-1 else: return 2*m for n in range(2, N_vertices+1): add_to_dict(graphs.StarGraph(n-1), Ramsey_star(n)) # section 3.3.2, n def Ramsey_m_4_star(n): assert n % 4 == 0, "The number of vertices, %s, should be divisible by 4"%n m = n//4 assert m >= 2, "There must be at least 2 copies of the star, but there are only %s"%m return 5*m-1 for n in range(8, N_vertices+1, 4): add_to_dict(sum([graphs.StarGraph(3) for k in range(n//4)], Graph()), Ramsey_m_4_star(n)) # section 4.1, a,b,c def Ramsey_cycle(n): assert n > 2 if is_odd(n) and n > 3: return 2*n-1 elif is_even(n) and n > 4: return n-1+(n//2) elif n == 3 or n == 4: return 6 for n in range(3, N_vertices+1): add_to_dict(graphs.CycleGraph(n), Ramsey_cycle(n)) # section 4.1, e def Ramsey_m_triangles(n): assert n % 3 == 0, "The number of vertices, %s, should be divisible by 3"%n m = n // 3 assert m >= 2, "There must be at least 2 copies of the triangle, but there are only %s"%m return 5*m for n in range(6, N_vertices+1, 3): add_to_dict(sum([graphs.CycleGraph(3) for k in range(n//3)], Graph()), Ramsey_m_triangles(n)) # section 4.1, f def Ramsey_m_squares(n): assert n % 4 == 0, "The number of vertices, %s, should be divisible by 4"%n m = n // 4 assert m >= 2, "There must be at least 2 copies of the square, but there are only %s"%m return 6*m-1 for n in range(8, N_vertices+1, 4): add_to_dict(sum([graphs.CycleGraph(4) for k in range(n//4)], Graph()), Ramsey_m_squares(n)) # section 5.1 def Ramsey_paths(m): assert m >= 2 return m + (m//2) - 1 for n in range(2, N_vertices+1): add_to_dict(graphs.PathGraph(n), Ramsey_paths(n)) # section 5.13 b def Ramsey_union_K2(m): assert is_even(m) and m >= 2 return 3*(m//2) - 1 for n in range(2, N_vertices+1, 2): add_to_dict(sum([graphs.CompleteGraph(2) for k in range(n//2)], Graph()), Ramsey_union_K2(n)) Ramsey_wheel = dict() # table VIII Ramsey_wheel[3] = 6 Ramsey_wheel[4] = 18 Ramsey_wheel[5] = 15 Ramsey_wheel[6] = 17 Ramsey_wheel[7] = 19 for n, v in Ramsey_wheel.items(): add_to_dict(graphs.WheelGraph(n), v) Ramsey_book = dict() # table IX Ramsey_book[1] = 6 Ramsey_book[2] = 10 Ramsey_book[3] = 14 Ramsey_book[4] = 18 Ramsey_book[5] = 21 Ramsey_book[6] = 26 for n, v in Ramsey_book.items(): add_to_dict(Graph(1).join(graphs.StarGraph(n)), v) # R.J. Faudree and R.H. Schelp, Ramsey Numbers for All Linear Forests, Discrete Mathematics, 16 (1976) 149-155. def Ramsey_linear_forest(n, j): assert is_even(n-j) return n + (n-j)//2 - 1 for n in range(2, N_vertices+1): for la in Partitions(n): if min(la) > 1: G = sum([graphs.PathGraph(p) for p in la], Graph()) add_to_dict(G, Ramsey_linear_forest(n, sum(1 for p in la if is_odd(p)))) # J.W. Grossman, The Ramsey Numbers of the Union of Two Stars, Utilitas Mathematica, 16 (1979) 271-279. def Ramsey_two_stars(n, m): assert n >= m, "Ramsey_two_stars only valid for n >= m, but n = %s and m = %s"%(n,m) return max(n+2*m, 2*n+1, n+m+3) for n in range(2, N_vertices+1): for m in range(2,(n-1)//2+1): G = graphs.StarGraph(m-1) + graphs.StarGraph(n-m-1) add_to_dict(G, Ramsey_two_stars(n-m-1, m-1)) # Yu, P., & Li, Y. (2016). All Ramsey numbers for brooms in graphs. The Electronic Journal of Combinatorics, 23(3), 3-29. def Ramsey_broom(k, l): assert k >= 2 n = k+l if l == 1 or l == 2: return Ramsey_star(n) if l == 3: return Ramsey_star(n-1) if l >= 2*k - 1: return n + (l+1)//2 - 1 if 4 <= l <= 2*k - 2: return 2*n - 2*((l+1)//2) - 1 def BroomGraph(k, l): G = graphs.StarGraph(k) assert G.degree(0) == k G.add_path([0] + [k+1+i for i in range(l-1)]) G.layout("tree", save_pos=True) return G for n in range(2, N_vertices+1): for k in range(2,n-1): G = BroomGraph(k, n-k) add_to_dict(G, Ramsey_broom(k, n-k)) # Jerrold W. Grossman, Frank Harary, Maria Klawe, Generalized Ramsey theory for graphs, X: double stars def Ramsey_double_star(k, l): assert k >= 2 n = k+l+2 if is_odd(k) and l <= 2: return max(2*k+1, k+2*l+2) if (is_even(k) or l >= 3) and (k^2 <= 2*l or k >= 3*l): return max(2*k+2, k+2*l+2) def DoubleStarGraph(k, l): assert k >= l, "DoubleStarGraph only defined for k >= l" G = graphs.StarGraph(k) H = G.disjoint_union(graphs.StarGraph(l), "pairs") H.add_edge((0,0),(1,0)) return H for n in range(2, N_vertices+1): for l in range(2,n//2): k = n-l-2 G = DoubleStarGraph(k, l) assert G.num_verts() == n if (is_odd(k) and l <= 2) or ((is_even(k) or l >= 3) and (k^2 <= 2*l or k >= 3*l)): add_to_dict(G, Ramsey_double_star(k, l)) ###################################################################### # finally, add isolated vertices for G, v in list(statistic_dict.items()): for k in range(N_vertices-G.num_verts()): add_to_dict(G.disjoint_union(Graph(k)), max(G.num_verts()+k, v))
Created
May 07, 2016 at 08:53 by Martin Rubey
Updated
May 12, 2026 at 16:08 by Martin Rubey
Identifier
St000446:
Permutations ⟶ ℤ
Values
No modified entries
Description
The disorder of a permutation.
Consider a permutation $\pi = [\pi_1,\ldots,\pi_n]$ and cyclically scanning $\pi$ from left to right and remove the elements $1$ through $n$ on this order one after the other. The disorder of $\pi$ is defined to be the number of times a position was not removed in this process.
For example, the disorder of $[3,5,2,1,4]$ is $8$ since on the first scan, 3,5,2 and 4 are not removed, on the second, 3,5 and 4, and on the third and last scan, 5 is once again not removed.
Also, the inverse comajor index of a permutation.
This is, $\operatorname{icomaj}(\pi) = \sum_{i \in \operatorname{Des}(\pi^{-1})} (n-i)$ for a permutation $\pi$ of length $n$.
Consider a permutation $\pi = [\pi_1,\ldots,\pi_n]$ and cyclically scanning $\pi$ from left to right and remove the elements $1$ through $n$ on this order one after the other. The disorder of $\pi$ is defined to be the number of times a position was not removed in this process.
For example, the disorder of $[3,5,2,1,4]$ is $8$ since on the first scan, 3,5,2 and 4 are not removed, on the second, 3,5 and 4, and on the third and last scan, 5 is once again not removed.
Also, the inverse comajor index of a permutation.
This is, $\operatorname{icomaj}(\pi) = \sum_{i \in \operatorname{Des}(\pi^{-1})} (n-i)$ for a permutation $\pi$ of length $n$.
Diff Description
The disorder of a permutation.
Consider a permutation \pi = [\pi_1,\ldots,\pi_n] and cyclically scanning \pi from left to right and remove the elements 1 through n on this order one after the other. The '''disorder''' of \pi is defined to be the number of times a position was not removed in this process.
For example, the disorder of [3,5,2,1,4] is 8 since on the first scan, 3,5,2 and 4 are not removed, on the second, 3,5 and 4, and on the third and last scan, 5 is once again not removed.
Also, the inverse comajor index of a permutation.
This is, \operatorname{icomaj}(\pi) = \sum_{i \in \operatorname{Des}(\pi^{-1})} (n-i) for a permutation \pi of length n.
Consider a permutation \pi = [\pi_1,\ldots,\pi_n] and cyclically scanning \pi from left to right and remove the elements 1 through n on this order one after the other. The '''disorder''' of \pi is defined to be the number of times a position was not removed in this process.
For example, the disorder of [3,5,2,1,4] is 8 since on the first scan, 3,5,2 and 4 are not removed, on the second, 3,5 and 4, and on the third and last scan, 5 is once again not removed.
Also, the inverse comajor index of a permutation.
This is, \operatorname{icomaj}(\pi) = \sum_{i \in \operatorname{Des}(\pi^{-1})} (n-i) for a permutation \pi of length n.
References
[1] Triangle of Mahonian numbers T(n,k): coefficients in expansion of Product_i=0..n-1 (1 + x + ... + x^i), where k ranges from 0 to A000217(n-1). OEIS:A008302
Code
def statistic(pi):
i = 1
pos = 0
count = 0
while i < len(pi):
if pi[pos] == i:
i += 1
elif pi[pos] > i:
count += 1
pos = (pos+1)%len(pi)
return count
def statistic(pi):
n = len(pi)
pinv = pi.inverse()
return sum( n-i for i in [1 .. n-1] if pinv(i) > pinv(i+1) )
Diff Code
def statistic(pi):
i = 1
pos = 0
count = 0
while i < len(pi):
if pi[pos] == i:
i += 1
elif pi[pos] > i:
count += 1
pos = (pos+1)%len(pi)
return count
def statistic(pi):
n = len(pi)
pinv = pi.inverse()
return sum( n-i for i in [1 .. n-1] if pinv(i) > pinv(i+1) )
Created
Mar 15, 2016 at 22:34 by Christian Stump
Updated
Apr 12, 2026 at 16:02 by Eder Guimarães dos Santos
Identifier
St001808:
Dyck paths
⟶ ℤ
Values
No modified entries
Description
The box weight or horizontal decoration of a Dyck path.
Let a Dyck path $D = (d_1,d_2,\dots,d_n)$ with steps $d_i \in \{N=(0,1),E=(1,0)\}$ be given.
For the $i$th step $d_i \in D$ we define the weight
$$ \beta(d_i) = 1, \quad \text{ if } d_i=N, $$
and
$$ \beta(d_i) = \sum_{k = 1}^{i} [\![ d_k = N]\!], \quad \text{ if } d_i=E, $$
where we use the Iverson bracket $[\![ A ]\!]$ that is equal to $1$ if $A$ is true, and $0$ otherwise.
The box weight or horizontal deocration of $D$ is defined as
$$ \prod_{i=1}^{n} \beta(d_i). $$
The name describes the fact that between each $E$ step and the line $y=-1$ exactly one unit box is marked.
Let a Dyck path $D = (d_1,d_2,\dots,d_n)$ with steps $d_i \in \{N=(0,1),E=(1,0)\}$ be given.
For the $i$th step $d_i \in D$ we define the weight
$$ \beta(d_i) = 1, \quad \text{ if } d_i=N, $$
and
$$ \beta(d_i) = \sum_{k = 1}^{i} [\![ d_k = N]\!], \quad \text{ if } d_i=E, $$
where we use the Iverson bracket $[\![ A ]\!]$ that is equal to $1$ if $A$ is true, and $0$ otherwise.
The box weight or horizontal deocration of $D$ is defined as
$$ \prod_{i=1}^{n} \beta(d_i). $$
The name describes the fact that between each $E$ step and the line $y=-1$ exactly one unit box is marked.
References
[1] Elvey Price, A., Fang, W., Wallner, M. Compacted binary trees admit a stretched exponential arXiv:1908.11181
[2] doi:10.4230/LIPIcs.AofA.2020.11
[3] Number of deterministic completely defined initially connected acyclic automata with 2 inputs and n transient unlabeled states (and a unique absorbing state). OEIS:A082161
[2] doi:10.4230/LIPIcs.AofA.2020.11
[3] Number of deterministic completely defined initially connected acyclic automata with 2 inputs and n transient unlabeled states (and a unique absorbing state). OEIS:A082161
Code
def statistic(x):
xw = 1
lvl = 1
for step in x:
if step == 0:
lvl += 1
else:
xw *= lvl
return xw
Diff Code
defdyck_box_weightstatistic(x): xw = 1 lvl = 1 for step in x: if step == 0: lvl += 1 else: xw *= lvl return xw
Created
Jun 13, 2022 at 14:21 by Michael Wallner
Updated
Apr 10, 2026 at 17:27 by Nupur Jain
Identifier
St000978:
Dyck paths
⟶ ℤ
Values
No modified entries
Description
The sum of the positions of double down-steps of a Dyck path.
This is part of MacMahon's equal index of a word, see [1, p. 135] and St000977MacMahon's equal index of a Dyck path..
This is part of MacMahon's equal index of a word, see [1, p. 135] and St000977MacMahon's equal index of a Dyck path..
Diff Description
The sum of the positions of double down-steps of a Dyck path.
This is part of MacMahon's equal index of a word, see [1, p. 135] and [[St000977]].
This is part of MacMahon's equal index of a word, see [1, p. 135] and [[St000977]].
References
[1] MacMahon, P. A. Combinatory analysis. Vol. I, II (bound in one volume) MathSciNet:2417935
Code
def statistic(p):
return sum( i+1 for i in range(len(p)-1) if p[i] == p[i+1] == 0 )
Created
Sep 08, 2017 at 12:19 by Christian Stump
Updated
Mar 22, 2026 at 16:17 by Nupur Jain
Values
No modified entries
Description
The number of vertices in prime modules of a graph.
References
Code
def count_prime_leaves(m):
from sage.graphs.graph_decompositions.modular_decomposition import NodeType
if m.label() == NodeType.PRIME:
return len(m.leaf_labels())
return sum(count_prime_leaves(c) for c in m)
def statistic(G):
m = G.modular_decomposition(algorithm='habib', style='tree')
return count_prime_leaves(m)
Diff Code
def count_prime_leaves(m): from sage.graphs.graph_decompositions.modular_decomposition import NodeTypedef count_prime_leaves(m):if m.label() == NodeType.PRIME: return len(m.leaf_labels()) return sum(count_prime_leaves(c) for c in m) def statistic(G): m = G.modular_decomposition(algorithm='habib', style='tree') return count_prime_leaves(m)
Created
Feb 12, 2019 at 05:27 by Martin Rubey
Updated
Mar 18, 2026 at 16:53 by Nupur Jain
Values
No modified entries
Description
The Szeged index of a graph.
References
[1] Kalvžar, S., Rajapakse, A., Gutman, I. The Szeged and the Wiener index of graphs. zbMATH:0903.05020
Code
def statistic(g):
return sum(h.szeged_index() for h in g.connected_components_subgraphs())
Diff Code
def statistic(g): returngsum(h.szeged_index() for h in g.connected_components_subgraphs())
Created
Jul 27, 2015 at 17:25 by Martin Rubey
Updated
Mar 18, 2026 at 16:36 by Nupur Jain
Identifier
St001443:
Finite Cartan types
⟶ ℤ
Values
No modified entries
Description
The largest coefficient in the Poincaré polynomial of the Weyl group of given Cartan type.
The Poincaré polynomial of a Weyl group $W$ is
$$ \sum_{w\in W} q^{\ell(w)} = \prod_i [d_i]_q, $$
where $\ell$ denotes the Coxeter length, $d_1,\dots$ are the degrees (or exponents) of $W$ and $[n]_q=1 +\dots+q^{n-1}$ is the $q$-integer.
Thus, this statistic records the frequency of the most common length in the group.
The Poincaré polynomial of a Weyl group $W$ is
$$ \sum_{w\in W} q^{\ell(w)} = \prod_i [d_i]_q, $$
where $\ell$ denotes the Coxeter length, $d_1,\dots$ are the degrees (or exponents) of $W$ and $[n]_q=1 +\dots+q^{n-1}$ is the $q$-integer.
Thus, this statistic records the frequency of the most common length in the group.
References
[1] Gaichenkov, M. The growth of maximum elements for the reflection group $D_n$ MathOverflow:336756
Code
def statistic(C):
from sage.combinat.q_analogues import q_int
q = polygen(ZZ, 'q')
return max(prod(q_int(d, q) for d in WeylGroup(C).degrees()).list())
Diff Code
def statistic(C): from sage.combinat.q_analogues import q_int q = polygen(ZZ, 'q') return max(prod(q_int(d, q) for d in WeylGroup(C).degrees()).list())
Created
Jul 22, 2019 at 22:51 by Martin Rubey
Updated
Mar 18, 2026 at 16:29 by Nupur Jain
Identifier
St000790:
Dyck paths
⟶ ℤ
Values
No modified entries
Description
The number of pairs of centered tunnels, one strictly containing the other, of a Dyck path.
Apparently, the total number of these is given in [1]. This number is also ${m \choose 2}$ where $m$ is the value of St000117The number of centered tunnels of a Dyck path. on the same Dyck path.
The statistic counting all pairs of distinct tunnels is the area of a Dyck path St000012The area of a Dyck path..
Apparently, the total number of these is given in [1]. This number is also ${m \choose 2}$ where $m$ is the value of St000117The number of centered tunnels of a Dyck path. on the same Dyck path.
The statistic counting all pairs of distinct tunnels is the area of a Dyck path St000012The area of a Dyck path..
Diff Description
The number of pairs of centered tunnels, one strictly containing the other, of a Dyck path.
Apparently, the total number of these is given in [1]. This number is also {m \choose 2} where m is the value of [[St000117]] on the same Dyck path.
The statistic counting all pairs of distinct tunnels is the area of a Dyck path [[St000012]].
Apparently, the total number of these is given in [1]. This number is also {m \choose 2} where m is the value of [[St000117]] on the same Dyck path.
The statistic counting all pairs of distinct tunnels is the area of a Dyck path [[St000012]].
References
[1] oeis:A000245
WARNING - could not verify link HTTP Error 403: Forbidden
error fetching oeis.org/search?q=A000245&n=1&fmt=text [2] WARNING - could not verify link HTTP Error 403: Forbidden
[3] error fetching https://oeis.org/search?q=A000245&n=1&fmt=text
WARNING - could not verify link HTTP Error 403: Forbidden
error fetching oeis.org/search?q=A000245&n=1&fmt=text [2] WARNING - could not verify link HTTP Error 403: Forbidden
[3] error fetching https://oeis.org/search?q=A000245&n=1&fmt=text
Diff References
[1] [[oeis A0000245 :A000245]]
WARNING - could not verify link HTTP Error 403: Forbidden
error fetching https://oeis.org/search?q=A000245&n=1&fmt=text
[2] WARNING - could not verify link HTTP Error 403: Forbidden
[3] error fetching [[https://oeis.org/search?q=A000245&n=1&fmt=text]]
WARNING - could not verify link HTTP Error 403: Forbidden
error fetching https://oeis.org/search?q=A000245&n=1&fmt=text
[2] WARNING - could not verify link HTTP Error 403: Forbidden
[3] error fetching [[https://oeis.org/search?q=A000245&n=1&fmt=text]]
Code
def statistic(D):
D = DyckWord(D)
n = len(D)
tunnels = D.tunnels()
t = [(i, j) for (i, j) in tunnels if i + j == n]
res = 0
for (a1, b1) in t:
for (a2, b2) in t:
if a1 < a2 < b2 < b1:
res += 1
return res
Created
Apr 23, 2017 at 15:11 by Martin Rubey
Updated
Mar 18, 2026 at 12:16 by Nupur Jain
Identifier
St001025:
Dyck paths
⟶ ℤ
Values
Modified entries:
Description
The number of simple modules with projective dimension four in the linear Nakayama algebra corresponding to a Dyck path.
See St001007The number of simple modules with projective dimension one in the linear Nakayama algebra corresponding to a Dyck path., St001011The number of simple modules with projective dimension two in the linear Nakayama algebra corresponding to a Dyck path., and St001022The number of simple modules with projective dimension three in the linear Nakayama algebra corresponding to a Dyck path. for the number of simple modules with projective dimension one, two, and three respectively.
The correspondence between linear Nakayama algebras and Dyck paths is explained on the Nakayama algebras page.
See St001007The number of simple modules with projective dimension one in the linear Nakayama algebra corresponding to a Dyck path., St001011The number of simple modules with projective dimension two in the linear Nakayama algebra corresponding to a Dyck path., and St001022The number of simple modules with projective dimension three in the linear Nakayama algebra corresponding to a Dyck path. for the number of simple modules with projective dimension one, two, and three respectively.
The correspondence between linear Nakayama algebras and Dyck paths is explained on the Nakayama algebras page.
Code
def count_pd4_simples(dyck_word):
c = kupisch(dyck_word)
n = len(c)
count = 0
for i in range(n):
a, l = i, 1
pd = 0
while l < c[a] and pd < 4:
a, l = a + l, c[a] - l
pd += 1
if pd == 4 and l == c[a]:
count += 1
return count
def kupisch(D):
DR = D.reverse()
H = DR.heights()
return [1 + H[i] for i, s in enumerate(DR) if s == 0] + [1]
def statistic(D):
return count_pd4_simples(D)
Diff Code
gap('LoadPackage("QPA");') import tempfile as _tf, os as _os _gap_code = r""" DeclareOperation("numberssimpprojdim4", [IsList]); InstallMethod(numberssimpprojdim4, "for a representation of a quiver", [IsList],0,function(L) local A, R, RR, list; list := L; A := NakayamaAlgebra(GF(3),list); R := SimpleModules(A); RR := Filtered(R,x->ProjDimensionOfModule(x,4)=4); return(Size(RR)); end ); """ with _tf.NamedTemporaryFile(mode="w", suffix=".g", delete=False, dir="/tmp") as _f: _f.write('LoadPackage("QPA");;\n') _f.write(_gap_code) _tmp = _f.name gap.eval('Read("' + _tmp + '");') _os.unlink(_tmp)def count_pd4_simples(dyck_word): c = kupisch(dyck_word) n = len(c) count = 0 for i in range(n): a, l = i, 1 pd = 0 while l < c[a] and pd < 4: a, l = a + l, c[a] - l pd += 1 if pd == 4 and l == c[a]: count += 1 return count def kupisch(D): DR = D.reverse() H = DR.heights() return [1 + H[i] for i, s in enumerate(DR) if s == 0] + [1] def statistic(D):K = kupisch(D) return ZZ(gap.numberssimpprojdim4(K)return count_pd4_simples(D)
Created
Oct 30, 2017 at 22:21 by Rene Marczinzik
Updated
Mar 13, 2026 at 16:49 by Nupur Jain
Identifier
St001011:
Dyck paths
⟶ ℤ
Values
Modified entries:
Description
The number of simple modules with projective dimension two in the linear Nakayama algebra corresponding to a Dyck path.
See St001007The number of simple modules with projective dimension one in the linear Nakayama algebra corresponding to a Dyck path., St001022The number of simple modules with projective dimension three in the linear Nakayama algebra corresponding to a Dyck path., and St001025The number of simple modules with projective dimension four in the linear Nakayama algebra corresponding to a Dyck path. for the number of simple modules with projective dimension one, three, and four respectively.
The correspondence between linear Nakayama algebras and Dyck paths is explained on the Nakayama algebras page.
See St001007The number of simple modules with projective dimension one in the linear Nakayama algebra corresponding to a Dyck path., St001022The number of simple modules with projective dimension three in the linear Nakayama algebra corresponding to a Dyck path., and St001025The number of simple modules with projective dimension four in the linear Nakayama algebra corresponding to a Dyck path. for the number of simple modules with projective dimension one, three, and four respectively.
The correspondence between linear Nakayama algebras and Dyck paths is explained on the Nakayama algebras page.
Code
def count_pd2_simples(dyck_word):
c = kupisch(dyck_word)
n = len(c)
count = 0
for i in range(n):
a, l = i, 1
pd = 0
while l < c[a] and pd < 2:
a, l = a + l, c[a] - l
pd += 1
if pd == 2 and l == c[a]:
count += 1
return count
def kupisch(D):
DR = D.reverse()
H = DR.heights()
return [1 + H[i] for i, s in enumerate(DR) if s == 0] + [1]
def statistic(D):
return count_pd2_simples(D)
Diff Code
gap('LoadPackage("QPA");') import tempfile as _tf, os as _os _gap_code = r""" DeclareOperation("numberssimpprojdim2", [IsList]); InstallMethod(numberssimpprojdim2, "for a representation of a quiver", [IsList],0,function(L) local A, R, RR, list; list := L; A := NakayamaAlgebra(GF(3),list); R := SimpleModules(A); RR := Filtered(R,x->ProjDimensionOfModule(x,2)=2); return(Size(RR)); end ); """ with _tf.NamedTemporaryFile(mode="w", suffix=".g", delete=False, dir="/tmp") as _f: _f.write('LoadPackage("QPA");;\n') _f.write(_gap_code) _tmp = _f.name gap.eval('Read("' + _tmp + '");') _os.unlink(_tmp)def count_pd2_simples(dyck_word): c = kupisch(dyck_word) n = len(c) count = 0 for i in range(n): a, l = i, 1 pd = 0 while l < c[a] and pd < 2: a, l = a + l, c[a] - l pd += 1 if pd == 2 and l == c[a]: count += 1 return count def kupisch(D): DR = D.reverse() H = DR.heights() return [1 + H[i] for i, s in enumerate(DR) if s == 0] + [1] def statistic(D):K = kupisch(D) return ZZ(gap.numberssimpprojdim2(K)return count_pd2_simples(D)
Created
Oct 29, 2017 at 17:29 by Rene Marczinzik
Updated
Mar 13, 2026 at 16:48 by Nupur Jain
Identifier
St001007:
Dyck paths
⟶ ℤ
(values match
St000024The number of double up and double down steps of a Dyck path., St000443The number of long tunnels of a Dyck path., St001187The number of simple modules of grade at least one in the linear Nakayama algebra corresponding to a Dyck path., St001224Let X be the direct sum of all simple modules of the corresponding Nakayama algebra.)
Values
Modified entries:
Description
The number of simple modules with projective dimension one in the linear Nakayama algebra corresponding to a Dyck path.
See St001011The number of simple modules with projective dimension two in the linear Nakayama algebra corresponding to a Dyck path., St001022The number of simple modules with projective dimension three in the linear Nakayama algebra corresponding to a Dyck path., and St001025The number of simple modules with projective dimension four in the linear Nakayama algebra corresponding to a Dyck path. for the number of simple modules with projective dimension two, three, and four respectively.
The correspondence between linear Nakayama algebras and Dyck paths is explained on the Nakayama algebras page.
See St001011The number of simple modules with projective dimension two in the linear Nakayama algebra corresponding to a Dyck path., St001022The number of simple modules with projective dimension three in the linear Nakayama algebra corresponding to a Dyck path., and St001025The number of simple modules with projective dimension four in the linear Nakayama algebra corresponding to a Dyck path. for the number of simple modules with projective dimension two, three, and four respectively.
The correspondence between linear Nakayama algebras and Dyck paths is explained on the Nakayama algebras page.
Code
def count_pd1_simples(dyck_word):
c = kupisch(dyck_word)
n = len(c)
count = 0
for i in range(n):
a, l = i, 1
pd = 0
while l < c[a] and pd < 1:
a, l = a + l, c[a] - l
pd += 1
if pd == 1 and l == c[a]:
count += 1
return count
def kupisch(D):
DR = D.reverse()
H = DR.heights()
return [1 + H[i] for i, s in enumerate(DR) if s == 0] + [1]
def statistic(D):
return count_pd1_simples(D)
Diff Code
gap('LoadPackage("QPA");') import tempfile as _tf, os as _os _gap_code = r""" DeclareOperation("numberssimpprojdim1", [IsList]); InstallMethod(numberssimpprojdim1, "for a representation of a quiver", [IsList],0,function(L) local A, R, RR, list; list := L; A := NakayamaAlgebra(GF(3),list); R := SimpleModules(A); RR := Filtered(R,x->ProjDimensionOfModule(x,1)=1); return(Size(RR)); end ); """ with _tf.NamedTemporaryFile(mode="w", suffix=".g", delete=False, dir="/tmp") as _f: _f.write('LoadPackage("QPA");;\n') _f.write(_gap_code) _tmp = _f.name gap.eval('Read("' + _tmp + '");') _os.unlink(_tmp)def count_pd1_simples(dyck_word): c = kupisch(dyck_word) n = len(c) count = 0 for i in range(n): a, l = i, 1 pd = 0 while l < c[a] and pd < 1: a, l = a + l, c[a] - l pd += 1 if pd == 1 and l == c[a]: count += 1 return count def kupisch(D): DR = D.reverse() H = DR.heights() return [1 + H[i] for i, s in enumerate(DR) if s == 0] + [1] def statistic(D):K = kupisch(D) return ZZ(gap.numberssimpprojdim1(K))return count_pd1_simples(D)
Created
Oct 29, 2017 at 17:03 by Rene Marczinzik
Updated
Mar 13, 2026 at 16:48 by Nupur Jain
Identifier
St001022:
Dyck paths
⟶ ℤ
Values
Modified entries:
Description
The number of simple modules with projective dimension three in the linear Nakayama algebra corresponding to a Dyck path.
See St001007The number of simple modules with projective dimension one in the linear Nakayama algebra corresponding to a Dyck path., St001011The number of simple modules with projective dimension two in the linear Nakayama algebra corresponding to a Dyck path., and St001025The number of simple modules with projective dimension four in the linear Nakayama algebra corresponding to a Dyck path. for the number of simple modules with projective dimension one, two, and four respectively.
The correspondence between linear Nakayama algebras and Dyck paths is explained on the Nakayama algebras page.
See St001007The number of simple modules with projective dimension one in the linear Nakayama algebra corresponding to a Dyck path., St001011The number of simple modules with projective dimension two in the linear Nakayama algebra corresponding to a Dyck path., and St001025The number of simple modules with projective dimension four in the linear Nakayama algebra corresponding to a Dyck path. for the number of simple modules with projective dimension one, two, and four respectively.
The correspondence between linear Nakayama algebras and Dyck paths is explained on the Nakayama algebras page.
Code
def count_pd3_simples(dyck_word):
c = kupisch(dyck_word)
n = len(c)
pd3_count = 0
# Evaluate the projective dimension for each simple module S(i)
for i in range(n):
a, l = i, 1
pd = 0
# Apply the syzygy operator until the module is projective or pd exceeds 3
while l < c[a] and pd < 3:
a, l = a + l, c[a] - l
pd += 1
# Check if the resolution length is exactly 3
if pd == 3 and l == c[a]:
pd3_count += 1
return pd3_count
def kupisch(D):
DR = D.reverse()
H = DR.heights()
return [1 + H[i] for i, s in enumerate(DR) if s == 0] + [1]
def statistic(D):
return count_pd3_simples(D)
Diff Code
gap('LoadPackage("QPA");') import tempfile as _tf, os as _os _gap_code = r""" DeclareOperation("numberssimpprojdim3", [IsList]); InstallMethod(numberssimpprojdim3, "for a representation of a quiver", [IsList],0,function(L) local A, R, RR, list;def count_pd3_simples(dyck_word): c = kupisch(dyck_word) n = len(c) pd3_count = 0 # Evaluate the projective dimension for each simple module S(i) for i in range(n): a, l = i, 1list := L; A := NakayamaAlgebra(GF(3),list);pd = 0 # Apply the syzygy operator until the module is projective or pd exceeds 3R := SimpleModules(A); RR := Filtered(R,x->ProjDimensionOfModule(x,3)=3); return(Size(RR)); end ); """ with _tf.NamedTemporaryFile(mode="w", suffix=".g", delete=False, dir="/tmp") as _f: _f.write('LoadPackage("QPA");;\n') _f.write(_gap_code) _tmp = _f.name gap.eval('Read("' + _tmp + '");') _os.unlink(_tmp)while l < c[a] and pd < 3: a, l = a + l, c[a] - l pd += 1 # Check if the resolution length is exactly 3 if pd == 3 and l == c[a]: pd3_count += 1 return pd3_count def kupisch(D): DR = D.reverse() H = DR.heights() return [1 + H[i] for i, s in enumerate(DR) if s == 0] + [1] def statistic(D):K = kupisch(D) return ZZ(gap.numberssimpprojdim3(K)return count_pd3_simples(D)
Created
Oct 30, 2017 at 21:54 by Rene Marczinzik
Updated
Mar 13, 2026 at 16:47 by Nupur Jain
Identifier
St001222:
Dyck paths
⟶ ℤ
Values
Modified entries:
[1,0,1,0,1,0,1,0,1,0,1,0,1,0]=>1
[1,0,1,0,1,0,1,0,1,0,1,1,0,0]=>1
[1,0,1,0,1,0,1,0,1,1,0,0,1,0]=>2
[1,0,1,0,1,0,1,0,1,1,0,1,0,0]=>2
[1,0,1,0,1,0,1,0,1,1,1,0,0,0]=>1
[1,0,1,0,1,0,1,1,0,0,1,0,1,0]=>2
[1,0,1,0,1,0,1,1,0,0,1,1,0,0]=>2
[1,0,1,0,1,0,1,1,0,1,0,0,1,0]=>2
[1,0,1,0,1,0,1,1,0,1,0,1,0,0]=>2
[1,0,1,0,1,0,1,1,0,1,1,0,0,0]=>2
[1,0,1,0,1,0,1,1,1,0,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,1,1,1,1,0,0,1,0,1,0,0,1,0,0]=>1
Description
Number of simple modules in the corresponding LNakayama algebra that have a unique 2-extension with the regular module.
Code
DeclareOperation("numberuniqueextn",[IsList]);
InstallMethod(numberuniqueextn, "for a representation of a quiver", [IsList],0,function(LIST)
local A,n,simA,RegA,U;
A:=LIST[1];
n:=LIST[2];
simA:=SimpleModules(A);
RegA:=DirectSumOfQPAModules(IndecProjectiveModules(A));
U:=Filtered(simA,x->Size(ExtOverAlgebra(NthSyzygy(x,n-1),RegA)[2])=1);
return(Size(U));
end);
Diff Code
DeclareOperation("numberuniqueextn",[IsList]); InstallMethod(numberuniqueextn, "for a representation of a quiver", [IsList],0,function(LIST) local A,n,simA,RegA,U; A:=LIST[1]; n:=LIST[2]; simA:=SimpleModules(A); RegA:=DirectSumOfQPAModules(IndecProjectiveModules(A)); U:=Filtered(simA,x->Size(ExtOverAlgebra(NthSyzygy(x,n-1),RegA)[2])=1); return(Size(U)); end);
Created
Jul 13, 2018 at 11:46 by Rene Marczinzik
Updated
Mar 13, 2026 at 16:42 by Nupur Jain
Identifier
St001221:
Dyck paths
⟶ ℤ
Values
Modified entries:
[1,0,1,0,1,0,1,0,1,0,1,0,1,0]=>0
[1,0,1,0,1,0,1,0,1,0,1,1,0,0]=>0
[1,0,1,0,1,0,1,0,1,1,0,0,1,0]=>0
[1,0,1,0,1,0,1,0,1,1,0,1,0,0]=>0
[1,0,1,0,1,0,1,0,1,1,1,0,0,0]=>0
[1,0,1,0,1,0,1,1,0,0,1,0,1,0]=>0
[1,0,1,0,1,0,1,1,0,0,1,1,0,0]=>0
[1,0,1,0,1,0,1,1,0,1,0,0,1,0]=>0
[1,0,1,0,1,0,1,1,0,1,0,1,0,0]=>0
[1,0,1,0,1,0,1,1,0,1,1,0,0,0]=>0
[1,0,1,0,1,0,1,1,1,0,0,0,1,0]=>0
[1,0,1,0,1,0,1,1,1,0,0,1,0,0]=>1
[1,0,1,0,1,0,1,1,1,0,1,0,0,0]=>1
[1,0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,0,0,1,0]=>1
[1,0,1,1,1,0,1,1,1,0,0,0,0,1,0,0]=>2
[1,0,1,1,1,0,1,1,1,0,0,0,1,0,0,0]=>2
[1,0,1,1,1,0,1,1,1,0,0,1,0,0,0,0]=>2
[1,0,1,1,1,0,1,1,1,0,1,0,0,0,0,0]=>2
[1,0,1,1,1,0,1,1,1,1,0,0,0,0,0,0]=>1
[1,0,1,1,1,1,0,0,0,0,1,0,1,0,1,0]=>0
[1,0,1,1,1,1,0,0,0,0,1,0,1,1,0,0]=>0
[1,0,1,1,1,1,0,0,0,0,1,1,0,0,1,0]=>0
[1,0,1,1,1,1,0,0,0,0,1,1,0,1,0,0]=>0
[1,0,1,1,1,1,0,0,0,0,1,1,1,0,0,0]=>0
[1,0,1,1,1,1,0,0,0,1,0,0,1,0,1,0]=>1
[1,0,1,1,1,1,0,0,0,1,0,0,1,1,0,0]=>1
[1,0,1,1,1,1,0,0,0,1,0,1,0,0,1,0]=>1
[1,0,1,1,1,1,0,0,0,1,0,1,0,1,0,0]=>1
[1,0,1,1,1,1,0,0,0,1,0,1,1,0,0,0]=>1
[1,0,1,1,1,1,0,0,0,1,1,0,0,0,1,0]=>1
[1,0,1,1,1,1,0,0,0,1,1,0,0,1,0,0]=>1
[1,0,1,1,1,1,0,0,0,1,1,0,1,0,0,0]=>1
[1,0,1,1,1,1,0,0,0,1,1,1,0,0,0,0]=>1
[1,0,1,1,1,1,0,0,1,0,0,0,1,0,1,0]=>0
[1,0,1,1,1,1,0,0,1,0,0,0,1,1,0,0]=>0
[1,0,1,1,1,1,0,0,1,0,0,1,0,0,1,0]=>0
[1,0,1,1,1,1,0,0,1,0,0,1,0,1,0,0]=>0
[1,0,1,1,1,1,0,0,1,0,0,1,1,0,0,0]=>0
[1,0,1,1,1,1,0,0,1,0,1,0,0,0,1,0]=>0
[1,0,1,1,1,1,0,0,1,0,1,0,0,1,0,0]=>0
Description
The number of simple modules in the corresponding LNakayama algebra that have 2 dimensional second Extension group with the regular module.
Code
DeclareOperation("number2dimextn",[IsList]);
InstallMethod(number2dimextn, "for a representation of a quiver", [IsList],0,function(LIST)
local A,n,simA,RegA,U;
A:=LIST[1];
n:=LIST[2];
simA:=SimpleModules(A);
RegA:=DirectSumOfQPAModules(IndecProjectiveModules(A));
U:=Filtered(simA,x->Size(ExtOverAlgebra(NthSyzygy(x,n-1),RegA)[2])=2);
return(Size(U));
end);
Diff Code
DeclareOperation("number2dimextn",[IsList]); InstallMethod(number2dimextn, "for a representation of a quiver", [IsList],0,function(LIST) local A,n,simA,RegA,U; A:=LIST[1]; n:=LIST[2]; simA:=SimpleModules(A); RegA:=DirectSumOfQPAModules(IndecProjectiveModules(A)); U:=Filtered(simA,x->Size(ExtOverAlgebra(NthSyzygy(x,n-1),RegA)[2])=2); return(Size(U)); end);
Created
Jul 13, 2018 at 11:55 by Rene Marczinzik
Updated
Mar 13, 2026 at 16:42 by Nupur Jain
Identifier
St001217:
Dyck paths
⟶ ℤ
Values
Modified entries:
[1,0,1,0,1,0,1,0,1,0,1,0,1,0]=>0
[1,0,1,0,1,0,1,0,1,0,1,1,0,0]=>0
[1,0,1,0,1,0,1,0,1,1,0,0,1,0]=>0
[1,0,1,0,1,0,1,0,1,1,0,1,0,0]=>0
[1,0,1,0,1,0,1,0,1,1,1,0,0,0]=>0
[1,0,1,0,1,0,1,1,0,0,1,0,1,0]=>0
[1,0,1,0,1,0,1,1,0,0,1,1,0,0]=>0
[1,0,1,0,1,0,1,1,0,1,0,0,1,0]=>0
[1,0,1,0,1,0,1,1,0,1,0,1,0,0]=>0
[1,0,1,0,1,0,1,1,0,1,1,0,0,0]=>0
[1,0,1,0,1,0,1,1,1,0,0,0,1,0]=>0
[1,0,1,0,1,0,1,1,1,0,0,1,0,0]=>0
[1,0,1,0,1,0,1,1,1,0,1,0,0,0]=>0
[1,0,1,0,1,0,1,1,1,1,0,0,0,0]=>0
[1,0,1,0,1,1,0,0,1,0,1,0,1,0]=>0
[1,0,1,0,1,1,0,0,1,0,1,1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
[1,0,1,1,1,0,1,1,1,0,0,1,0,0,0,0]=>0
[1,0,1,1,1,0,1,1,1,0,1,0,0,0,0,0]=>0
[1,0,1,1,1,0,1,1,1,1,0,0,0,0,0,0]=>0
[1,0,1,1,1,1,0,0,0,0,1,0,1,0,1,0]=>0
[1,0,1,1,1,1,0,0,0,0,1,0,1,1,0,0]=>0
[1,0,1,1,1,1,0,0,0,0,1,1,0,0,1,0]=>0
[1,0,1,1,1,1,0,0,0,0,1,1,0,1,0,0]=>0
[1,0,1,1,1,1,0,0,0,0,1,1,1,0,0,0]=>0
[1,0,1,1,1,1,0,0,0,1,0,0,1,0,1,0]=>0
[1,0,1,1,1,1,0,0,0,1,0,0,1,1,0,0]=>0
[1,0,1,1,1,1,0,0,0,1,0,1,0,0,1,0]=>0
[1,0,1,1,1,1,0,0,0,1,0,1,0,1,0,0]=>0
[1,0,1,1,1,1,0,0,0,1,0,1,1,0,0,0]=>0
[1,0,1,1,1,1,0,0,0,1,1,0,0,0,1,0]=>0
[1,0,1,1,1,1,0,0,0,1,1,0,0,1,0,0]=>0
[1,0,1,1,1,1,0,0,0,1,1,0,1,0,0,0]=>0
[1,0,1,1,1,1,0,0,0,1,1,1,0,0,0,0]=>0
[1,0,1,1,1,1,0,0,1,0,0,0,1,0,1,0]=>0
[1,0,1,1,1,1,0,0,1,0,0,0,1,1,0,0]=>0
[1,0,1,1,1,1,0,0,1,0,0,1,0,0,1,0]=>0
[1,0,1,1,1,1,0,0,1,0,0,1,0,1,0,0]=>0
[1,0,1,1,1,1,0,0,1,0,0,1,1,0,0,0]=>0
[1,0,1,1,1,1,0,0,1,0,1,0,0,0,1,0]=>0
[1,0,1,1,1,1,0,0,1,0,1,0,0,1,0,0]=>0
Description
The projective dimension of the indecomposable injective module I[n-2] in the corresponding Nakayama algebra with simples enumerated from 0 to n-1.
Code
DeclareOperation("Projdimindinj",[IsList]);
InstallMethod(Projdimindinj, "for a representation of a quiver", [IsList],0,function(LIST)
local A,U,UU,RegA,WU;
A:=LIST[1];
U:=IndecInjectiveModules(A)[Size(SimpleModules(A))-1];
return(ProjDimensionOfModule(U,30));
end);
Diff Code
DeclareOperation("Projdimindinj",[IsList]); InstallMethod(Projdimindinj, "for a representation of a quiver", [IsList],0,function(LIST) local A,U,UU,RegA,WU; A:=LIST[1]; U:=IndecInjectiveModules(A)[Size(SimpleModules(A))-1]; return(ProjDimensionOfModule(U,30)); end);
Created
Jun 22, 2018 at 16:20 by Rene Marczinzik
Updated
Mar 13, 2026 at 16:42 by Nupur Jain
Identifier
St001216:
Dyck paths
⟶ ℤ
Values
Modified entries:
[1,0,1,0,1,0,1,0,1,0,1,0,1,0]=>0
[1,0,1,0,1,0,1,0,1,0,1,1,0,0]=>0
[1,0,1,0,1,0,1,0,1,1,0,0,1,0]=>1
[1,0,1,0,1,0,1,0,1,1,0,1,0,0]=>1
[1,0,1,0,1,0,1,0,1,1,1,0,0,0]=>0
[1,0,1,0,1,0,1,1,0,0,1,0,1,0]=>0
[1,0,1,0,1,0,1,1,0,0,1,1,0,0]=>1
[1,0,1,0,1,0,1,1,0,1,0,0,1,0]=>0
[1,0,1,0,1,0,1,1,0,1,0,1,0,0]=>1
[1,0,1,0,1,0,1,1,0,1,1,0,0,0]=>1
[1,0,1,0,1,0,1,1,1,0,0,0,1,0]=>1
[1,0,1,0,1,0,1,1,1,0,0,1,0,0]=>2
[1,0,1,0,1,0,1,1,1,0,1,0,0,0]=>2
[1,0,1,0,1,0,1,1,1,1,0,0,0,0]=>0
[1,0,1,0,1,1,0,0,1,0,1,0,1,0]=>0
[1,0,1,0,1,1,0,0,1,0,1,1,0,0]=>0
[1,0,1,0,1,1,0,0,1,1,0,0,1,0]=>2
[1,0,1,0,1,1,0,0,1,1,0,1,0,0]=>1
[1,0,1,0,1,1,0,0,1,1,1,0,0,0]=>1
[1,0,1,0,1,1,0,1,0,0,1,0,1,0]=>0
[1,0,1,0,1,1,0,1,0,0,1,1,0,0]=>0
[1,0,1,0,1,1,0,1,0,1,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1,1,0,0,0,0,1,1,0,0,1,0]=>3
[1,0,1,1,1,1,0,0,0,0,1,1,0,1,0,0]=>2
[1,0,1,1,1,1,0,0,0,0,1,1,1,0,0,0]=>2
[1,0,1,1,1,1,0,0,0,1,0,0,1,0,1,0]=>2
[1,0,1,1,1,1,0,0,0,1,0,0,1,1,0,0]=>2
[1,0,1,1,1,1,0,0,0,1,0,1,0,0,1,0]=>2
[1,0,1,1,1,1,0,0,0,1,0,1,0,1,0,0]=>1
[1,0,1,1,1,1,0,0,0,1,0,1,1,0,0,0]=>2
[1,0,1,1,1,1,0,0,0,1,1,0,0,0,1,0]=>4
[1,0,1,1,1,1,0,0,0,1,1,0,0,1,0,0]=>3
[1,0,1,1,1,1,0,0,0,1,1,0,1,0,0,0]=>3
[1,0,1,1,1,1,0,0,0,1,1,1,0,0,0,0]=>3
[1,0,1,1,1,1,0,0,1,0,0,0,1,0,1,0]=>3
[1,0,1,1,1,1,0,0,1,0,0,0,1,1,0,0]=>3
[1,0,1,1,1,1,0,0,1,0,0,1,0,0,1,0]=>3
[1,0,1,1,1,1,0,0,1,0,0,1,0,1,0,0]=>2
[1,0,1,1,1,1,0,0,1,0,0,1,1,0,0,0]=>3
[1,0,1,1,1,1,0,0,1,0,1,0,0,0,1,0]=>3
[1,0,1,1,1,1,0,0,1,0,1,0,0,1,0,0]=>2
Description
The number of indecomposable injective modules in the corresponding Nakayama algebra that have non-vanishing second Ext-group with the regular module.
Code
DeclareOperation("ext2inj",[IsList]);
InstallMethod(ext2inj, "for a representation of a quiver", [IsList],0,function(LIST)
local A,N,RegA,g,temmi,UT,M,L,U,simA,injA,UU;
A:=LIST[1];
injA:=IndecInjectiveModules(A);
RegA:=DirectSumOfQPAModules(IndecProjectiveModules(A));
U:=Filtered(injA,x->Size(ExtOverAlgebra(NthSyzygy(x,1),RegA)[2])>0);
return(Size(U));
end);
Created
Jun 20, 2018 at 23:50 by Rene Marczinzik
Updated
Mar 13, 2026 at 16:42 by Nupur Jain
Identifier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,0,0]=>14
[1,0,1,1,1,1,0,0,0,1,1,0,0,0,1,0]=>13
[1,0,1,1,1,1,0,0,0,1,1,0,0,1,0,0]=>14
[1,0,1,1,1,1,0,0,0,1,1,0,1,0,0,0]=>15
[1,0,1,1,1,1,0,0,0,1,1,1,0,0,0,0]=>12
[1,0,1,1,1,1,0,0,1,0,0,0,1,0,1,0]=>15
[1,0,1,1,1,1,0,0,1,0,0,0,1,1,0,0]=>14
[1,0,1,1,1,1,0,0,1,0,0,1,0,0,1,0]=>16
[1,0,1,1,1,1,0,0,1,0,0,1,0,1,0,0]=>17
[1,0,1,1,1,1,0,0,1,0,0,1,1,0,0,0]=>15
[1,0,1,1,1,1,0,0,1,0,1,0,0,0,1,0]=>17
[1,0,1,1,1,1,0,0,1,0,1,0,0,1,0,0]=>18
Description
The number of indecomposable modules in the corresponding Nakayama algebra that have vanishing first Ext-group with the regular module.
Code
DeclareOperation("Ext1countall",[IsList]);
InstallMethod(Ext1countall, "for a representation of a quiver", [IsList],0,function(LIST)
local A,simA,RegA,U,L;
A:=LIST[1];
L:=ARQuiver([A,1000])[2];
RegA:=DirectSumOfQPAModules(IndecProjectiveModules(A));
U:=Filtered(L,x->Size(ExtOverAlgebra(NthSyzygy(x,0),RegA)[2])=0);
return(Size(U));
end);
Created
Jun 20, 2018 at 16:24 by Rene Marczinzik
Updated
Mar 13, 2026 at 16:42 by Nupur Jain
Identifier
St001212:
Dyck paths
⟶ ℤ
Values
Modified entries:
[1,0,1,0,1,0,1,0,1,0,1,0,1,0]=>1
[1,0,1,0,1,0,1,0,1,0,1,1,0,0]=>1
[1,0,1,0,1,0,1,0,1,1,0,0,1,0]=>2
[1,0,1,0,1,0,1,0,1,1,0,1,0,0]=>2
[1,0,1,0,1,0,1,0,1,1,1,0,0,0]=>1
[1,0,1,0,1,0,1,1,0,0,1,0,1,0]=>2
[1,0,1,0,1,0,1,1,0,0,1,1,0,0]=>2
[1,0,1,0,1,0,1,1,0,1,0,0,1,0]=>2
[1,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0]=>2
[1,0,1,1,1,1,0,0,1,0,0,1,1,0,0,0]=>2
[1,0,1,1,1,1,0,0,1,0,1,0,0,0,1,0]=>2
[1,0,1,1,1,1,0,0,1,0,1,0,0,1,0,0]=>2
Description
The number of simple modules in the corresponding Nakayama algebra that have non-zero second Ext-group with the regular module.
Code
DeclareOperation("Ext2countnonzero",[IsList]);
InstallMethod(Ext2countnonzero, "for a representation of a quiver", [IsList],0,function(LIST)
local A,simA,RegA,U;
A:=LIST[1];
simA:=SimpleModules(A);
RegA:=DirectSumOfQPAModules(IndecProjectiveModules(A));
U:=Filtered(simA,x->Size(ExtOverAlgebra(NthSyzygy(x,1),RegA)[2])>0);
return(Size(U));
end);
Created
Jun 20, 2018 at 15:47 by Rene Marczinzik
Updated
Mar 13, 2026 at 16:42 by Nupur Jain
Identifier
St001211:
Dyck paths
⟶ ℤ
Values
Modified entries:
[1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0]=>8
[1,0,1,0,1,0,1,0,1,0,1,0,1,1,0,0]=>8
[1,0,1,0,1,0,1,0,1,0,1,1,0,0,1,0]=>7
[1,0,1,0,1,0,1,0,1,0,1,1,0,1,0,0]=>7
[1,0,1,0,1,0,1,0,1,0,1,1,1,0,0,0]=>8
[1,0,1,0,1,0,1,0,1,1,0,0,1,0,1,0]=>7
[1,0,1,0,1,0,1,0,1,1,0,0,1,1,0,0]=>7
[1,0,1,0,1,0,1,0,1,1,0,1,0,0,1,0]=>7
[1,0,1,0,1,0,1,0,1,1,0,1,0,1,0,0]=>7
[1,0,1,0,1,0,1,0,1,1,0,1,1,0,0,0]=>7
[1,0,1,0,1,0,1,0,1,1,1,0,0,0,1,0]=>7
[1,0,1,0,1,0,1,0,1,1,1,0,0,1,0,0]=>7
[1,0,1,0,1,0,1,0,1,1,1,0,1,0,0,0]=>7
[1,0,1,0,1,0,1,0,1,1,1,1,0,0,0,0]=>8
[1,0,1,0,1,0,1,1,0,0,1,0,1,0,1,0]=>7
[1,0,1,0,1,0,1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simple modules in the corresponding Nakayama algebra that have vanishing second Ext-group with the regular module.
Code
DeclareOperation("Ext2count",[IsList]);
InstallMethod(Ext2count, "for a representation of a quiver", [IsList],0,function(LIST)
local A,simA,RegA,U;
A:=LIST[1];
simA:=SimpleModules(A);
RegA:=DirectSumOfQPAModules(IndecProjectiveModules(A));
U:=Filtered(simA,x->Size(ExtOverAlgebra(NthSyzygy(x,1),RegA)[2])=0);
return(Size(U));
end);
Diff Code
DeclareOperation("Ext2count",[IsList]); InstallMethod(Ext2count, "for a representation of a quiver", [IsList],0,function(LIST) local A,simA,RegA,U; A:=LIST[1]; simA:=SimpleModules(A); RegA:=DirectSumOfQPAModules(IndecProjectiveModules(A)); U:=Filtered(simA,x->Size(ExtOverAlgebra(NthSyzygy(x,1),RegA)[2])=0); return(Size(U)); end);
Created
Jun 20, 2018 at 15:37 by Rene Marczinzik
Updated
Mar 13, 2026 at 16:41 by Nupur Jain
Identifier
St001210:
Dyck paths
⟶ ℤ
Values
Modified entries:
[1,0,1,0,1,0,1,0,1,0,1,0,1,0]=>1
[1,0,1,0,1,0,1,0,1,0,1,1,0,0]=>1
[1,0,1,0,1,0,1,0,1,1,0,0,1,0]=>1
[1,0,1,0,1,0,1,0,1,1,0,1,0,0]=>1
[1,0,1,0,1,0,1,0,1,1,1,0,0,0]=>2
[1,0,1,0,1,0,1,1,0,0,1,0,1,0]=>1
[1,0,1,0,1,0,1,1,0,0,1,1,0,0]=>1
[1,0,1,0,1,0,1,1,0,1,0,0,1,0]=>1
[1,0,1,0,1,0,1,1,0,1,0,1,0,0]=>1
[1,0,1,0,1,0,1,1,0,1,1,0,0,0]=>1
[1,0,1,0,1,0,1,1,1,0,0,0,1,0]=>2
[1,0,1,0,1,0,1,1,1,0,0,1,0,0]=>2
[1,0,1,0,1,0,1,1,1,0,1,0,0,0]=>2
[1,0,1,0,1,0,1,1,1,1,0,0,0,0]=>3
[1,0,1,0,1,1,0,0,1,0,1,0,1,0]=>1
[1,0,1,0,1,1,0,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0,0,0]=>2
[1,0,1,1,1,0,1,1,1,0,0,1,0,0,0,0]=>2
[1,0,1,1,1,0,1,1,1,0,1,0,0,0,0,0]=>2
[1,0,1,1,1,0,1,1,1,1,0,0,0,0,0,0]=>3
[1,0,1,1,1,1,0,0,0,0,1,0,1,0,1,0]=>3
[1,0,1,1,1,1,0,0,0,0,1,0,1,1,0,0]=>3
[1,0,1,1,1,1,0,0,0,0,1,1,0,0,1,0]=>3
[1,0,1,1,1,1,0,0,0,0,1,1,0,1,0,0]=>3
[1,0,1,1,1,1,0,0,0,0,1,1,1,0,0,0]=>3
[1,0,1,1,1,1,0,0,0,1,0,0,1,0,1,0]=>3
[1,0,1,1,1,1,0,0,0,1,0,0,1,1,0,0]=>3
[1,0,1,1,1,1,0,0,0,1,0,1,0,0,1,0]=>3
[1,0,1,1,1,1,0,0,0,1,0,1,0,1,0,0]=>3
[1,0,1,1,1,1,0,0,0,1,0,1,1,0,0,0]=>3
[1,0,1,1,1,1,0,0,0,1,1,0,0,0,1,0]=>3
[1,0,1,1,1,1,0,0,0,1,1,0,0,1,0,0]=>3
[1,0,1,1,1,1,0,0,0,1,1,0,1,0,0,0]=>3
[1,0,1,1,1,1,0,0,0,1,1,1,0,0,0,0]=>3
[1,0,1,1,1,1,0,0,1,0,0,0,1,0,1,0]=>3
[1,0,1,1,1,1,0,0,1,0,0,0,1,1,0,0]=>3
[1,0,1,1,1,1,0,0,1,0,0,1,0,0,1,0]=>3
[1,0,1,1,1,1,0,0,1,0,0,1,0,1,0,0]=>3
[1,0,1,1,1,1,0,0,1,0,0,1,1,0,0,0]=>3
[1,0,1,1,1,1,0,0,1,0,1,0,0,0,1,0]=>3
[1,0,1,1,1,1,0,0,1,0,1,0,0,1,0,0]=>3
Description
Gives the maximal vector space dimension of the first Ext-group between an indecomposable module X and the regular module A, when A is the Nakayama algebra corresponding to the Dyck path.
Code
DeclareOperation("ext1largest",[IsList]);
InstallMethod(ext1largest, "for a representation of a quiver", [IsList],0,function(LIST)
local A,L,temp2,RegA;
A:=LIST[1];
L:=ARQuiver([A,1000])[2];
RegA:=DirectSumOfQPAModules(IndecProjectiveModules(A));
temp2:=[];for x in L do Append(temp2,[Size(ExtOverAlgebra(x,RegA)[2])]);od;
return(Maximum(temp2));
end);
Created
Jun 19, 2018 at 18:20 by Rene Marczinzik
Updated
Mar 13, 2026 at 16:41 by Nupur Jain
Identifier
St001200:
Dyck paths
⟶ ℤ
Values
Modified entries:
[1,0,1,0,1,0,1,0,1,0,1,0]=>3
[1,0,1,0,1,0,1,0,1,1,0,0]=>3
[1,0,1,0,1,0,1,1,0,0,1,0]=>3
[1,0,1,0,1,0,1,1,0,1,0,0]=>3
[1,0,1,0,1,0,1,1,1,0,0,0]=>3
[1,0,1,0,1,1,0,0,1,0,1,0]=>3
[1,0,1,0,1,1,0,0,1,1,0,0]=>3
[1,0,1,0,1,1,0,1,0,0,1,0]=>3
[1,0,1,0,1,1,0,1,0,1,0,0]=>4
[1,0,1,0,1,1,0,1,1,0,0,0]=>3
[1,0,1,0,1,1,1,0,0,0,1,0]=>3
[1,0,1,0,1,1,1,0,0,1,0,0]=>3
[1,0,1,0,1,1,1,0,1,0,0,0]=>3
[1,0,1,0,1,1,1,1,0,0,0,0]=>3
[1,0,1,1,0,0,1,0,1,0,1,0]=>3
[1,0,1,1,0,0,1,0,1,1,0,0]=>3
[1,0,1,1,0,0,1,1,0,0,1,0]=>3
[1,0,1,1,0,0,1,1,0,1,0,0]=>3
[1,0,1,1,0,0,1,1,1,0,0,0]=>3
[1,0,1,1,0,1,0,0,1,0,1,0]=>3
[1,0,1,1,0,1,0,0,1,1,0,0]=>3
[1,0,1,1,0,1,0,1,0,0,1,0]=>5
[1,0,1,1,0,1,0,1,0,1,0,0]=>5
[1,0,1,1,0,1,0,1,1,0,0,0]=>4
[1,0,1,1,0,1,1,0,0,0,1,0]=>3
[1,0,1,1,0,1,1,0,0,1,0,0]=>3
[1,0,1,1,0,1,1,0,1,0,0,0]=>4
[1,0,1,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,1,1,0,0,0,1,1,1,0,0,0,0]=>3
[1,0,1,1,1,1,0,0,1,0,0,0,1,0,1,0]=>3
[1,0,1,1,1,1,0,0,1,0,0,0,1,1,0,0]=>3
[1,0,1,1,1,1,0,0,1,0,0,1,0,0,1,0]=>5
[1,0,1,1,1,1,0,0,1,0,0,1,0,1,0,0]=>5
[1,0,1,1,1,1,0,0,1,0,0,1,1,0,0,0]=>4
[1,0,1,1,1,1,0,0,1,0,1,0,0,0,1,0]=>5
[1,0,1,1,1,1,0,0,1,0,1,0,0,1,0,0]=>5
[1,0,1,1,1,1,0,0,1,0,1,0,1,0,0,0]=>5
[1,0,1,1,1,1,0,0,1,0,1,1,0,0,0,0]=>4
[1,0,1,1,1,1,0,0,1,1,0,0,0,0,1,0]=>3
[1,0,1,1,1,1,0,0,1,1,0,0,0,1,0,0]=>3
[1,0,1,1,1,1,0,0,1,1,0,0,1,0,0,0]=>4
[1,0,1,1,1,1,0,0,1,1,0,1,0,0,0,0]=>4
[1,0,1,1,1,1,0,0,1,1,1,0,0,0,0,0]=>3
Description
The number of simple modules in $eAe$ with projective dimension at most 2 in the corresponding Nakayama algebra $A$ with minimal faithful projective-injective module $eA$.
Code
DeclareOperation("numbersimplesprojdimatmostkeAe",[IsList]);
InstallMethod(numbersimplesprojdimatmostkeAe, "for a representation of a quiver", [IsList],0,function(LIST)
local A,k,injA,RegA,temp,CoRegA,priA,U,UU,g,g2,B,T,TT,W,simB;
A:=LIST[1];
k:=LIST[2];
projA:=IndecProjectiveModules(A);priA:=DirectSumOfQPAModules(Filtered(projA,x->IsInjectiveModule(x)=true));
B:=EndOfModuleAsQuiverAlgebra(priA)[3];
simB:=SimpleModules(B);
W:=Filtered(simB,x->ProjDimensionOfModule(x,30)<=k);
return(Size(W));
end);
Created
May 14, 2018 at 11:30 by Rene Marczinzik
Updated
Mar 13, 2026 at 16:41 by Nupur Jain
Identifier
St001194:
Dyck paths
⟶ ℤ
Values
Modified entries:
[1,0,1,0,1,0,1,0,1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,1,1,1,1,0,0,0,1,1,0,0,1,0,0]=>3
[1,0,1,1,1,1,0,0,0,1,1,0,1,0,0,0]=>3
[1,0,1,1,1,1,0,0,0,1,1,1,0,0,0,0]=>2
[1,0,1,1,1,1,0,0,1,0,0,0,1,0,1,0]=>4
[1,0,1,1,1,1,0,0,1,0,0,0,1,1,0,0]=>3
[1,0,1,1,1,1,0,0,1,0,0,1,0,0,1,0]=>4
[1,0,1,1,1,1,0,0,1,0,0,1,0,1,0,0]=>3
[1,0,1,1,1,1,0,0,1,0,0,1,1,0,0,0]=>3
[1,0,1,1,1,1,0,0,1,0,1,0,0,0,1,0]=>4
[1,0,1,1,1,1,0,0,1,0,1,0,0,1,0,0]=>3
Description
The injective dimension of $A/AfA$ in the corresponding Nakayama algebra $A$ when $Af$ is the minimal faithful projective-injective left $A$-module
Code
DeclareOperation("injdimAAfAA",[IsList]);
InstallMethod(injdimAAfAA, "for a representation of a quiver", [IsList],0,function(LIST)
local A,k,injA,RegA,temp,CoRegA,priA,U,UU,T;
A:=LIST[1];
projA:=IndecProjectiveModules(A);priA:=DirectSumOfQPAModules(Filtered(projA,x->IsInjectiveModule(x)=true));RegA:=DirectSumOfQPAModules(projA);
T:=StarOfModule(DualOfModule(priA));
U:=TraceOfModule(T,RegA);UU:=CoKernel(U);
return(InjDimensionOfModule(UU,30));
end);
Created
May 13, 2018 at 12:59 by Rene Marczinzik
Updated
Mar 13, 2026 at 16:41 by Nupur Jain
Identifier
St001193:
Dyck paths
⟶ ℤ
Values
Modified entries:
[1,0,1,0,1,0,1,0,1,0,1,0,1,0]=>0
[1,0,1,0,1,0,1,0,1,0,1,1,0,0]=>0
[1,0,1,0,1,0,1,0,1,1,0,0,1,0]=>0
[1,0,1,0,1,0,1,0,1,1,0,1,0,0]=>0
[1,0,1,0,1,0,1,0,1,1,1,0,0,0]=>1
[1,0,1,0,1,0,1,1,0,0,1,0,1,0]=>0
[1,0,1,0,1,0,1,1,0,0,1,1,0,0]=>0
[1,0,1,0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0,1,1,1,1,0,0,1,0,0,1,0,1,0,0]=>3
[1,0,1,1,1,1,0,0,1,0,0,1,1,0,0,0]=>3
[1,0,1,1,1,1,0,0,1,0,1,0,0,0,1,0]=>3
[1,0,1,1,1,1,0,0,1,0,1,0,0,1,0,0]=>3
Description
The dimension of $Ext_A^1(A/AeA,A)$ in the corresponding Nakayama algebra $A$ such that $eA$ is a minimal faithful projective-injective module.
Code
DeclareOperation("dimext1AAeAA",[IsList]);
InstallMethod(dimext1AAeAA, "for a representation of a quiver", [IsList],0,function(LIST)
local A,k,injA,RegA,temp,CoRegA,priA,U,UU;
A:=LIST[1];
k:=LIST[2];
projA:=IndecProjectiveModules(A);priA:=DirectSumOfQPAModules(Filtered(projA,x->IsInjectiveModule(x)=true));RegA:=DirectSumOfQPAModules(projA);
U:=TraceOfModule(priA,RegA);UU:=CoKernel(U);
return(Size(ExtOverAlgebra(NthSyzygy(UU,k-1),RegA)[2]));
end);
Diff Code
DeclareOperation("dimext1AAeAA",[IsList]); InstallMethod(dimext1AAeAA, "for a representation of a quiver", [IsList],0,function(LIST) local A,k,injA,RegA,temp,CoRegA,priA,U,UU; A:=LIST[1]; k:=LIST[2]; projA:=IndecProjectiveModules(A);priA:=DirectSumOfQPAModules(Filtered(projA,x->IsInjectiveModule(x)=true));RegA:=DirectSumOfQPAModules(projA); U:=TraceOfModule(priA,RegA);UU:=CoKernel(U); return(Size(ExtOverAlgebra(NthSyzygy(UU,k-1),RegA)[2])); end);
Created
May 13, 2018 at 11:41 by Rene Marczinzik
Updated
Mar 13, 2026 at 16:41 by Nupur Jain
Identifier
St001192:
Dyck paths
⟶ ℤ
Values
Modified entries:
[1,0,1,0,1,0,1,0,1,0,1,0,1,0]=>1
[1,0,1,0,1,0,1,0,1,0,1,1,0,0]=>1
[1,0,1,0,1,0,1,0,1,1,0,0,1,0]=>1
[1,0,1,0,1,0,1,0,1,1,0,1,0,0]=>1
[1,0,1,0,1,0,1,0,1,1,1,0,0,0]=>1
[1,0,1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