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.0

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.0
File Size Uploaded Provenance Actions
zero_sum_sequences-0.3.0.tar.gz 105.7 kB With provenance Details for zero_sum_sequences-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 160.9 kB

Release files / zero_sum_sequences-0.3.0.tar.gz

Download URL zero_sum_sequences-0.3.0.tar.gz
Size 105.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9ad2befa66ab6207bb4d23f31a0cf5fe37a2a455fa68db003430b59114f3c3b9
BLAKE2b-256 checksum
How to use checksums
7f60d0c61b3431fa1498fe40ffc59f0314d2cba2506a5227121fd0fed84e9a67
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 20, 2026.

Transparency log

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

Download URL zero_sum_sequences-0.3.0-py3-none-any.whl
Size 55.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
36a15b7a9d8f77cd76c2b180a7182dec1bc48b26938f44780a165cc6a7f8fd73
BLAKE2b-256 checksum
How to use checksums
fd0f1bcda59bf73a573af2240c3c0374007ae9030104711acd1c351321df2652
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 20, 2026.

Transparency log

Security for zero-sum-sequences 0.3.0

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.0.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 20, 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