  
  [1X6 [33X[0;0YIrreducible numerical semigroups[133X[101X
  
  
  [1X6.1 [33X[0;0YIrreducible numerical semigroups[133X[101X
  
  [33X[0;0YAn  irreducible  numerical semigroup is a semigroup that cannot be expressed
  as the intersection of numerical semigroups properly containing it.[133X
  
  [33X[0;0YIt  is not difficult to prove that a semigroup is irreducible if and only if
  it  is  maximal  (with respect to set inclusion) in the set of all numerical
  semigroup having its same Frobenius number (see [RB03]). Hence, according to
  [FGR87]  (respectively  [BDF97]),  symmetric (respectively pseudo-symmetric)
  numerical  semigroups  are  those  irreducible numerical semigroups with odd
  (respectively even) Frobenius number.[133X
  
  [33X[0;0YIn  [RGGJ03]  it  is  shown that a numerical semigroup is irreducible if and
  only if it has only one special gap. We use this characterization.[133X
  
  [33X[0;0YIn this section we show how to construct the set of all numerical semigroups
  with  a  given Frobenius number. First we construct an irreducible numerical
  semigroup with the given Frobenius number (as explained in [RG04]), and then
  we construct the rest from it. That is why we have separated both functions.[133X
  
  [33X[0;0YEvery numerical semigroup can be expressed as an intersection of irreducible
  numerical  semigroups.  If  [22XS[122X  can  be  expressed as [22XS=S_1∩ ⋯∩ S_n[122X, with [22XS_i[122X
  irreducible  numerical semigroups, and no factor can be removed, then we say
  that  this  decomposition is minimal. Minimal decompositions can be computed
  by using Algorithm 26 in [RGGJ03].[133X
  
  [1X6.1-1 IsIrreducibleNumericalSemigroup[101X
  
  [29X[2XIsIrreducibleNumericalSemigroup[102X( [3Xs[103X ) [32X function
  
  [33X[0;0Y[3Xs[103X  is  a  numerical semigroup. The output is true if [3Xs[103X is irreducible, false
  otherwise.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27XIsIrreducibleNumericalSemigroup(NumericalSemigroup(4,6,9));[127X[104X
    [4X[28Xtrue[128X[104X
    [4X[25Xgap>[125X [27XIsIrreducibleNumericalSemigroup(NumericalSemigroup(4,6,7,9));[127X[104X
    [4X[28Xfalse[128X[104X
  [4X[32X[104X
  
  [1X6.1-2 IsSymmetricNumericalSemigroup[101X
  
  [29X[2XIsSymmetricNumericalSemigroup[102X( [3Xs[103X ) [32X function
  
  [33X[0;0Y[3Xs[103X  is  a  numerical  semigroup.  The output is true if [3Xs[103X is symmetric, false
  otherwise.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27XIsSymmetricNumericalSemigroup(NumericalSemigroup(10,23));      [127X[104X
    [4X[28Xtrue            [128X[104X
    [4X[25Xgap>[125X [27XIsSymmetricNumericalSemigroup(NumericalSemigroup(10,11,23));[127X[104X
    [4X[28Xfalse[128X[104X
  [4X[32X[104X
  
  [1X6.1-3 IsPseudoSymmetricNumericalSemigroup[101X
  
  [29X[2XIsPseudoSymmetricNumericalSemigroup[102X( [3Xs[103X ) [32X function
  
  [33X[0;0Y[3Xs[103X  is  a  numerical  semigroup. The output is true if [3Xs[103X is pseudo-symmetric,
  false otherwise.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27XIsPseudoSymmetricNumericalSemigroup(NumericalSemigroup(6,7,8,9,11));[127X[104X
    [4X[28Xtrue[128X[104X
    [4X[25Xgap>[125X [27XIsPseudoSymmetricNumericalSemigroup(NumericalSemigroup(4,6,9));[127X[104X
    [4X[28Xfalse[128X[104X
  [4X[32X[104X
  
  [1X6.1-4 AnIrreducibleNumericalSemigroupWithFrobeniusNumber[101X
  
  [29X[2XAnIrreducibleNumericalSemigroupWithFrobeniusNumber[102X( [3Xf[103X ) [32X function
  
  [33X[0;0Y[3Xf[103X  is  an  integer greater than or equal to -1. The output is an irreducible
  numerical  semigroup with frobenius number [3X f[103X. From the way the procedure is
  implemented,  the  resulting  semigroup  has  at  most  four generators (see
  [RG04]).[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27XFrobeniusNumber(AnIrreducibleNumericalSemigroupWithFrobeniusNumber(28));[127X[104X
    [4X[28X28[128X[104X
  [4X[32X[104X
  
  [1X6.1-5 IrreducibleNumericalSemigroupsWithFrobeniusNumber[101X
  
  [29X[2XIrreducibleNumericalSemigroupsWithFrobeniusNumber[102X( [3Xf[103X ) [32X function
  
  [33X[0;0Y[3Xf[103X  is  an  integer greater than or equal to -1. The output is the set of all
  irreducible numerical semigroups with frobenius number [3Xf[103X.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27XLength(IrreducibleNumericalSemigroupsWithFrobeniusNumber(39));[127X[104X
    [4X[28X227[128X[104X
  [4X[32X[104X
  
  [1X6.1-6 DecomposeIntoIrreducibles[101X
  
  [29X[2XDecomposeIntoIrreducibles[102X( [3Xs[103X ) [32X function
  
  [33X[0;0Y[3Xs[103X  is  a  numerical  semigroup. The output is a set of irreducible numerical
  semigroups  containing  it. These elements appear in a minimal decomposition
  of [3Xs[103X as intersection into irreducibles.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27XDecomposeIntoIrreducibles(NumericalSemigroup(5,6,8));[127X[104X
    [4X[28X[ <Numerical semigroup>, <Numerical semigroup> ][128X[104X
  [4X[32X[104X
  
  [1X6.1-7 AsGluingOfNumericalSemigroups[101X
  
  [29X[2XAsGluingOfNumericalSemigroups[102X( [3Xs[103X ) [32X function
  
  [33X[0;0Y[3Xs[103X  is a numerical semigroup. Returns all partitions [22X{A_1,A_2}[122X of the minimal
  generating  set  of [3Xs[103X such that [3Xs[103X is a gluing of [22Xleftangle A_1rightangle[122X and
  [22Xleftangle A_2rightangle[122X by [22Xgcd(A_1)gcd(A_2)[122X[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27Xs := NumericalSemigroup( 10, 15, 16 );                   [127X[104X
    [4X[28X<Numerical semigroup with 3 generators>[128X[104X
    [4X[25Xgap>[125X [27XAsGluingOfNumericalSemigroups(s);     [127X[104X
    [4X[28X[ [ [ 10, 15 ], [ 16 ] ], [ [ 10, 16 ], [ 15 ] ] ][128X[104X
    [4X[25Xgap>[125X [27Xs := NumericalSemigroup( 18, 24, 34, 46, 51, 61, 74, 8 );[127X[104X
    [4X[28X<Numerical semigroup with 8 generators>[128X[104X
    [4X[25Xgap>[125X [27XAsGluingOfNumericalSemigroups(s);                        [127X[104X
    [4X[28X[  ][128X[104X
  [4X[32X[104X
  
  [1X6.1-8 IsACompleteIntersectionNumericalSemigroup[101X
  
  [29X[2XIsACompleteIntersectionNumericalSemigroup[102X( [3Xs[103X ) [32X function
  
  [33X[0;0Y[3Xs[103X is a numerical semigroup. The output is true if the numerical semigroup is
  a  complete  intersection,  that  is,  the  cardinality  of  a (any) minimal
  presentation equals its embedding dimension minus one.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27Xs := NumericalSemigroup( 10, 15, 16 );       [127X[104X
    [4X[28X<Numerical semigroup with 3 generators>[128X[104X
    [4X[25Xgap>[125X [27XIsACompleteIntersectionNumericalSemigroup(s);[127X[104X
    [4X[28Xtrue[128X[104X
    [4X[25Xgap>[125X [27Xs := NumericalSemigroup( 18, 24, 34, 46, 51, 61, 74, 8 );[127X[104X
    [4X[28X<Numerical semigroup with 8 generators>[128X[104X
    [4X[25Xgap>[125X [27XIsACompleteIntersectionNumericalSemigroup(s);            [127X[104X
    [4X[28Xfalse[128X[104X
  [4X[32X[104X
  
