A package for numerical semigroups

Version 1.1.5

This project is maintained by Manuel Delgado, Pedro A. Garcia-Sanchez

GAP Package NumericalSgps

The NumericalSgps package, is a package to compute with numerical semigroups.

The current version of this package is version 1.1.5. For more information, please refer to the package manual.


This package requires GAP version 4.7


Manuel Delgado, Pedro A. Garcia-Sanchez, Jose Morais.


Benjamín Alarcón Heredia, Juan Ignacio García-García, Sebastian Gutsche, Andrés Herrera-Poyatos, Max Horn, Carlos Jesús Moreno Ávila, Ignacio Ojeda, Chris O’Neill, Alessio Sammartano, Alfredo Sánchez-R. Navarro, Klara Stokes, Strazzanti Francesco, Giuseppe Zito.


For bug reports, feature requests and suggestions, please use the issue tracker.


The features of this package include


The package is distributed with the main GAP archive. In order to use it you just have to start GAP and type

  LoadPackage( "numericalsgps" );


You may get NumericalSgps as a compressed tar archive (file name ends with .tar.gz). Use the appropriate command on your system to unpack the archive.

On UNIX systems the compressed tar archive may be unpacked by

tar xzf numericalsgps-<version>.tar.gz

or, if tar on your system does not understand the option z, by

gunzip numericalsgps-<version>.tar.gz
tar xf numericalsgps-<version>.tar

which will in each case unpack the code into a directory ‘numericalsgps’ in the current directory. We assume that the current directory is the directory /usr/local/lib/gap4r7/pkg/.


Copy the folder ‘numericalsgp’ to your pkg gap folder (for instance /usr/local/lib/gap4r7/pkg). You can also place it somewhere else and then use the command SetPackagePath:


or add this line to your gaprc.

In order to check the installation, launch gap:


Then try the following

gap> LoadPackage( "numericalsgps" );

Good luck!

You can also add the line

LoadPackage( "numericalsgps" );

to your gaprc file.

In other systems, there are equivalent ways to do the same.