Skip to main content

Zero-sum sequences

zero-sum-sequences computes with sequences over finite additive groups: minimal zero-sum sequences (atoms), factorizations and their length sets, automorphism orbits, and zero-sum constants. It runs in ordinary Python; SageMath is optional.

Installation

Requires Python 3.12 or newer:

python -m pip install zero-sum-sequences

A small example

Over C₂ ⊕ C₄, take an atom A of length five and its negative B = -A. Sequences are written multiplicatively. The product A * B has factorization lengths 2, 4, and 5, but not 3:

from zero_sum_sequences import AdditiveSequenceSpace, FiniteAdditiveGroup

G = FiniteAdditiveGroup.cyclic_product(2, 4)
S = AdditiveSequenceSpace(G)
A = S((0, 1)) ** 3 * S((1, 0), (1, 1))
B = -A

A.is_atom(), B.is_atom()        # (True, True)
sorted((A * B).length_set())    # [2, 4, 5]

Documentation — installation options, tutorial, definitions, and API reference.

MIT License.

Metadata

Release files for zero-sum-sequences 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zero-sum-sequences 0.3.1
File Size Uploaded Provenance Actions
zero_sum_sequences-0.3.1.tar.gz 115.7 kB With provenance Details for zero_sum_sequences-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zero-sum-sequences 0.3.1
File Interpreter ABI Platform Actions
zero_sum_sequences-0.3.1-py3-none-any.whl Python 3 none any Details for zero_sum_sequences-0.3.1-py3-none-any.whl

Total release size: 176.0 kB

Release files / zero_sum_sequences-0.3.1.tar.gz

Download URL zero_sum_sequences-0.3.1.tar.gz
Size 115.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c7b4c2ac302bff65dc2facc620a00dea02866a1153951ed2736756c09c390970
BLAKE2b-256 checksum
How to use checksums
36e1031c6a27e30267dacbc964bf86dbd3fc6e3a9d132ead0c3cfa217e685e00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Release files / zero_sum_sequences-0.3.1-py3-none-any.whl

Download URL zero_sum_sequences-0.3.1-py3-none-any.whl
Size 60.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
902f8502567f1349cd814afc4021e783620320b3eb5094f5706334a825b2d30c
BLAKE2b-256 checksum
How to use checksums
a0da01f8a97be4eefd5e6362c1827a756f9e2e8ab63e0d7f3621487c84ea4511
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Security for zero-sum-sequences 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for zero_sum_sequences-0.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page